blob: 4d4e1c738f5585bc343a070c8f5c3fc5fb572a58 [file] [log] [blame]
Ben Menchaca84f36632014-02-28 20:57:38 +00001##########################################################################
Murat Sezgin1957a982015-05-21 22:22:25 +01002# Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
Ben Menchaca84f36632014-02-28 20:57:38 +00003# Permission to use, copy, modify, and/or distribute this software for
4# any purpose with or without fee is hereby granted, provided that the
5# above copyright notice and this permission notice appear in all copies.
6# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
7# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
8# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
9# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
10# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
11# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
12# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
13##########################################################################
14
15# ###################################################
16# Makefile for the QCA NSS ECM
17# ###################################################
18
Nicolas Costaf46c33b2014-05-15 10:02:00 -050019obj-m += ecm.o
20
Murat Sezgin1957a982015-05-21 22:22:25 +010021# #####################################################
22# Example builds.
23# Enable example build by using the menuconfig options.
24# #####################################################
25ifeq ($(EXAMPLES_BUILD_PCC),y)
26obj-m += examples/ecm_pcc_test.o
27endif
28
Hai Shalom81f4e202014-06-04 09:30:27 -070029ecm-y := \
Nicolas Costaf46c33b2014-05-15 10:02:00 -050030 ecm_tracker_udp.o \
31 ecm_tracker_tcp.o \
32 ecm_tracker_datagram.o \
33 ecm_tracker.o \
Murat Sezgin3ab259d2015-06-11 14:15:35 -070034 frontends/ecm_front_end_ipv4.o \
35 frontends/ecm_front_end_ipv6.o \
Murat Sezgin5f138492015-06-11 15:18:27 -070036 frontends/ecm_front_end_common.o \
Nicolas Costaf46c33b2014-05-15 10:02:00 -050037 ecm_db.o \
38 ecm_classifier_default.o \
Nicolas Costaf46c33b2014-05-15 10:02:00 -050039 ecm_interface.o \
Nicolas Costaf46c33b2014-05-15 10:02:00 -050040 ecm_init.o
Ben Menchaca84f36632014-02-28 20:57:38 +000041
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -080042# #############################################################################
Xiaoping Fanb9390542015-07-20 18:15:21 -070043# Define ECM_FRONT_END_NSS_ENABLE=y in order to select
44# nss as ECM's front end.
45# #############################################################################
46ifeq ($(ECM_FRONT_END_NSS_ENABLE),)
47ECM_FRONT_END_NSS_ENABLE=y
48endif
49ecm-$(ECM_FRONT_END_NSS_ENABLE) += frontends/nss/ecm_nss_ipv4.o
50ecm-$(ECM_FRONT_END_NSS_ENABLE) += frontends/nss/ecm_nss_ported_ipv4.o
51ecm-$(ECM_FRONT_END_NSS_ENABLE) += frontends/nss/ecm_nss_conntrack_notifier.o
52ccflags-$(ECM_FRONT_END_NSS_ENABLE) += -DECM_FRONT_END_NSS_ENABLE
53
54# #############################################################################
55# Define ECM_FRONT_END_SFE_ENABLE=y in order to select
56# sfe as ECM's front end.
57# #############################################################################
Murat Sezgine1c51d82016-02-10 16:42:58 -080058ifeq ($(findstring 4.4., $(KERNELVERSION)),)
Xiaoping Fanb9390542015-07-20 18:15:21 -070059ifeq ($(ECM_FRONT_END_SFE_ENABLE),)
60ECM_FRONT_END_SFE_ENABLE=y
61endif
Murat Sezgine1c51d82016-02-10 16:42:58 -080062endif
Xiaoping Fanb9390542015-07-20 18:15:21 -070063ecm-$(ECM_FRONT_END_SFE_ENABLE) += frontends/sfe/ecm_sfe_ipv4.o
64ecm-$(ECM_FRONT_END_SFE_ENABLE) += frontends/sfe/ecm_sfe_ported_ipv4.o
65ecm-$(ECM_FRONT_END_SFE_ENABLE) += frontends/sfe/ecm_sfe_conntrack_notifier.o
66ccflags-$(ECM_FRONT_END_SFE_ENABLE) += -DECM_FRONT_END_SFE_ENABLE
67
68# #############################################################################
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -080069# Define ECM_INTERFACE_BOND_ENABLE=y in order to enable
70# Bonding / Link Aggregation support.
71# #############################################################################
Murat Sezgine1c51d82016-02-10 16:42:58 -080072ifeq ($(findstring 4.4., $(KERNELVERSION)),)
Xiaoping Fanb9390542015-07-20 18:15:21 -070073ifeq ($(ECM_FRONT_END_NSS_ENABLE), y)
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -080074ECM_INTERFACE_BOND_ENABLE=y
75endif
Murat Sezgine1c51d82016-02-10 16:42:58 -080076endif
Murat Sezgin8e10a7c2015-06-11 15:49:24 -070077ecm-$(ECM_INTERFACE_BOND_ENABLE) += frontends/nss/ecm_nss_bond_notifier.o
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -080078ccflags-$(ECM_INTERFACE_BOND_ENABLE) += -DECM_INTERFACE_BOND_ENABLE
Hai Shalom81f4e202014-06-04 09:30:27 -070079
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -080080# #############################################################################
ratheesh kannotha32fdd12015-09-09 08:02:58 +053081# Define ECM_INTERFACE_PPPOE_ENABLE=y in order
82# to enable support for PPPoE acceleration.
83# #############################################################################
84ECM_INTERFACE_PPPOE_ENABLE=y
85ccflags-$(ECM_INTERFACE_PPPOE_ENABLE) += -DECM_INTERFACE_PPPOE_ENABLE
86
87# #############################################################################
88# Define ECM_INTERFACE_L2TPV2_ENABLE=y in order
89# to enable support for l2tpv2 acceleration.
90# #############################################################################
ratheesh kannotha32fdd12015-09-09 08:02:58 +053091ECM_INTERFACE_L2TPV2_ENABLE=y
ratheesh kannotha32fdd12015-09-09 08:02:58 +053092ccflags-$(ECM_INTERFACE_L2TPV2_ENABLE) += -DECM_INTERFACE_L2TPV2_ENABLE
93
94# #############################################################################
Shyam Sunder23f2e542015-09-28 14:56:49 +053095# Define ECM_INTERFACE_PPTP_ENABLE=y in order
96# to enable support for pptp acceleration.
97# #############################################################################
Shyam Sunder23f2e542015-09-28 14:56:49 +053098ECM_INTERFACE_PPTP_ENABLE=y
Shyam Sunder23f2e542015-09-28 14:56:49 +053099ccflags-$(ECM_INTERFACE_PPTP_ENABLE) += -DECM_INTERFACE_PPTP_ENABLE
100
101# #############################################################################
102# if pppoe, l2tpv2, pptp acceleration is enabled, ppp should
ratheesh kannotha32fdd12015-09-09 08:02:58 +0530103# be enabled automatically
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800104# #############################################################################
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800105ECM_INTERFACE_PPP_ENABLE=y
ratheesh kannotha32fdd12015-09-09 08:02:58 +0530106ifeq "$(ECM_INTERFACE_PPPOE_ENABLE)" "n"
107ifeq "$(ECM_INTERFACE_L2TPV2_ENABLE)" "n"
Shyam Sunder23f2e542015-09-28 14:56:49 +0530108ifeq "$(ECM_INTERFACE_PPTP_ENABLE)" "n"
ratheesh kannotha32fdd12015-09-09 08:02:58 +0530109ECM_INTERFACE_PPP_ENABLE=n
110endif
111endif
Shyam Sunder23f2e542015-09-28 14:56:49 +0530112endif
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800113ccflags-$(ECM_INTERFACE_PPP_ENABLE) += -DECM_INTERFACE_PPP_ENABLE
114
115# #############################################################################
ratheesh kannothcfdcb332015-12-24 07:19:18 +0530116# Define ECM_INTERFACE_MAP_T_ENABLE=y in order
117# to enable support for MAP-T interface.
118# #############################################################################
119ifneq ($(findstring 3.14, $(KERNELVERSION)),)
120ECM_INTERFACE_MAP_T_ENABLE=y
121endif
122ccflags-$(ECM_INTERFACE_MAP_T_ENABLE) += -DECM_INTERFACE_MAP_T_ENABLE
123
124# #############################################################################
Murat Sezginb3731e82014-11-26 12:20:59 -0800125# Define ECM_INTERFACE_SIT_ENABLE=y in order
126# to enable support for SIT interface.
127# #############################################################################
Murat Sezginb3731e82014-11-26 12:20:59 -0800128ECM_INTERFACE_SIT_ENABLE=y
Murat Sezginb3731e82014-11-26 12:20:59 -0800129ccflags-$(ECM_INTERFACE_SIT_ENABLE) += -DECM_INTERFACE_SIT_ENABLE
130
131# #############################################################################
Murat Sezginc1402562015-03-12 12:32:20 -0700132# Define ECM_INTERFACE_TUNIPIP6_ENABLE=y in order
133# to enable support for TUNIPIP6 interface.
134# #############################################################################
Murat Sezginc1402562015-03-12 12:32:20 -0700135ECM_INTERFACE_TUNIPIP6_ENABLE=y
Murat Sezginc1402562015-03-12 12:32:20 -0700136ccflags-$(ECM_INTERFACE_TUNIPIP6_ENABLE) += -DECM_INTERFACE_TUNIPIP6_ENABLE
137
138# #############################################################################
Shyam Sunder1f037262015-05-18 20:04:13 +0530139# Define ECM_MULTICAST_ENABLE=y in order to enable support for ECM Multicast
140# #############################################################################
Xiaoping Fanb9390542015-07-20 18:15:21 -0700141ifeq ($(ECM_FRONT_END_NSS_ENABLE), y)
Murat Sezgin34f45c12015-11-19 13:25:22 -0800142#
143# TODO: This is a workaround for external builds in which the qca-mcs source
144# code is not available. This will be fixed later by breaking the dependency from ECM
145# to qca-mcs
146#
147MCS_CONFIG:=$(shell grep "CONFIG_PACKAGE_kmod-qca-mcs=y" $(TOPDIR)/.config)
148MCS_ENABLED:=CONFIG_PACKAGE_kmod-qca-mcs=y
149ifeq ($(MCS_CONFIG),$(MCS_ENABLED))
Shyam Sunderdd682692015-05-04 18:15:18 +0530150ecm-$(ECM_MULTICAST_ENABLE) += frontends/nss/ecm_nss_multicast_ipv4.o
Murat Sezgin3ab259d2015-06-11 14:15:35 -0700151ecm-$(ECM_MULTICAST_ENABLE) += frontends/nss/ecm_nss_multicast_ipv6.o
Shyam Sunder1f037262015-05-18 20:04:13 +0530152ccflags-$(ECM_MULTICAST_ENABLE) += -DECM_MULTICAST_ENABLE
Karthik Hariharan3e964a32015-09-22 21:40:52 +0530153endif
Murat Sezgin34f45c12015-11-19 13:25:22 -0800154endif
Shyam Sunder1f037262015-05-18 20:04:13 +0530155
156# #############################################################################
Gareth Williams141d2382014-11-25 11:35:19 -0800157# Define ECM_INTERFACE_VLAN_ENABLE=y in order to enable support for VLAN
158# #############################################################################
Gareth Williams141d2382014-11-25 11:35:19 -0800159ECM_INTERFACE_VLAN_ENABLE=y
Gareth Williams141d2382014-11-25 11:35:19 -0800160ccflags-$(ECM_INTERFACE_VLAN_ENABLE) += -DECM_INTERFACE_VLAN_ENABLE
161
162# #############################################################################
Murat Sezgin69a27532015-03-12 14:09:40 -0700163# Define ECM_INTERFACE_IPSEC_ENABLE=y in order to enable support for IPSEC
164# #############################################################################
165ECM_INTERFACE_IPSEC_ENABLE=y
166ccflags-$(ECM_INTERFACE_IPSEC_ENABLE) += -DECM_INTERFACE_IPSEC_ENABLE
167
168# #############################################################################
Gareth Williams8ac34292015-03-17 14:06:58 +0000169# Define ECM_IPV6_ENABLE=y in order to enable IPv6 support in the ECM.
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800170# #############################################################################
Gareth Williams8ac34292015-03-17 14:06:58 +0000171ECM_IPV6_ENABLE=y
Xiaoping Fanb9390542015-07-20 18:15:21 -0700172ifeq ($(ECM_FRONT_END_NSS_ENABLE), y)
Murat Sezgin3ab259d2015-06-11 14:15:35 -0700173ecm-$(ECM_IPV6_ENABLE) += frontends/nss/ecm_nss_ipv6.o
174ecm-$(ECM_IPV6_ENABLE) += frontends/nss/ecm_nss_ported_ipv6.o
Xiaoping Fanb9390542015-07-20 18:15:21 -0700175endif
176ifeq ($(ECM_FRONT_END_SFE_ENABLE), y)
177ecm-$(ECM_IPV6_ENABLE) += frontends/sfe/ecm_sfe_ipv6.o
178ecm-$(ECM_IPV6_ENABLE) += frontends/sfe/ecm_sfe_ported_ipv6.o
179endif
Gareth Williams8ac34292015-03-17 14:06:58 +0000180ccflags-$(ECM_IPV6_ENABLE) += -DECM_IPV6_ENABLE
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800181
182# #############################################################################
183# Define ECM_CLASSIFIER_NL_ENABLE=y in order to enable NL classifier.
184# #############################################################################
Murat Sezgine1c51d82016-02-10 16:42:58 -0800185ifeq ($(findstring 4.4., $(KERNELVERSION)),)
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800186ECM_CLASSIFIER_NL_ENABLE=y
Murat Sezgine1c51d82016-02-10 16:42:58 -0800187endif
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800188ecm-$(ECM_CLASSIFIER_NL_ENABLE) += ecm_classifier_nl.o
189ccflags-$(ECM_CLASSIFIER_NL_ENABLE) += -DECM_CLASSIFIER_NL_ENABLE
190
191# #############################################################################
192# Define ECM_CLASSIFIER_DSCP_ENABLE=y in order to enable DSCP classifier.
193# #############################################################################
Murat Sezgine1c51d82016-02-10 16:42:58 -0800194ifeq ($(findstring 4.4., $(KERNELVERSION)),)
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800195ECM_CLASSIFIER_DSCP_ENABLE=y
Murat Sezgine1c51d82016-02-10 16:42:58 -0800196endif
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800197ecm-$(ECM_CLASSIFIER_DSCP_ENABLE) += ecm_classifier_dscp.o
198ccflags-$(ECM_CLASSIFIER_DSCP_ENABLE) += -DECM_CLASSIFIER_DSCP_ENABLE
199
200# #############################################################################
201# Define ECM_CLASSIFIER_HYFI_ENABLE=y in order to enable
202# the Hy-Fi classifier in ECM. Currently disabled until the integration
203# with Hy-Fi is completed.
204# #############################################################################
Murat Sezgin34f45c12015-11-19 13:25:22 -0800205#
206# TODO: This is a workaround for external builds in which the qca-hyfi-bridge source
207# code is not available. This will be fixed later by breaking the dependency from ECM
208# to qca-hyfi-bridge
209#
210HYFI_BRIDGE_CONFIG:=$(shell grep "CONFIG_PACKAGE_kmod-qca-hyfi-bridge=y" $(TOPDIR)/.config)
211HYFI_BRIDGE_ENABLED:=CONFIG_PACKAGE_kmod-qca-hyfi-bridge=y
212ifeq ($(HYFI_BRIDGE_CONFIG),$(HYFI_BRIDGE_ENABLED))
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800213ecm-$(ECM_CLASSIFIER_HYFI_ENABLE) += ecm_classifier_hyfi.o
214ccflags-$(ECM_CLASSIFIER_HYFI_ENABLE) += -DECM_CLASSIFIER_HYFI_ENABLE
Murat Sezgin34f45c12015-11-19 13:25:22 -0800215endif
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800216
217# #############################################################################
Gareth Williamsdcda9b92015-05-13 10:08:15 +0100218# Define ECM_CLASSIFIER_PCC_ENABLE=y in order to enable
219# the Parental Controls subsystem classifier in ECM. Currently disabled until
220# customers require it / if they need to integrate their Parental Controls with it.
221# #############################################################################
222ECM_CLASSIFIER_PCC_ENABLE=y
223ecm-$(ECM_CLASSIFIER_PCC_ENABLE) += ecm_classifier_pcc.o
224ccflags-$(ECM_CLASSIFIER_PCC_ENABLE) += -DECM_CLASSIFIER_PCC_ENABLE
225
226# #############################################################################
Murat Sezgin8d916a12015-03-18 15:56:50 -0700227# Define ECM_NON_PORTED_SUPPORT_ENABLE=y in order to enable non-ported protocol.
228# #############################################################################
229ECM_NON_PORTED_SUPPORT_ENABLE=y
Xiaoping Fanb9390542015-07-20 18:15:21 -0700230ifeq ($(ECM_FRONT_END_NSS_ENABLE), y)
Murat Sezgin8d916a12015-03-18 15:56:50 -0700231ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/nss/ecm_nss_non_ported_ipv4.o
Murat Sezgin3ab259d2015-06-11 14:15:35 -0700232ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/nss/ecm_nss_non_ported_ipv6.o
Xiaoping Fanb9390542015-07-20 18:15:21 -0700233endif
234ifeq ($(ECM_FRONT_END_SFE_ENABLE), y)
235ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/sfe/ecm_sfe_non_ported_ipv4.o
236ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/sfe/ecm_sfe_non_ported_ipv6.o
237endif
Murat Sezgin8d916a12015-03-18 15:56:50 -0700238ccflags-$(ECM_NON_PORTED_SUPPORT_ENABLE) += -DECM_NON_PORTED_SUPPORT_ENABLE
239
Gareth Williamsf98d4192015-03-11 16:55:41 +0000240# #############################################################################
241# Define ECM_STATE_OUTPUT_ENABLE=y to support XML state output
242# #############################################################################
243ECM_STATE_OUTPUT_ENABLE=y
244ecm-$(ECM_STATE_OUTPUT_ENABLE) += ecm_state.o
245ccflags-$(ECM_STATE_OUTPUT_ENABLE) += -DECM_STATE_OUTPUT_ENABLE
Murat Sezgin8d916a12015-03-18 15:56:50 -0700246
247# #############################################################################
Gareth Williams85331c92015-03-11 20:39:18 +0000248# Define ECM_DB_ADVANCED_STATS_ENABLE to support XML state output
249# #############################################################################
250ECM_DB_ADVANCED_STATS_ENABLE=y
251ccflags-$(ECM_DB_ADVANCED_STATS_ENABLE) += -DECM_DB_ADVANCED_STATS_ENABLE
252
253# #############################################################################
Gareth Williamsb5903892015-03-20 15:13:07 +0000254# Define ECM_DB_CONNECTION_CROSS_REFERENCING_ENABLE=y in order to enable
255# the database to track relationships between objects.
256# #############################################################################
257ECM_DB_CONNECTION_CROSS_REFERENCING_ENABLE=y
258ccflags-$(ECM_DB_CONNECTION_CROSS_REFERENCING_ENABLE) += -DECM_DB_XREF_ENABLE
259
260# #############################################################################
Gareth Williams88be3722015-03-23 19:51:01 +0000261# Define ECM_TRACKER_DPI_SUPPORT_ENABLE=y in order to enable support for
262# deep packet inspection and tracking of data with the trackers.
263# #############################################################################
264ECM_TRACKER_DPI_SUPPORT_ENABLE=y
265ccflags-$(ECM_TRACKER_DPI_SUPPORT_ENABLE) += -DECM_TRACKER_DPI_SUPPORT_ENABLE
266
267# #############################################################################
Gareth Williamsb39e7c22015-03-25 10:15:33 +0000268# Define ECM_DB_CLASSIFIER_TYPE_ASSIGNMENTS_TRACK_ENABLE=y in order to enable
269# support for the database keeping lists of connections that are assigned
270# on a per TYPE of classifier basis.
271# #############################################################################
272ECM_DB_CLASSIFIER_TYPE_ASSIGNMENTS_TRACK_ENABLE=y
273ccflags-$(ECM_DB_CLASSIFIER_TYPE_ASSIGNMENTS_TRACK_ENABLE) += -DECM_DB_CTA_TRACK_ENABLE
274
275# #############################################################################
Murat Sezgin8c345822015-05-27 15:35:38 -0700276# Define ECM_BAND_STEERING_ENABLE=y in order to enable
277# band steering feature.
278# #############################################################################
279ECM_BAND_STEERING_ENABLE=y
280ccflags-$(ECM_BAND_STEERING_ENABLE) += -DECM_BAND_STEERING_ENABLE
281
282# #############################################################################
Gareth Williamsdbb2bfd2014-11-20 16:42:09 -0800283# Debug flags, set these to = 0 if you want to disable all debugging for that
284# file.
285# By turning off debugs you gain maximum ECM performance.
286# #############################################################################
Gareth Williams8932a912014-06-11 18:06:25 -0700287ccflags-y += -DECM_CLASSIFIER_DSCP_DEBUG_LEVEL=1
Ben Menchaca84f36632014-02-28 20:57:38 +0000288ccflags-y += -DECM_CLASSIFIER_HYFI_DEBUG_LEVEL=1
Gareth Williamsdcda9b92015-05-13 10:08:15 +0100289ccflags-y += -DECM_CLASSIFIER_PCC_DEBUG_LEVEL=1
Ben Menchaca84f36632014-02-28 20:57:38 +0000290ccflags-y += -DECM_CLASSIFIER_NL_DEBUG_LEVEL=1
291ccflags-y += -DECM_CLASSIFIER_DEFAULT_DEBUG_LEVEL=1
292ccflags-y += -DECM_DB_DEBUG_LEVEL=1
Murat Sezgin3ab259d2015-06-11 14:15:35 -0700293ccflags-y += -DECM_INIT_DEBUG_LEVEL=3
Ben Menchaca84f36632014-02-28 20:57:38 +0000294ccflags-y += -DECM_FRONT_END_IPV4_DEBUG_LEVEL=1
295ccflags-y += -DECM_FRONT_END_IPV6_DEBUG_LEVEL=1
Murat Sezgin5f138492015-06-11 15:18:27 -0700296ccflags-y += -DECM_FRONT_END_COMMON_DEBUG_LEVEL=1
Murat Sezgin3ab259d2015-06-11 14:15:35 -0700297ccflags-y += -DECM_NSS_IPV4_DEBUG_LEVEL=1
298ccflags-y += -DECM_NSS_PORTED_IPV4_DEBUG_LEVEL=1
299ccflags-y += -DECM_NSS_NON_PORTED_IPV4_DEBUG_LEVEL=1
300ccflags-y += -DECM_NSS_MULTICAST_IPV4_DEBUG_LEVEL=1
301ccflags-y += -DECM_NSS_IPV6_DEBUG_LEVEL=1
302ccflags-y += -DECM_NSS_PORTED_IPV6_DEBUG_LEVEL=1
303ccflags-y += -DECM_NSS_NON_PORTED_IPV6_DEBUG_LEVEL=1
304ccflags-y += -DECM_NSS_MULTICAST_IPV6_DEBUG_LEVEL=1
Xiaoping Fanb9390542015-07-20 18:15:21 -0700305ccflags-y += -DECM_SFE_IPV4_DEBUG_LEVEL=1
306ccflags-y += -DECM_SFE_PORTED_IPV4_DEBUG_LEVEL=1
307ccflags-y += -DECM_SFE_NON_PORTED_IPV4_DEBUG_LEVEL=1
308ccflags-y += -DECM_SFE_IPV6_DEBUG_LEVEL=1
309ccflags-y += -DECM_SFE_PORTED_IPV6_DEBUG_LEVEL=1
310ccflags-y += -DECM_SFE_NON_PORTED_IPV6_DEBUG_LEVEL=1
Ben Menchaca84f36632014-02-28 20:57:38 +0000311ccflags-y += -DECM_CONNTRACK_NOTIFIER_DEBUG_LEVEL=1
312ccflags-y += -DECM_TRACKER_DEBUG_LEVEL=1
313ccflags-y += -DECM_TRACKER_DATAGRAM_DEBUG_LEVEL=1
314ccflags-y += -DECM_TRACKER_TCP_DEBUG_LEVEL=1
315ccflags-y += -DECM_TRACKER_UDP_DEBUG_LEVEL=1
316ccflags-y += -DECM_BOND_NOTIFIER_DEBUG_LEVEL=1
317ccflags-y += -DECM_INTERFACE_DEBUG_LEVEL=1
Gareth Williamsf98d4192015-03-11 16:55:41 +0000318ccflags-y += -DECM_STATE_DEBUG_LEVEL=1
Stephen Wangaa7e5f72015-05-12 15:25:12 -0700319ccflags-y += -DECM_OPENWRT_SUPPORT=1
Ben Menchaca84f36632014-02-28 20:57:38 +0000320
Xiaoping Fanb9390542015-07-20 18:15:21 -0700321ccflags-y += -I$(obj)/ -I$(obj)/frontends/include -I$(obj)/frontends/nss -I$(obj)/frontends/sfe
Murat Sezgin7c12aba2015-03-16 12:01:57 -0700322
Ben Menchaca84f36632014-02-28 20:57:38 +0000323obj ?= .
324