Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 1 | ########################################################################## |
Murat Sezgin | 1957a98 | 2015-05-21 22:22:25 +0100 | [diff] [blame] | 2 | # Copyright (c) 2014-2016, The Linux Foundation. All rights reserved. |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 3 | # 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 Costa | f46c33b | 2014-05-15 10:02:00 -0500 | [diff] [blame] | 19 | obj-m += ecm.o |
| 20 | |
Murat Sezgin | 1957a98 | 2015-05-21 22:22:25 +0100 | [diff] [blame] | 21 | # ##################################################### |
| 22 | # Example builds. |
| 23 | # Enable example build by using the menuconfig options. |
| 24 | # ##################################################### |
| 25 | ifeq ($(EXAMPLES_BUILD_PCC),y) |
| 26 | obj-m += examples/ecm_pcc_test.o |
| 27 | endif |
| 28 | |
Hai Shalom | 81f4e20 | 2014-06-04 09:30:27 -0700 | [diff] [blame] | 29 | ecm-y := \ |
Nicolas Costa | f46c33b | 2014-05-15 10:02:00 -0500 | [diff] [blame] | 30 | ecm_tracker_udp.o \ |
| 31 | ecm_tracker_tcp.o \ |
| 32 | ecm_tracker_datagram.o \ |
| 33 | ecm_tracker.o \ |
Murat Sezgin | 3ab259d | 2015-06-11 14:15:35 -0700 | [diff] [blame] | 34 | frontends/ecm_front_end_ipv4.o \ |
| 35 | frontends/ecm_front_end_ipv6.o \ |
Murat Sezgin | 5f13849 | 2015-06-11 15:18:27 -0700 | [diff] [blame] | 36 | frontends/ecm_front_end_common.o \ |
Nicolas Costa | f46c33b | 2014-05-15 10:02:00 -0500 | [diff] [blame] | 37 | ecm_db.o \ |
Murat Sezgin | c725ad8 | 2016-04-13 17:12:50 -0700 | [diff] [blame] | 38 | ecm_classifier.o \ |
Nicolas Costa | f46c33b | 2014-05-15 10:02:00 -0500 | [diff] [blame] | 39 | ecm_classifier_default.o \ |
Nicolas Costa | f46c33b | 2014-05-15 10:02:00 -0500 | [diff] [blame] | 40 | ecm_interface.o \ |
Murat Sezgin | df98fce | 2016-08-26 17:56:39 -0700 | [diff] [blame] | 41 | ecm_conntrack_notifier.o \ |
Nicolas Costa | f46c33b | 2014-05-15 10:02:00 -0500 | [diff] [blame] | 42 | ecm_init.o |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 43 | |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 44 | # ############################################################################# |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 45 | # Define ECM_FRONT_END_NSS_ENABLE=y in order to select |
| 46 | # nss as ECM's front end. |
| 47 | # ############################################################################# |
| 48 | ifeq ($(ECM_FRONT_END_NSS_ENABLE),) |
| 49 | ECM_FRONT_END_NSS_ENABLE=y |
| 50 | endif |
| 51 | ecm-$(ECM_FRONT_END_NSS_ENABLE) += frontends/nss/ecm_nss_ipv4.o |
| 52 | ecm-$(ECM_FRONT_END_NSS_ENABLE) += frontends/nss/ecm_nss_ported_ipv4.o |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 53 | ccflags-$(ECM_FRONT_END_NSS_ENABLE) += -DECM_FRONT_END_NSS_ENABLE |
| 54 | |
| 55 | # ############################################################################# |
| 56 | # Define ECM_FRONT_END_SFE_ENABLE=y in order to select |
| 57 | # sfe as ECM's front end. |
| 58 | # ############################################################################# |
Murat Sezgin | e1c51d8 | 2016-02-10 16:42:58 -0800 | [diff] [blame] | 59 | ifeq ($(findstring 4.4., $(KERNELVERSION)),) |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 60 | ifeq ($(ECM_FRONT_END_SFE_ENABLE),) |
| 61 | ECM_FRONT_END_SFE_ENABLE=y |
| 62 | endif |
Murat Sezgin | e1c51d8 | 2016-02-10 16:42:58 -0800 | [diff] [blame] | 63 | endif |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 64 | ecm-$(ECM_FRONT_END_SFE_ENABLE) += frontends/sfe/ecm_sfe_ipv4.o |
| 65 | ecm-$(ECM_FRONT_END_SFE_ENABLE) += frontends/sfe/ecm_sfe_ported_ipv4.o |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 66 | ccflags-$(ECM_FRONT_END_SFE_ENABLE) += -DECM_FRONT_END_SFE_ENABLE |
| 67 | |
| 68 | # ############################################################################# |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 69 | # Define ECM_INTERFACE_BOND_ENABLE=y in order to enable |
| 70 | # Bonding / Link Aggregation support. |
| 71 | # ############################################################################# |
Murat Sezgin | e1c51d8 | 2016-02-10 16:42:58 -0800 | [diff] [blame] | 72 | ifeq ($(findstring 4.4., $(KERNELVERSION)),) |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 73 | ifeq ($(ECM_FRONT_END_NSS_ENABLE), y) |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 74 | ECM_INTERFACE_BOND_ENABLE=y |
| 75 | endif |
Murat Sezgin | e1c51d8 | 2016-02-10 16:42:58 -0800 | [diff] [blame] | 76 | endif |
Murat Sezgin | 8e10a7c | 2015-06-11 15:49:24 -0700 | [diff] [blame] | 77 | ecm-$(ECM_INTERFACE_BOND_ENABLE) += frontends/nss/ecm_nss_bond_notifier.o |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 78 | ccflags-$(ECM_INTERFACE_BOND_ENABLE) += -DECM_INTERFACE_BOND_ENABLE |
Hai Shalom | 81f4e20 | 2014-06-04 09:30:27 -0700 | [diff] [blame] | 79 | |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 80 | # ############################################################################# |
ratheesh kannoth | a32fdd1 | 2015-09-09 08:02:58 +0530 | [diff] [blame] | 81 | # Define ECM_INTERFACE_PPPOE_ENABLE=y in order |
| 82 | # to enable support for PPPoE acceleration. |
| 83 | # ############################################################################# |
| 84 | ECM_INTERFACE_PPPOE_ENABLE=y |
| 85 | ccflags-$(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 kannoth | a32fdd1 | 2015-09-09 08:02:58 +0530 | [diff] [blame] | 91 | ECM_INTERFACE_L2TPV2_ENABLE=y |
ratheesh kannoth | a32fdd1 | 2015-09-09 08:02:58 +0530 | [diff] [blame] | 92 | ccflags-$(ECM_INTERFACE_L2TPV2_ENABLE) += -DECM_INTERFACE_L2TPV2_ENABLE |
| 93 | |
| 94 | # ############################################################################# |
Shyam Sunder | 23f2e54 | 2015-09-28 14:56:49 +0530 | [diff] [blame] | 95 | # Define ECM_INTERFACE_PPTP_ENABLE=y in order |
| 96 | # to enable support for pptp acceleration. |
| 97 | # ############################################################################# |
Shyam Sunder | 23f2e54 | 2015-09-28 14:56:49 +0530 | [diff] [blame] | 98 | ECM_INTERFACE_PPTP_ENABLE=y |
Shyam Sunder | 23f2e54 | 2015-09-28 14:56:49 +0530 | [diff] [blame] | 99 | ccflags-$(ECM_INTERFACE_PPTP_ENABLE) += -DECM_INTERFACE_PPTP_ENABLE |
| 100 | |
| 101 | # ############################################################################# |
| 102 | # if pppoe, l2tpv2, pptp acceleration is enabled, ppp should |
ratheesh kannoth | a32fdd1 | 2015-09-09 08:02:58 +0530 | [diff] [blame] | 103 | # be enabled automatically |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 104 | # ############################################################################# |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 105 | ECM_INTERFACE_PPP_ENABLE=y |
ratheesh kannoth | a32fdd1 | 2015-09-09 08:02:58 +0530 | [diff] [blame] | 106 | ifeq "$(ECM_INTERFACE_PPPOE_ENABLE)" "n" |
| 107 | ifeq "$(ECM_INTERFACE_L2TPV2_ENABLE)" "n" |
Shyam Sunder | 23f2e54 | 2015-09-28 14:56:49 +0530 | [diff] [blame] | 108 | ifeq "$(ECM_INTERFACE_PPTP_ENABLE)" "n" |
ratheesh kannoth | a32fdd1 | 2015-09-09 08:02:58 +0530 | [diff] [blame] | 109 | ECM_INTERFACE_PPP_ENABLE=n |
| 110 | endif |
| 111 | endif |
Shyam Sunder | 23f2e54 | 2015-09-28 14:56:49 +0530 | [diff] [blame] | 112 | endif |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 113 | ccflags-$(ECM_INTERFACE_PPP_ENABLE) += -DECM_INTERFACE_PPP_ENABLE |
| 114 | |
| 115 | # ############################################################################# |
ratheesh kannoth | cfdcb33 | 2015-12-24 07:19:18 +0530 | [diff] [blame] | 116 | # Define ECM_INTERFACE_MAP_T_ENABLE=y in order |
| 117 | # to enable support for MAP-T interface. |
| 118 | # ############################################################################# |
| 119 | ifneq ($(findstring 3.14, $(KERNELVERSION)),) |
| 120 | ECM_INTERFACE_MAP_T_ENABLE=y |
| 121 | endif |
| 122 | ccflags-$(ECM_INTERFACE_MAP_T_ENABLE) += -DECM_INTERFACE_MAP_T_ENABLE |
| 123 | |
| 124 | # ############################################################################# |
Murat Sezgin | b3731e8 | 2014-11-26 12:20:59 -0800 | [diff] [blame] | 125 | # Define ECM_INTERFACE_SIT_ENABLE=y in order |
| 126 | # to enable support for SIT interface. |
| 127 | # ############################################################################# |
Murat Sezgin | b3731e8 | 2014-11-26 12:20:59 -0800 | [diff] [blame] | 128 | ECM_INTERFACE_SIT_ENABLE=y |
Murat Sezgin | b3731e8 | 2014-11-26 12:20:59 -0800 | [diff] [blame] | 129 | ccflags-$(ECM_INTERFACE_SIT_ENABLE) += -DECM_INTERFACE_SIT_ENABLE |
| 130 | |
| 131 | # ############################################################################# |
Murat Sezgin | c140256 | 2015-03-12 12:32:20 -0700 | [diff] [blame] | 132 | # Define ECM_INTERFACE_TUNIPIP6_ENABLE=y in order |
| 133 | # to enable support for TUNIPIP6 interface. |
| 134 | # ############################################################################# |
Murat Sezgin | c140256 | 2015-03-12 12:32:20 -0700 | [diff] [blame] | 135 | ECM_INTERFACE_TUNIPIP6_ENABLE=y |
Murat Sezgin | c140256 | 2015-03-12 12:32:20 -0700 | [diff] [blame] | 136 | ccflags-$(ECM_INTERFACE_TUNIPIP6_ENABLE) += -DECM_INTERFACE_TUNIPIP6_ENABLE |
| 137 | |
| 138 | # ############################################################################# |
Shyam Sunder | 1f03726 | 2015-05-18 20:04:13 +0530 | [diff] [blame] | 139 | # Define ECM_MULTICAST_ENABLE=y in order to enable support for ECM Multicast |
| 140 | # ############################################################################# |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 141 | ifeq ($(ECM_FRONT_END_NSS_ENABLE), y) |
Murat Sezgin | 34f45c1 | 2015-11-19 13:25:22 -0800 | [diff] [blame] | 142 | # |
| 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 | # |
| 147 | MCS_CONFIG:=$(shell grep "CONFIG_PACKAGE_kmod-qca-mcs=y" $(TOPDIR)/.config) |
| 148 | MCS_ENABLED:=CONFIG_PACKAGE_kmod-qca-mcs=y |
| 149 | ifeq ($(MCS_CONFIG),$(MCS_ENABLED)) |
Shyam Sunder | be633de | 2016-10-06 17:02:31 +0530 | [diff] [blame^] | 150 | ECM_MULTICAST_ENABLE=y |
Shyam Sunder | dd68269 | 2015-05-04 18:15:18 +0530 | [diff] [blame] | 151 | ecm-$(ECM_MULTICAST_ENABLE) += frontends/nss/ecm_nss_multicast_ipv4.o |
Murat Sezgin | 3ab259d | 2015-06-11 14:15:35 -0700 | [diff] [blame] | 152 | ecm-$(ECM_MULTICAST_ENABLE) += frontends/nss/ecm_nss_multicast_ipv6.o |
Shyam Sunder | 1f03726 | 2015-05-18 20:04:13 +0530 | [diff] [blame] | 153 | ccflags-$(ECM_MULTICAST_ENABLE) += -DECM_MULTICAST_ENABLE |
Karthik Hariharan | 3e964a3 | 2015-09-22 21:40:52 +0530 | [diff] [blame] | 154 | endif |
Murat Sezgin | 34f45c1 | 2015-11-19 13:25:22 -0800 | [diff] [blame] | 155 | endif |
Shyam Sunder | 1f03726 | 2015-05-18 20:04:13 +0530 | [diff] [blame] | 156 | |
| 157 | # ############################################################################# |
Gareth Williams | 141d238 | 2014-11-25 11:35:19 -0800 | [diff] [blame] | 158 | # Define ECM_INTERFACE_VLAN_ENABLE=y in order to enable support for VLAN |
| 159 | # ############################################################################# |
Gareth Williams | 141d238 | 2014-11-25 11:35:19 -0800 | [diff] [blame] | 160 | ECM_INTERFACE_VLAN_ENABLE=y |
Gareth Williams | 141d238 | 2014-11-25 11:35:19 -0800 | [diff] [blame] | 161 | ccflags-$(ECM_INTERFACE_VLAN_ENABLE) += -DECM_INTERFACE_VLAN_ENABLE |
| 162 | |
| 163 | # ############################################################################# |
Murat Sezgin | 69a2753 | 2015-03-12 14:09:40 -0700 | [diff] [blame] | 164 | # Define ECM_INTERFACE_IPSEC_ENABLE=y in order to enable support for IPSEC |
| 165 | # ############################################################################# |
| 166 | ECM_INTERFACE_IPSEC_ENABLE=y |
| 167 | ccflags-$(ECM_INTERFACE_IPSEC_ENABLE) += -DECM_INTERFACE_IPSEC_ENABLE |
| 168 | |
| 169 | # ############################################################################# |
Gareth Williams | 8ac3429 | 2015-03-17 14:06:58 +0000 | [diff] [blame] | 170 | # Define ECM_IPV6_ENABLE=y in order to enable IPv6 support in the ECM. |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 171 | # ############################################################################# |
Gareth Williams | 8ac3429 | 2015-03-17 14:06:58 +0000 | [diff] [blame] | 172 | ECM_IPV6_ENABLE=y |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 173 | ifeq ($(ECM_FRONT_END_NSS_ENABLE), y) |
Murat Sezgin | 3ab259d | 2015-06-11 14:15:35 -0700 | [diff] [blame] | 174 | ecm-$(ECM_IPV6_ENABLE) += frontends/nss/ecm_nss_ipv6.o |
| 175 | ecm-$(ECM_IPV6_ENABLE) += frontends/nss/ecm_nss_ported_ipv6.o |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 176 | endif |
| 177 | ifeq ($(ECM_FRONT_END_SFE_ENABLE), y) |
| 178 | ecm-$(ECM_IPV6_ENABLE) += frontends/sfe/ecm_sfe_ipv6.o |
| 179 | ecm-$(ECM_IPV6_ENABLE) += frontends/sfe/ecm_sfe_ported_ipv6.o |
| 180 | endif |
Gareth Williams | 8ac3429 | 2015-03-17 14:06:58 +0000 | [diff] [blame] | 181 | ccflags-$(ECM_IPV6_ENABLE) += -DECM_IPV6_ENABLE |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 182 | |
| 183 | # ############################################################################# |
| 184 | # Define ECM_CLASSIFIER_NL_ENABLE=y in order to enable NL classifier. |
| 185 | # ############################################################################# |
Murat Sezgin | e1c51d8 | 2016-02-10 16:42:58 -0800 | [diff] [blame] | 186 | ifeq ($(findstring 4.4., $(KERNELVERSION)),) |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 187 | ECM_CLASSIFIER_NL_ENABLE=y |
Murat Sezgin | e1c51d8 | 2016-02-10 16:42:58 -0800 | [diff] [blame] | 188 | endif |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 189 | ecm-$(ECM_CLASSIFIER_NL_ENABLE) += ecm_classifier_nl.o |
| 190 | ccflags-$(ECM_CLASSIFIER_NL_ENABLE) += -DECM_CLASSIFIER_NL_ENABLE |
| 191 | |
| 192 | # ############################################################################# |
| 193 | # Define ECM_CLASSIFIER_DSCP_ENABLE=y in order to enable DSCP classifier. |
| 194 | # ############################################################################# |
Murat Sezgin | e1c51d8 | 2016-02-10 16:42:58 -0800 | [diff] [blame] | 195 | ifeq ($(findstring 4.4., $(KERNELVERSION)),) |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 196 | ECM_CLASSIFIER_DSCP_ENABLE=y |
Murat Sezgin | e1c51d8 | 2016-02-10 16:42:58 -0800 | [diff] [blame] | 197 | endif |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 198 | ecm-$(ECM_CLASSIFIER_DSCP_ENABLE) += ecm_classifier_dscp.o |
| 199 | ccflags-$(ECM_CLASSIFIER_DSCP_ENABLE) += -DECM_CLASSIFIER_DSCP_ENABLE |
| 200 | |
| 201 | # ############################################################################# |
| 202 | # Define ECM_CLASSIFIER_HYFI_ENABLE=y in order to enable |
| 203 | # the Hy-Fi classifier in ECM. Currently disabled until the integration |
| 204 | # with Hy-Fi is completed. |
| 205 | # ############################################################################# |
Murat Sezgin | 34f45c1 | 2015-11-19 13:25:22 -0800 | [diff] [blame] | 206 | # |
| 207 | # TODO: This is a workaround for external builds in which the qca-hyfi-bridge source |
| 208 | # code is not available. This will be fixed later by breaking the dependency from ECM |
| 209 | # to qca-hyfi-bridge |
| 210 | # |
| 211 | HYFI_BRIDGE_CONFIG:=$(shell grep "CONFIG_PACKAGE_kmod-qca-hyfi-bridge=y" $(TOPDIR)/.config) |
| 212 | HYFI_BRIDGE_ENABLED:=CONFIG_PACKAGE_kmod-qca-hyfi-bridge=y |
| 213 | ifeq ($(HYFI_BRIDGE_CONFIG),$(HYFI_BRIDGE_ENABLED)) |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 214 | ecm-$(ECM_CLASSIFIER_HYFI_ENABLE) += ecm_classifier_hyfi.o |
| 215 | ccflags-$(ECM_CLASSIFIER_HYFI_ENABLE) += -DECM_CLASSIFIER_HYFI_ENABLE |
Murat Sezgin | 34f45c1 | 2015-11-19 13:25:22 -0800 | [diff] [blame] | 216 | endif |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 217 | |
| 218 | # ############################################################################# |
Gareth Williams | dcda9b9 | 2015-05-13 10:08:15 +0100 | [diff] [blame] | 219 | # Define ECM_CLASSIFIER_PCC_ENABLE=y in order to enable |
| 220 | # the Parental Controls subsystem classifier in ECM. Currently disabled until |
| 221 | # customers require it / if they need to integrate their Parental Controls with it. |
| 222 | # ############################################################################# |
| 223 | ECM_CLASSIFIER_PCC_ENABLE=y |
| 224 | ecm-$(ECM_CLASSIFIER_PCC_ENABLE) += ecm_classifier_pcc.o |
| 225 | ccflags-$(ECM_CLASSIFIER_PCC_ENABLE) += -DECM_CLASSIFIER_PCC_ENABLE |
| 226 | |
| 227 | # ############################################################################# |
Murat Sezgin | 8d916a1 | 2015-03-18 15:56:50 -0700 | [diff] [blame] | 228 | # Define ECM_NON_PORTED_SUPPORT_ENABLE=y in order to enable non-ported protocol. |
| 229 | # ############################################################################# |
| 230 | ECM_NON_PORTED_SUPPORT_ENABLE=y |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 231 | ifeq ($(ECM_FRONT_END_NSS_ENABLE), y) |
Murat Sezgin | 8d916a1 | 2015-03-18 15:56:50 -0700 | [diff] [blame] | 232 | ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/nss/ecm_nss_non_ported_ipv4.o |
Murat Sezgin | 3ab259d | 2015-06-11 14:15:35 -0700 | [diff] [blame] | 233 | ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/nss/ecm_nss_non_ported_ipv6.o |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 234 | endif |
| 235 | ifeq ($(ECM_FRONT_END_SFE_ENABLE), y) |
| 236 | ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/sfe/ecm_sfe_non_ported_ipv4.o |
| 237 | ecm-$(ECM_NON_PORTED_SUPPORT_ENABLE) += frontends/sfe/ecm_sfe_non_ported_ipv6.o |
| 238 | endif |
Murat Sezgin | 8d916a1 | 2015-03-18 15:56:50 -0700 | [diff] [blame] | 239 | ccflags-$(ECM_NON_PORTED_SUPPORT_ENABLE) += -DECM_NON_PORTED_SUPPORT_ENABLE |
| 240 | |
Gareth Williams | f98d419 | 2015-03-11 16:55:41 +0000 | [diff] [blame] | 241 | # ############################################################################# |
| 242 | # Define ECM_STATE_OUTPUT_ENABLE=y to support XML state output |
| 243 | # ############################################################################# |
| 244 | ECM_STATE_OUTPUT_ENABLE=y |
| 245 | ecm-$(ECM_STATE_OUTPUT_ENABLE) += ecm_state.o |
| 246 | ccflags-$(ECM_STATE_OUTPUT_ENABLE) += -DECM_STATE_OUTPUT_ENABLE |
Murat Sezgin | 8d916a1 | 2015-03-18 15:56:50 -0700 | [diff] [blame] | 247 | |
| 248 | # ############################################################################# |
Gareth Williams | 85331c9 | 2015-03-11 20:39:18 +0000 | [diff] [blame] | 249 | # Define ECM_DB_ADVANCED_STATS_ENABLE to support XML state output |
| 250 | # ############################################################################# |
| 251 | ECM_DB_ADVANCED_STATS_ENABLE=y |
| 252 | ccflags-$(ECM_DB_ADVANCED_STATS_ENABLE) += -DECM_DB_ADVANCED_STATS_ENABLE |
| 253 | |
| 254 | # ############################################################################# |
Gareth Williams | b590389 | 2015-03-20 15:13:07 +0000 | [diff] [blame] | 255 | # Define ECM_DB_CONNECTION_CROSS_REFERENCING_ENABLE=y in order to enable |
| 256 | # the database to track relationships between objects. |
| 257 | # ############################################################################# |
| 258 | ECM_DB_CONNECTION_CROSS_REFERENCING_ENABLE=y |
| 259 | ccflags-$(ECM_DB_CONNECTION_CROSS_REFERENCING_ENABLE) += -DECM_DB_XREF_ENABLE |
| 260 | |
| 261 | # ############################################################################# |
Gareth Williams | 88be372 | 2015-03-23 19:51:01 +0000 | [diff] [blame] | 262 | # Define ECM_TRACKER_DPI_SUPPORT_ENABLE=y in order to enable support for |
| 263 | # deep packet inspection and tracking of data with the trackers. |
| 264 | # ############################################################################# |
| 265 | ECM_TRACKER_DPI_SUPPORT_ENABLE=y |
| 266 | ccflags-$(ECM_TRACKER_DPI_SUPPORT_ENABLE) += -DECM_TRACKER_DPI_SUPPORT_ENABLE |
| 267 | |
| 268 | # ############################################################################# |
Gareth Williams | b39e7c2 | 2015-03-25 10:15:33 +0000 | [diff] [blame] | 269 | # Define ECM_DB_CLASSIFIER_TYPE_ASSIGNMENTS_TRACK_ENABLE=y in order to enable |
| 270 | # support for the database keeping lists of connections that are assigned |
| 271 | # on a per TYPE of classifier basis. |
| 272 | # ############################################################################# |
| 273 | ECM_DB_CLASSIFIER_TYPE_ASSIGNMENTS_TRACK_ENABLE=y |
| 274 | ccflags-$(ECM_DB_CLASSIFIER_TYPE_ASSIGNMENTS_TRACK_ENABLE) += -DECM_DB_CTA_TRACK_ENABLE |
| 275 | |
| 276 | # ############################################################################# |
Murat Sezgin | 8c34582 | 2015-05-27 15:35:38 -0700 | [diff] [blame] | 277 | # Define ECM_BAND_STEERING_ENABLE=y in order to enable |
| 278 | # band steering feature. |
| 279 | # ############################################################################# |
| 280 | ECM_BAND_STEERING_ENABLE=y |
| 281 | ccflags-$(ECM_BAND_STEERING_ENABLE) += -DECM_BAND_STEERING_ENABLE |
| 282 | |
| 283 | # ############################################################################# |
Gareth Williams | dbb2bfd | 2014-11-20 16:42:09 -0800 | [diff] [blame] | 284 | # Debug flags, set these to = 0 if you want to disable all debugging for that |
| 285 | # file. |
| 286 | # By turning off debugs you gain maximum ECM performance. |
| 287 | # ############################################################################# |
Murat Sezgin | c725ad8 | 2016-04-13 17:12:50 -0700 | [diff] [blame] | 288 | ccflags-y += -DECM_CLASSIFIER_DEBUG_LEVEL=1 |
Gareth Williams | 8932a91 | 2014-06-11 18:06:25 -0700 | [diff] [blame] | 289 | ccflags-y += -DECM_CLASSIFIER_DSCP_DEBUG_LEVEL=1 |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 290 | ccflags-y += -DECM_CLASSIFIER_HYFI_DEBUG_LEVEL=1 |
Gareth Williams | dcda9b9 | 2015-05-13 10:08:15 +0100 | [diff] [blame] | 291 | ccflags-y += -DECM_CLASSIFIER_PCC_DEBUG_LEVEL=1 |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 292 | ccflags-y += -DECM_CLASSIFIER_NL_DEBUG_LEVEL=1 |
| 293 | ccflags-y += -DECM_CLASSIFIER_DEFAULT_DEBUG_LEVEL=1 |
| 294 | ccflags-y += -DECM_DB_DEBUG_LEVEL=1 |
Murat Sezgin | 3ab259d | 2015-06-11 14:15:35 -0700 | [diff] [blame] | 295 | ccflags-y += -DECM_INIT_DEBUG_LEVEL=3 |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 296 | ccflags-y += -DECM_FRONT_END_IPV4_DEBUG_LEVEL=1 |
| 297 | ccflags-y += -DECM_FRONT_END_IPV6_DEBUG_LEVEL=1 |
Murat Sezgin | 5f13849 | 2015-06-11 15:18:27 -0700 | [diff] [blame] | 298 | ccflags-y += -DECM_FRONT_END_COMMON_DEBUG_LEVEL=1 |
Murat Sezgin | 3ab259d | 2015-06-11 14:15:35 -0700 | [diff] [blame] | 299 | ccflags-y += -DECM_NSS_IPV4_DEBUG_LEVEL=1 |
| 300 | ccflags-y += -DECM_NSS_PORTED_IPV4_DEBUG_LEVEL=1 |
| 301 | ccflags-y += -DECM_NSS_NON_PORTED_IPV4_DEBUG_LEVEL=1 |
| 302 | ccflags-y += -DECM_NSS_MULTICAST_IPV4_DEBUG_LEVEL=1 |
| 303 | ccflags-y += -DECM_NSS_IPV6_DEBUG_LEVEL=1 |
| 304 | ccflags-y += -DECM_NSS_PORTED_IPV6_DEBUG_LEVEL=1 |
| 305 | ccflags-y += -DECM_NSS_NON_PORTED_IPV6_DEBUG_LEVEL=1 |
| 306 | ccflags-y += -DECM_NSS_MULTICAST_IPV6_DEBUG_LEVEL=1 |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 307 | ccflags-y += -DECM_SFE_IPV4_DEBUG_LEVEL=1 |
| 308 | ccflags-y += -DECM_SFE_PORTED_IPV4_DEBUG_LEVEL=1 |
| 309 | ccflags-y += -DECM_SFE_NON_PORTED_IPV4_DEBUG_LEVEL=1 |
| 310 | ccflags-y += -DECM_SFE_IPV6_DEBUG_LEVEL=1 |
| 311 | ccflags-y += -DECM_SFE_PORTED_IPV6_DEBUG_LEVEL=1 |
| 312 | ccflags-y += -DECM_SFE_NON_PORTED_IPV6_DEBUG_LEVEL=1 |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 313 | ccflags-y += -DECM_CONNTRACK_NOTIFIER_DEBUG_LEVEL=1 |
| 314 | ccflags-y += -DECM_TRACKER_DEBUG_LEVEL=1 |
| 315 | ccflags-y += -DECM_TRACKER_DATAGRAM_DEBUG_LEVEL=1 |
| 316 | ccflags-y += -DECM_TRACKER_TCP_DEBUG_LEVEL=1 |
| 317 | ccflags-y += -DECM_TRACKER_UDP_DEBUG_LEVEL=1 |
| 318 | ccflags-y += -DECM_BOND_NOTIFIER_DEBUG_LEVEL=1 |
| 319 | ccflags-y += -DECM_INTERFACE_DEBUG_LEVEL=1 |
Gareth Williams | f98d419 | 2015-03-11 16:55:41 +0000 | [diff] [blame] | 320 | ccflags-y += -DECM_STATE_DEBUG_LEVEL=1 |
Stephen Wang | aa7e5f7 | 2015-05-12 15:25:12 -0700 | [diff] [blame] | 321 | ccflags-y += -DECM_OPENWRT_SUPPORT=1 |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 322 | |
Xiaoping Fan | b939054 | 2015-07-20 18:15:21 -0700 | [diff] [blame] | 323 | ccflags-y += -I$(obj)/ -I$(obj)/frontends/include -I$(obj)/frontends/nss -I$(obj)/frontends/sfe |
Murat Sezgin | 7c12aba | 2015-03-16 12:01:57 -0700 | [diff] [blame] | 324 | |
Ben Menchaca | 84f3663 | 2014-02-28 20:57:38 +0000 | [diff] [blame] | 325 | obj ?= . |
| 326 | |