Makefile 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648
  1. #
  2. # Copyright (C) 2006-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=iptables
  10. PKG_VERSION:=1.6.2
  11. PKG_RELEASE:=2
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://git.netfilter.org/iptables
  14. PKG_SOURCE_VERSION:=c16bdec15137b241586310d0e61bc88cc3726004
  15. PKG_MIRROR_HASH:=72e4bec94a56dd600097846c773e1074ff705e38f800ef221db646c064371a53
  16. PKG_FIXUP:=autoreconf
  17. PKG_FLAGS:=nonshared
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_LICENSE:=GPL-2.0
  21. PKG_CPE_ID:=cpe:/a:netfilter_core_team:iptables
  22. include $(INCLUDE_DIR)/package.mk
  23. ifeq ($(DUMP),)
  24. -include $(LINUX_DIR)/.config
  25. include $(INCLUDE_DIR)/netfilter.mk
  26. STAMP_CONFIGURED:=$(strip $(STAMP_CONFIGURED))_$(shell grep 'NETFILTER' $(LINUX_DIR)/.config | mkhash md5)
  27. endif
  28. define Package/iptables/Default
  29. SECTION:=net
  30. CATEGORY:=Network
  31. SUBMENU:=Firewall
  32. URL:=http://netfilter.org/
  33. endef
  34. define Package/iptables/Module
  35. $(call Package/iptables/Default)
  36. DEPENDS:=iptables $(1)
  37. endef
  38. define Package/iptables
  39. $(call Package/iptables/Default)
  40. TITLE:=IP firewall administration tool
  41. MENU:=1
  42. DEPENDS+= +kmod-ipt-core +libip4tc +IPV6:libip6tc +libxtables
  43. endef
  44. define Package/iptables/config
  45. config IPTABLES_CONNLABEL
  46. bool "Enable Connlabel support"
  47. default n
  48. help
  49. This enable connlabel support in iptables.
  50. config IPTABLES_NFTABLES
  51. bool "Enable Nftables support"
  52. default n
  53. help
  54. This enable nftables support in iptables.
  55. endef
  56. define Package/iptables/description
  57. IP firewall administration tool.
  58. Matches:
  59. - icmp
  60. - tcp
  61. - udp
  62. - comment
  63. - conntrack
  64. - limit
  65. - mac
  66. - mark
  67. - multiport
  68. - set
  69. - state
  70. - time
  71. Targets:
  72. - ACCEPT
  73. - CT
  74. - DNAT
  75. - DROP
  76. - REJECT
  77. - FLOWOFFLOAD
  78. - LOG
  79. - MARK
  80. - MASQUERADE
  81. - REDIRECT
  82. - SET
  83. - SNAT
  84. - TCPMSS
  85. Tables:
  86. - filter
  87. - mangle
  88. - nat
  89. - raw
  90. endef
  91. define Package/iptables-mod-conntrack-extra
  92. $(call Package/iptables/Module, +kmod-ipt-conntrack-extra)
  93. TITLE:=Extra connection tracking extensions
  94. endef
  95. define Package/iptables-mod-conntrack-extra/description
  96. Extra iptables extensions for connection tracking.
  97. Matches:
  98. - connbytes
  99. - connlimit
  100. - connmark
  101. - recent
  102. - helper
  103. Targets:
  104. - CONNMARK
  105. endef
  106. define Package/iptables-mod-conntrack-label
  107. $(call Package/iptables/Module, +kmod-ipt-conntrack-label @IPTABLES_CONNLABEL)
  108. TITLE:=Connection tracking labeling extension
  109. DEFAULT:=y if IPTABLES_CONNLABEL
  110. endef
  111. define Package/iptables-mod-conntrack-label/description
  112. Match and set label(s) on connection tracking entries
  113. Matches:
  114. - connlabel
  115. endef
  116. define Package/iptables-mod-filter
  117. $(call Package/iptables/Module, +kmod-ipt-filter)
  118. TITLE:=Content inspection extensions
  119. endef
  120. define Package/iptables-mod-filter/description
  121. iptables extensions for packet content inspection.
  122. Includes support for:
  123. Matches:
  124. - string
  125. - bpf
  126. endef
  127. define Package/iptables-mod-ipopt
  128. $(call Package/iptables/Module, +kmod-ipt-ipopt)
  129. TITLE:=IP/Packet option extensions
  130. endef
  131. define Package/iptables-mod-ipopt/description
  132. iptables extensions for matching/changing IP packet options.
  133. Matches:
  134. - dscp
  135. - ecn
  136. - length
  137. - statistic
  138. - tcpmss
  139. - unclean
  140. - hl
  141. Targets:
  142. - DSCP
  143. - CLASSIFY
  144. - ECN
  145. - HL
  146. endef
  147. define Package/iptables-mod-ipsec
  148. $(call Package/iptables/Module, +kmod-ipt-ipsec)
  149. TITLE:=IPsec extensions
  150. endef
  151. define Package/iptables-mod-ipsec/description
  152. iptables extensions for matching ipsec traffic.
  153. Matches:
  154. - ah
  155. - esp
  156. - policy
  157. endef
  158. define Package/iptables-mod-nat-extra
  159. $(call Package/iptables/Module, +kmod-ipt-nat-extra)
  160. TITLE:=Extra NAT extensions
  161. endef
  162. define Package/iptables-mod-nat-extra/description
  163. iptables extensions for extra NAT targets.
  164. Targets:
  165. - MIRROR
  166. - NETMAP
  167. endef
  168. define Package/iptables-mod-ulog
  169. $(call Package/iptables/Module, +kmod-ipt-ulog)
  170. TITLE:=user-space packet logging
  171. endef
  172. define Package/iptables-mod-ulog/description
  173. iptables extensions for user-space packet logging.
  174. Targets:
  175. - ULOG
  176. endef
  177. define Package/iptables-mod-nflog
  178. $(call Package/iptables/Module, +kmod-nfnetlink-log +kmod-ipt-nflog)
  179. TITLE:=Netfilter NFLOG target
  180. endef
  181. define Package/iptables-mod-nflog/description
  182. iptables extension for user-space logging via NFNETLINK.
  183. Includes:
  184. - libxt_NFLOG
  185. endef
  186. define Package/iptables-mod-trace
  187. $(call Package/iptables/Module, +kmod-ipt-debug)
  188. TITLE:=Netfilter TRACE target
  189. endef
  190. define Package/iptables-mod-trace/description
  191. iptables extension for TRACE target
  192. Includes:
  193. - libxt_TRACE
  194. endef
  195. define Package/iptables-mod-nfqueue
  196. $(call Package/iptables/Module, +kmod-nfnetlink-queue +kmod-ipt-nfqueue)
  197. TITLE:=Netfilter NFQUEUE target
  198. endef
  199. define Package/iptables-mod-nfqueue/description
  200. iptables extension for user-space queuing via NFNETLINK.
  201. Includes:
  202. - libxt_NFQUEUE
  203. endef
  204. define Package/iptables-mod-hashlimit
  205. $(call Package/iptables/Module, +kmod-ipt-hashlimit)
  206. TITLE:=hashlimit matching
  207. endef
  208. define Package/iptables-mod-hashlimit/description
  209. iptables extensions for hashlimit matching
  210. Matches:
  211. - hashlimit
  212. endef
  213. define Package/iptables-mod-rpfilter
  214. $(call Package/iptables/Module, +kmod-ipt-rpfilter)
  215. TITLE:=rpfilter iptables extension
  216. endef
  217. define Package/iptables-mod-rpfilter/description
  218. iptables extensions for reverse path filter test on a packet
  219. Matches:
  220. - rpfilter
  221. endef
  222. define Package/iptables-mod-iprange
  223. $(call Package/iptables/Module, +kmod-ipt-iprange)
  224. TITLE:=IP range extension
  225. endef
  226. define Package/iptables-mod-iprange/description
  227. iptables extensions for matching ip ranges.
  228. Matches:
  229. - iprange
  230. endef
  231. define Package/iptables-mod-cluster
  232. $(call Package/iptables/Module, +kmod-ipt-cluster)
  233. TITLE:=Match cluster extension
  234. endef
  235. define Package/iptables-mod-cluster/description
  236. iptables extensions for matching cluster.
  237. Netfilter (IPv4/IPv6) module for matching cluster
  238. This option allows you to build work-load-sharing clusters of
  239. network servers/stateful firewalls without having a dedicated
  240. load-balancing router/server/switch. Basically, this match returns
  241. true when the packet must be handled by this cluster node. Thus,
  242. all nodes see all packets and this match decides which node handles
  243. what packets. The work-load sharing algorithm is based on source
  244. address hashing.
  245. This module is usable for ipv4 and ipv6.
  246. If you select it, it enables kmod-ipt-cluster.
  247. see `iptables -m cluster --help` for more information.
  248. endef
  249. define Package/iptables-mod-clusterip
  250. $(call Package/iptables/Module, +kmod-ipt-clusterip)
  251. TITLE:=Clusterip extension
  252. endef
  253. define Package/iptables-mod-clusterip/description
  254. iptables extensions for CLUSTERIP.
  255. The CLUSTERIP target allows you to build load-balancing clusters of
  256. network servers without having a dedicated load-balancing
  257. router/server/switch.
  258. If you select it, it enables kmod-ipt-clusterip.
  259. see `iptables -j CLUSTERIP --help` for more information.
  260. endef
  261. define Package/iptables-mod-extra
  262. $(call Package/iptables/Module, +kmod-ipt-extra)
  263. TITLE:=Other extra iptables extensions
  264. endef
  265. define Package/iptables-mod-extra/description
  266. Other extra iptables extensions.
  267. Matches:
  268. - addrtype
  269. - condition
  270. - owner
  271. - pkttype
  272. - quota
  273. endef
  274. define Package/iptables-mod-physdev
  275. $(call Package/iptables/Module, +kmod-ipt-physdev)
  276. TITLE:=physdev iptables extension
  277. endef
  278. define Package/iptables-mod-physdev/description
  279. The iptables physdev match.
  280. endef
  281. define Package/iptables-mod-led
  282. $(call Package/iptables/Module, +kmod-ipt-led)
  283. TITLE:=LED trigger iptables extension
  284. endef
  285. define Package/iptables-mod-led/description
  286. iptables extension for triggering a LED.
  287. Targets:
  288. - LED
  289. endef
  290. define Package/iptables-mod-tproxy
  291. $(call Package/iptables/Module, +kmod-ipt-tproxy)
  292. TITLE:=Transparent proxy iptables extensions
  293. endef
  294. define Package/iptables-mod-tproxy/description
  295. Transparent proxy iptables extensions.
  296. Matches:
  297. - socket
  298. Targets:
  299. - TPROXY
  300. endef
  301. define Package/iptables-mod-tee
  302. $(call Package/iptables/Module, +kmod-ipt-tee)
  303. TITLE:=TEE iptables extensions
  304. endef
  305. define Package/iptables-mod-tee/description
  306. TEE iptables extensions.
  307. Targets:
  308. - TEE
  309. endef
  310. define Package/iptables-mod-u32
  311. $(call Package/iptables/Module, +kmod-ipt-u32)
  312. TITLE:=U32 iptables extensions
  313. endef
  314. define Package/iptables-mod-u32/description
  315. U32 iptables extensions.
  316. Matches:
  317. - u32
  318. endef
  319. define Package/iptables-mod-checksum
  320. $(call Package/iptables/Module, +kmod-ipt-checksum)
  321. TITLE:=IP CHECKSUM target extension
  322. endef
  323. define Package/iptables-mod-checksum/description
  324. iptables extension for the CHECKSUM calculation target
  325. endef
  326. define Package/ip6tables
  327. $(call Package/iptables/Default)
  328. DEPENDS:=@IPV6 +kmod-ip6tables +iptables
  329. CATEGORY:=Network
  330. TITLE:=IPv6 firewall administration tool
  331. MENU:=1
  332. endef
  333. define Package/ip6tables-extra
  334. $(call Package/iptables/Default)
  335. DEPENDS:=ip6tables +kmod-ip6tables-extra
  336. TITLE:=IPv6 header matching modules
  337. endef
  338. define Package/ip6tables-mod-extra/description
  339. iptables header matching modules for IPv6
  340. endef
  341. define Package/ip6tables-mod-nat
  342. $(call Package/iptables/Default)
  343. DEPENDS:=ip6tables +kmod-ipt-nat6
  344. TITLE:=IPv6 NAT extensions
  345. endef
  346. define Package/ip6tables-mod-nat/description
  347. iptables extensions for IPv6-NAT targets.
  348. endef
  349. define Package/libiptc
  350. $(call Package/iptables/Default)
  351. SECTION:=libs
  352. CATEGORY:=Libraries
  353. DEPENDS:=+libip4tc +libip6tc +libxtables
  354. ABI_VERSION:=$(PKG_VERSION)
  355. TITLE:=IPv4/IPv6 firewall - shared libiptc library (compatibility stub)
  356. endef
  357. define Package/libip4tc
  358. $(call Package/iptables/Default)
  359. SECTION:=libs
  360. CATEGORY:=Libraries
  361. TITLE:=IPv4 firewall - shared libiptc library
  362. ABI_VERSION:=$(PKG_VERSION)
  363. DEPENDS:=+libxtables
  364. endef
  365. define Package/libip6tc
  366. $(call Package/iptables/Default)
  367. SECTION:=libs
  368. CATEGORY:=Libraries
  369. TITLE:=IPv6 firewall - shared libiptc library
  370. ABI_VERSION:=$(PKG_VERSION)
  371. DEPENDS:=+libxtables
  372. endef
  373. define Package/libxtables
  374. $(call Package/iptables/Default)
  375. SECTION:=libs
  376. CATEGORY:=Libraries
  377. TITLE:=IPv4/IPv6 firewall - shared xtables library
  378. ABI_VERSION:=$(PKG_VERSION)
  379. DEPENDS:= \
  380. +IPTABLES_CONNLABEL:libnetfilter-conntrack \
  381. +IPTABLES_NFTABLES:libnftnl
  382. endef
  383. TARGET_CPPFLAGS := \
  384. -I$(PKG_BUILD_DIR)/include \
  385. -I$(LINUX_DIR)/user_headers/include \
  386. $(TARGET_CPPFLAGS)
  387. TARGET_CFLAGS += \
  388. -I$(PKG_BUILD_DIR)/include \
  389. -I$(LINUX_DIR)/user_headers/include \
  390. -ffunction-sections -fdata-sections \
  391. -DNO_LEGACY
  392. TARGET_LDFLAGS += \
  393. -Wl,--gc-sections
  394. CONFIGURE_ARGS += \
  395. --enable-shared \
  396. --enable-static \
  397. --enable-devel \
  398. --with-kernel="$(LINUX_DIR)/user_headers" \
  399. --with-xtlibdir=/usr/lib/iptables \
  400. --with-xt-lock-name=/var/run/xtables.lock \
  401. $(if $(CONFIG_IPTABLES_CONNLABEL),,--disable-connlabel) \
  402. $(if $(CONFIG_IPTABLES_NFTABLES),,--disable-nftables) \
  403. $(if $(CONFIG_IPV6),,--disable-ipv6)
  404. MAKE_FLAGS := \
  405. $(TARGET_CONFIGURE_OPTS) \
  406. COPT_FLAGS="$(TARGET_CFLAGS)" \
  407. KERNEL_DIR="$(LINUX_DIR)/user_headers/" PREFIX=/usr \
  408. KBUILD_OUTPUT="$(LINUX_DIR)" \
  409. BUILTIN_MODULES="$(patsubst ip6t_%,%,$(patsubst ipt_%,%,$(patsubst xt_%,%,$(IPT_BUILTIN) $(IPT_CONNTRACK-m) $(IPT_NAT-m))))"
  410. ifneq ($(wildcard $(PKG_BUILD_DIR)/.config_*),$(subst .configured_,.config_,$(STAMP_CONFIGURED)))
  411. define Build/Configure/rebuild
  412. $(FIND) $(PKG_BUILD_DIR) -name \*.o -or -name \*.\?o -or -name \*.a | $(XARGS) rm -f
  413. rm -f $(PKG_BUILD_DIR)/.config_*
  414. rm -f $(PKG_BUILD_DIR)/.configured_*
  415. touch $(subst .configured_,.config_,$(STAMP_CONFIGURED))
  416. endef
  417. endif
  418. define Build/Configure
  419. $(Build/Configure/rebuild)
  420. $(Build/Configure/Default)
  421. endef
  422. define Build/InstallDev
  423. $(INSTALL_DIR) $(1)/usr/include
  424. $(INSTALL_DIR) $(1)/usr/include/iptables
  425. $(INSTALL_DIR) $(1)/usr/include/net/netfilter
  426. # XXX: iptables header fixup, some headers are not installed by iptables anymore
  427. $(CP) $(PKG_BUILD_DIR)/include/iptables/*.h $(1)/usr/include/iptables/
  428. $(CP) $(PKG_BUILD_DIR)/include/iptables.h $(1)/usr/include/
  429. $(CP) $(PKG_BUILD_DIR)/include/ip6tables.h $(1)/usr/include/
  430. $(CP) $(PKG_BUILD_DIR)/include/libipulog $(1)/usr/include/
  431. $(CP) $(PKG_BUILD_DIR)/include/libiptc $(1)/usr/include/
  432. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  433. $(INSTALL_DIR) $(1)/usr/lib
  434. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxtables.so* $(1)/usr/lib/
  435. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libip*tc.so* $(1)/usr/lib/
  436. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  437. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/xtables.pc $(1)/usr/lib/pkgconfig/
  438. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libip*tc.pc $(1)/usr/lib/pkgconfig/
  439. # XXX: needed by firewall3
  440. $(CP) $(PKG_BUILD_DIR)/extensions/libiptext*.so $(1)/usr/lib/
  441. endef
  442. define Package/iptables/install
  443. $(INSTALL_DIR) $(1)/usr/sbin
  444. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/xtables-multi $(1)/usr/sbin/
  445. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/iptables{,-restore,-save} $(1)/usr/sbin/
  446. $(INSTALL_DIR) $(1)/usr/lib/iptables
  447. endef
  448. define Package/ip6tables/install
  449. $(INSTALL_DIR) $(1)/usr/sbin
  450. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ip6tables{,-restore,-save} $(1)/usr/sbin/
  451. endef
  452. define Package/libiptc/install
  453. $(INSTALL_DIR) $(1)/usr/lib
  454. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiptc.so* $(1)/usr/lib/
  455. endef
  456. define Package/libip4tc/install
  457. $(INSTALL_DIR) $(1)/usr/lib
  458. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libip4tc.so* $(1)/usr/lib/
  459. $(CP) $(PKG_BUILD_DIR)/extensions/libiptext4.so $(1)/usr/lib/
  460. endef
  461. define Package/libip6tc/install
  462. $(INSTALL_DIR) $(1)/usr/lib
  463. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libip6tc.so* $(1)/usr/lib/
  464. $(CP) $(PKG_BUILD_DIR)/extensions/libiptext6.so $(1)/usr/lib/
  465. endef
  466. define Package/libxtables/install
  467. $(INSTALL_DIR) $(1)/usr/lib
  468. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxtables.so* $(1)/usr/lib/
  469. $(CP) $(PKG_BUILD_DIR)/extensions/libiptext.so $(1)/usr/lib/
  470. endef
  471. define BuildPlugin
  472. define Package/$(1)/install
  473. $(INSTALL_DIR) $$(1)/usr/lib/iptables
  474. for m in $(patsubst xt_%,ipt_%,$(2)) $(patsubst ipt_%,xt_%,$(2)) $(patsubst xt_%,ip6t_%,$(2)) $(patsubst ip6t_%,xt_%,$(2)); do \
  475. if [ -f $(PKG_INSTALL_DIR)/usr/lib/iptables/lib$$$$$$$${m}.so ]; then \
  476. $(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables/lib$$$$$$$${m}.so $$(1)/usr/lib/iptables/ ; \
  477. fi; \
  478. done
  479. $(3)
  480. endef
  481. $$(eval $$(call BuildPackage,$(1)))
  482. endef
  483. $(eval $(call BuildPackage,iptables))
  484. $(eval $(call BuildPlugin,iptables-mod-conntrack-extra,$(IPT_CONNTRACK_EXTRA-m)))
  485. $(eval $(call BuildPlugin,iptables-mod-conntrack-label,$(IPT_CONNTRACK_LABEL-m)))
  486. $(eval $(call BuildPlugin,iptables-mod-extra,$(IPT_EXTRA-m)))
  487. $(eval $(call BuildPlugin,iptables-mod-physdev,$(IPT_PHYSDEV-m)))
  488. $(eval $(call BuildPlugin,iptables-mod-filter,$(IPT_FILTER-m)))
  489. $(eval $(call BuildPlugin,iptables-mod-ipopt,$(IPT_IPOPT-m)))
  490. $(eval $(call BuildPlugin,iptables-mod-ipsec,$(IPT_IPSEC-m)))
  491. $(eval $(call BuildPlugin,iptables-mod-nat-extra,$(IPT_NAT_EXTRA-m)))
  492. $(eval $(call BuildPlugin,iptables-mod-iprange,$(IPT_IPRANGE-m)))
  493. $(eval $(call BuildPlugin,iptables-mod-cluster,$(IPT_CLUSTER-m)))
  494. $(eval $(call BuildPlugin,iptables-mod-clusterip,$(IPT_CLUSTERIP-m)))
  495. $(eval $(call BuildPlugin,iptables-mod-ulog,$(IPT_ULOG-m)))
  496. $(eval $(call BuildPlugin,iptables-mod-hashlimit,$(IPT_HASHLIMIT-m)))
  497. $(eval $(call BuildPlugin,iptables-mod-rpfilter,$(IPT_RPFILTER-m)))
  498. $(eval $(call BuildPlugin,iptables-mod-led,$(IPT_LED-m)))
  499. $(eval $(call BuildPlugin,iptables-mod-tproxy,$(IPT_TPROXY-m)))
  500. $(eval $(call BuildPlugin,iptables-mod-tee,$(IPT_TEE-m)))
  501. $(eval $(call BuildPlugin,iptables-mod-u32,$(IPT_U32-m)))
  502. $(eval $(call BuildPlugin,iptables-mod-nflog,$(IPT_NFLOG-m)))
  503. $(eval $(call BuildPlugin,iptables-mod-trace,$(IPT_DEBUG-m)))
  504. $(eval $(call BuildPlugin,iptables-mod-nfqueue,$(IPT_NFQUEUE-m)))
  505. $(eval $(call BuildPlugin,iptables-mod-checksum,$(IPT_CHECKSUM-m)))
  506. $(eval $(call BuildPackage,ip6tables))
  507. $(eval $(call BuildPlugin,ip6tables-extra,$(IPT_IPV6_EXTRA-m)))
  508. $(eval $(call BuildPlugin,ip6tables-mod-nat,$(IPT_NAT6-m)))
  509. $(eval $(call BuildPackage,libiptc))
  510. $(eval $(call BuildPackage,libip4tc))
  511. $(eval $(call BuildPackage,libip6tc))
  512. $(eval $(call BuildPackage,libxtables))