From 4c01caad0971984eaec30bf0ec1a86fc30d9db40 Mon Sep 17 00:00:00 2001 From: Deepak S Date: Fri, 21 Apr 2017 04:10:36 +0530 Subject: BUGFix: Allow the vCGNAPT compile without FTP/SIP functionality JIRA: SAMPLEVNF-7 Change-Id: Ia5d0729cc3959b9b4cf1e0cb356758adf83e5d83 Signed-off-by: Deepak S --- common/VIL/alg/lib_ftp_alg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'common/VIL') 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) - -- cgit 1.2.3-korg