diff options
author | Deepak S <deepak.s@linux.intel.com> | 2017-04-21 04:10:36 +0530 |
---|---|---|
committer | Deepak S <deepak.s@linux.intel.com> | 2017-04-21 04:17:12 +0530 |
commit | 4c01caad0971984eaec30bf0ec1a86fc30d9db40 (patch) | |
tree | 788feb54f72a7f57da03b9fee22bfe9573ff695b | |
parent | 2b576be498700c246d9f23b331c743fb63afaed7 (diff) |
BUGFix: Allow the vCGNAPT compile without FTP/SIP functionality
JIRA: SAMPLEVNF-7
Change-Id: Ia5d0729cc3959b9b4cf1e0cb356758adf83e5d83
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
-rw-r--r-- | common/VIL/alg/lib_ftp_alg.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/VIL/alg/lib_ftp_alg.c b/common/VIL/alg/lib_ftp_alg.c index 0a8a0e6d..7e8e43f1 100644 --- a/common/VIL/alg/lib_ftp_alg.c +++ b/common/VIL/alg/lib_ftp_alg.c @@ -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) - |