xref: /openbmc/linux/net/ipv4/netfilter/Makefile (revision 9db5d918)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the netfilter modules on top of IPv4.
4#
5
6# defrag
7obj-$(CONFIG_NF_DEFRAG_IPV4) += nf_defrag_ipv4.o
8
9obj-$(CONFIG_NF_SOCKET_IPV4) += nf_socket_ipv4.o
10obj-$(CONFIG_NF_TPROXY_IPV4) += nf_tproxy_ipv4.o
11
12# reject
13obj-$(CONFIG_NF_REJECT_IPV4) += nf_reject_ipv4.o
14
15# NAT helpers (nf_conntrack)
16obj-$(CONFIG_NF_NAT_H323) += nf_nat_h323.o
17obj-$(CONFIG_NF_NAT_PPTP) += nf_nat_pptp.o
18
19nf_nat_snmp_basic-y := nf_nat_snmp_basic.asn1.o nf_nat_snmp_basic_main.o
20$(obj)/nf_nat_snmp_basic_main.o: $(obj)/nf_nat_snmp_basic.asn1.h
21obj-$(CONFIG_NF_NAT_SNMP_BASIC) += nf_nat_snmp_basic.o
22
23obj-$(CONFIG_NFT_REJECT_IPV4) += nft_reject_ipv4.o
24obj-$(CONFIG_NFT_FIB_IPV4) += nft_fib_ipv4.o
25obj-$(CONFIG_NFT_DUP_IPV4) += nft_dup_ipv4.o
26
27# generic IP tables
28obj-$(CONFIG_IP_NF_IPTABLES) += ip_tables.o
29
30# the three instances of ip_tables
31obj-$(CONFIG_IP_NF_FILTER) += iptable_filter.o
32obj-$(CONFIG_IP_NF_MANGLE) += iptable_mangle.o
33obj-$(CONFIG_IP_NF_NAT) += iptable_nat.o
34obj-$(CONFIG_IP_NF_RAW) += iptable_raw.o
35obj-$(CONFIG_IP_NF_SECURITY) += iptable_security.o
36
37# matches
38obj-$(CONFIG_IP_NF_MATCH_AH) += ipt_ah.o
39obj-$(CONFIG_IP_NF_MATCH_RPFILTER) += ipt_rpfilter.o
40
41# targets
42obj-$(CONFIG_IP_NF_TARGET_ECN) += ipt_ECN.o
43obj-$(CONFIG_IP_NF_TARGET_REJECT) += ipt_REJECT.o
44obj-$(CONFIG_IP_NF_TARGET_SYNPROXY) += ipt_SYNPROXY.o
45
46# generic ARP tables
47obj-$(CONFIG_IP_NF_ARPTABLES) += arp_tables.o
48obj-$(CONFIG_IP_NF_ARP_MANGLE) += arpt_mangle.o
49
50# just filtering instance of ARP tables for now
51obj-$(CONFIG_IP_NF_ARPFILTER) += arptable_filter.o
52
53obj-$(CONFIG_NF_DUP_IPV4) += nf_dup_ipv4.o
54