BUGFix: Allow the vCGNAPT compile without FTP/SIP functionality 17/33617/1
authorDeepak S <deepak.s@linux.intel.com>
Thu, 20 Apr 2017 22:40:36 +0000 (04:10 +0530)
committerDeepak S <deepak.s@linux.intel.com>
Thu, 20 Apr 2017 22:47:12 +0000 (04:17 +0530)
JIRA: SAMPLEVNF-7

Change-Id: Ia5d0729cc3959b9b4cf1e0cb356758adf83e5d83
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
common/VIL/alg/lib_ftp_alg.c

index 0a8a0e6..7e8e43f 100644 (file)
@@ -650,7 +650,7 @@ void ftp_alg_dpi(
        * with that NAPT entry egress and ingress can be added ,
        * for further data channel communication
        */
-
+        #ifdef FTP_ALG
        if (add_dynamic_cgnapt_entry_alg((struct pipeline *)p_nat,
        &data_channel_key, &egress_entry, &ingress_entry) == 0){
 
@@ -666,6 +666,7 @@ void ftp_alg_dpi(
                #endif
                return;
        }
+       #endif
 
        tmp_tcp_paylod_size = rte_bswap16(ip_hdr->total_length) -
                        ((thdr->data_off & 0xf0) >> 2) - ip_hdr_size_bytes;
@@ -796,6 +797,7 @@ void ftp_alg_dpi(
                        * for further data channel communication
                        */
 
+                        #ifdef FTP_ALG
                        if (add_dynamic_cgnapt_entry_alg((struct pipeline *)
                                p_nat, &data_channel_key, &egress_entry,
                                &ingress_entry) == 0){
@@ -811,6 +813,7 @@ void ftp_alg_dpi(
                                #endif
                                return;
                        }
+                        #endif
 
                tmp_tcp_paylod_size = rte_bswap16(ip_hdr->total_length) -
                                        ((thdr->data_off & 0xf0) >> 2) -