Makefile 8.5 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
2
netfilter-objs := core.o nf_log.o nf_queue.o nf_sockopt.o utils.o
3

4
nf_conntrack-y	:= nf_conntrack_core.o nf_conntrack_standalone.o nf_conntrack_expect.o nf_conntrack_helper.o nf_conntrack_proto.o nf_conntrack_l3proto_generic.o nf_conntrack_proto_generic.o nf_conntrack_proto_tcp.o nf_conntrack_proto_udp.o nf_conntrack_extend.o nf_conntrack_acct.o nf_conntrack_seqadj.o
5
nf_conntrack-$(CONFIG_NF_CONNTRACK_TIMEOUT) += nf_conntrack_timeout.o
6
nf_conntrack-$(CONFIG_NF_CONNTRACK_TIMESTAMP) += nf_conntrack_timestamp.o
7
nf_conntrack-$(CONFIG_NF_CONNTRACK_EVENTS) += nf_conntrack_ecache.o
8
nf_conntrack-$(CONFIG_NF_CONNTRACK_LABELS) += nf_conntrack_labels.o
9
nf_conntrack-$(CONFIG_NF_CT_PROTO_DCCP) += nf_conntrack_proto_dccp.o
10
nf_conntrack-$(CONFIG_NF_CT_PROTO_SCTP) += nf_conntrack_proto_sctp.o
11 12 13

obj-$(CONFIG_NETFILTER) = netfilter.o

H
Harald Welte 已提交
14
obj-$(CONFIG_NETFILTER_NETLINK) += nfnetlink.o
15
obj-$(CONFIG_NETFILTER_NETLINK_ACCT) += nfnetlink_acct.o
16
obj-$(CONFIG_NETFILTER_NETLINK_QUEUE) += nfnetlink_queue.o
17
obj-$(CONFIG_NETFILTER_NETLINK_LOG) += nfnetlink_log.o
18

19
# connection tracking
20 21
obj-$(CONFIG_NF_CONNTRACK) += nf_conntrack.o

22
obj-$(CONFIG_NF_CT_PROTO_GRE) += nf_conntrack_proto_gre.o
23 24 25

# netlink interface for nf_conntrack
obj-$(CONFIG_NF_CT_NETLINK) += nf_conntrack_netlink.o
26
obj-$(CONFIG_NF_CT_NETLINK_TIMEOUT) += nfnetlink_cttimeout.o
27
obj-$(CONFIG_NF_CT_NETLINK_HELPER) += nfnetlink_cthelper.o
28 29

# connection tracking helpers
30 31
nf_conntrack_h323-objs := nf_conntrack_h323_main.o nf_conntrack_h323_asn1.o

32
obj-$(CONFIG_NF_CONNTRACK_AMANDA) += nf_conntrack_amanda.o
33
obj-$(CONFIG_NF_CONNTRACK_FTP) += nf_conntrack_ftp.o
34
obj-$(CONFIG_NF_CONNTRACK_H323) += nf_conntrack_h323.o
35
obj-$(CONFIG_NF_CONNTRACK_IRC) += nf_conntrack_irc.o
36
obj-$(CONFIG_NF_CONNTRACK_BROADCAST) += nf_conntrack_broadcast.o
37
obj-$(CONFIG_NF_CONNTRACK_NETBIOS_NS) += nf_conntrack_netbios_ns.o
38
obj-$(CONFIG_NF_CONNTRACK_SNMP) += nf_conntrack_snmp.o
39
obj-$(CONFIG_NF_CONNTRACK_PPTP) += nf_conntrack_pptp.o
40
obj-$(CONFIG_NF_CONNTRACK_SANE) += nf_conntrack_sane.o
41
obj-$(CONFIG_NF_CONNTRACK_SIP) += nf_conntrack_sip.o
42
obj-$(CONFIG_NF_CONNTRACK_TFTP) += nf_conntrack_tftp.o
43

44 45 46
nf_nat-y	:= nf_nat_core.o nf_nat_proto_unknown.o nf_nat_proto_common.o \
		   nf_nat_proto_udp.o nf_nat_proto_tcp.o nf_nat_helper.o

47
# NAT protocols (nf_nat)
48
nf_nat-$(CONFIG_NF_NAT_PROTO_DCCP) += nf_nat_proto_dccp.o
49
nf_nat-$(CONFIG_NF_NAT_PROTO_SCTP) += nf_nat_proto_sctp.o
50

51 52 53
# generic transport layer logging
obj-$(CONFIG_NF_LOG_COMMON) += nf_log_common.o

54 55 56
# packet logging for netdev family
obj-$(CONFIG_NF_LOG_NETDEV) += nf_log_netdev.o

57
obj-$(CONFIG_NF_NAT) += nf_nat.o
58
obj-$(CONFIG_NF_NAT_REDIRECT) += nf_nat_redirect.o
59

60
# NAT helpers
61
obj-$(CONFIG_NF_NAT_AMANDA) += nf_nat_amanda.o
62
obj-$(CONFIG_NF_NAT_FTP) += nf_nat_ftp.o
63
obj-$(CONFIG_NF_NAT_IRC) += nf_nat_irc.o
64
obj-$(CONFIG_NF_NAT_SIP) += nf_nat_sip.o
65
obj-$(CONFIG_NF_NAT_TFTP) += nf_nat_tftp.o
66

67 68 69
# SYNPROXY
obj-$(CONFIG_NETFILTER_SYNPROXY) += nf_synproxy_core.o

70 71
obj-$(CONFIG_NETFILTER_CONNCOUNT) += nf_conncount.o

72 73 74
# generic packet duplication from netdev family
obj-$(CONFIG_NF_DUP_NETDEV)	+= nf_dup_netdev.o

P
Patrick McHardy 已提交
75
# nf_tables
76 77 78 79
nf_tables-objs := nf_tables_core.o nf_tables_api.o nft_chain_filter.o \
		  nf_tables_trace.o nft_immediate.o nft_cmp.o nft_range.o \
		  nft_bitwise.o nft_byteorder.o nft_payload.o nft_lookup.o \
		  nft_dynset.o
P
Patrick McHardy 已提交
80 81

obj-$(CONFIG_NF_TABLES)		+= nf_tables.o
82
obj-$(CONFIG_NFT_COMPAT)	+= nft_compat.o
P
Patrick McHardy 已提交
83 84
obj-$(CONFIG_NFT_EXTHDR)	+= nft_exthdr.o
obj-$(CONFIG_NFT_META)		+= nft_meta.o
85
obj-$(CONFIG_NFT_RT)		+= nft_rt.o
86
obj-$(CONFIG_NFT_NUMGEN)	+= nft_numgen.o
P
Patrick McHardy 已提交
87
obj-$(CONFIG_NFT_CT)		+= nft_ct.o
88
obj-$(CONFIG_NFT_FLOW_OFFLOAD)	+= nft_flow_offload.o
P
Patrick McHardy 已提交
89
obj-$(CONFIG_NFT_LIMIT)		+= nft_limit.o
90
obj-$(CONFIG_NFT_NAT)		+= nft_nat.o
91
obj-$(CONFIG_NFT_OBJREF)	+= nft_objref.o
E
Eric Leblond 已提交
92
obj-$(CONFIG_NFT_QUEUE)		+= nft_queue.o
93
obj-$(CONFIG_NFT_QUOTA)		+= nft_quota.o
94
obj-$(CONFIG_NFT_REJECT) 	+= nft_reject.o
95
obj-$(CONFIG_NFT_REJECT_INET)	+= nft_reject_inet.o
96 97
obj-$(CONFIG_NFT_SET_RBTREE)	+= nft_set_rbtree.o
obj-$(CONFIG_NFT_SET_HASH)	+= nft_set_hash.o
98
obj-$(CONFIG_NFT_SET_BITMAP)	+= nft_set_bitmap.o
P
Patrick McHardy 已提交
99 100
obj-$(CONFIG_NFT_COUNTER)	+= nft_counter.o
obj-$(CONFIG_NFT_LOG)		+= nft_log.o
101
obj-$(CONFIG_NFT_MASQ)		+= nft_masq.o
102
obj-$(CONFIG_NFT_REDIR)		+= nft_redir.o
103
obj-$(CONFIG_NFT_HASH)		+= nft_hash.o
104 105
obj-$(CONFIG_NFT_FIB)		+= nft_fib.o
obj-$(CONFIG_NFT_FIB_INET)	+= nft_fib_inet.o
106
obj-$(CONFIG_NFT_FIB_NETDEV)	+= nft_fib_netdev.o
P
Patrick McHardy 已提交
107

108 109
# nf_tables netdev
obj-$(CONFIG_NFT_DUP_NETDEV)	+= nft_dup_netdev.o
110
obj-$(CONFIG_NFT_FWD_NETDEV)	+= nft_fwd_netdev.o
111

112 113
# flow table infrastructure
obj-$(CONFIG_NF_FLOW_TABLE)	+= nf_flow_table.o
114 115
nf_flow_table-objs := nf_flow_table_core.o

116
obj-$(CONFIG_NF_FLOW_TABLE_INET) += nf_flow_table_inet.o
117

118 119 120
# generic X tables 
obj-$(CONFIG_NETFILTER_XTABLES) += x_tables.o xt_tcpudp.o

121 122
# combos
obj-$(CONFIG_NETFILTER_XT_MARK) += xt_mark.o
123
obj-$(CONFIG_NETFILTER_XT_CONNMARK) += xt_connmark.o
124
obj-$(CONFIG_NETFILTER_XT_SET) += xt_set.o
125
obj-$(CONFIG_NETFILTER_XT_NAT) += xt_nat.o
126

127
# targets
128
obj-$(CONFIG_NETFILTER_XT_TARGET_AUDIT) += xt_AUDIT.o
129
obj-$(CONFIG_NETFILTER_XT_TARGET_CHECKSUM) += xt_CHECKSUM.o
130
obj-$(CONFIG_NETFILTER_XT_TARGET_CLASSIFY) += xt_CLASSIFY.o
J
Jan Engelhardt 已提交
131
obj-$(CONFIG_NETFILTER_XT_TARGET_CONNSECMARK) += xt_CONNSECMARK.o
132
obj-$(CONFIG_NETFILTER_XT_TARGET_CT) += xt_CT.o
133
obj-$(CONFIG_NETFILTER_XT_TARGET_DSCP) += xt_DSCP.o
134
obj-$(CONFIG_NETFILTER_XT_TARGET_HL) += xt_HL.o
135
obj-$(CONFIG_NETFILTER_XT_TARGET_HMARK) += xt_HMARK.o
136
obj-$(CONFIG_NETFILTER_XT_TARGET_LED) += xt_LED.o
137
obj-$(CONFIG_NETFILTER_XT_TARGET_LOG) += xt_LOG.o
138
obj-$(CONFIG_NETFILTER_XT_TARGET_NETMAP) += xt_NETMAP.o
139
obj-$(CONFIG_NETFILTER_XT_TARGET_NFLOG) += xt_NFLOG.o
J
Jan Engelhardt 已提交
140
obj-$(CONFIG_NETFILTER_XT_TARGET_NFQUEUE) += xt_NFQUEUE.o
141
obj-$(CONFIG_NETFILTER_XT_TARGET_RATEEST) += xt_RATEEST.o
142
obj-$(CONFIG_NETFILTER_XT_TARGET_REDIRECT) += xt_REDIRECT.o
143
obj-$(CONFIG_NETFILTER_XT_TARGET_SECMARK) += xt_SECMARK.o
144
obj-$(CONFIG_NETFILTER_XT_TARGET_TPROXY) += xt_TPROXY.o
145
obj-$(CONFIG_NETFILTER_XT_TARGET_TCPMSS) += xt_TCPMSS.o
146
obj-$(CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP) += xt_TCPOPTSTRIP.o
147
obj-$(CONFIG_NETFILTER_XT_TARGET_TEE) += xt_TEE.o
J
Jan Engelhardt 已提交
148
obj-$(CONFIG_NETFILTER_XT_TARGET_TRACE) += xt_TRACE.o
149
obj-$(CONFIG_NETFILTER_XT_TARGET_IDLETIMER) += xt_IDLETIMER.o
150 151

# matches
152
obj-$(CONFIG_NETFILTER_XT_MATCH_ADDRTYPE) += xt_addrtype.o
153
obj-$(CONFIG_NETFILTER_XT_MATCH_BPF) += xt_bpf.o
154
obj-$(CONFIG_NETFILTER_XT_MATCH_CLUSTER) += xt_cluster.o
155 156
obj-$(CONFIG_NETFILTER_XT_MATCH_COMMENT) += xt_comment.o
obj-$(CONFIG_NETFILTER_XT_MATCH_CONNBYTES) += xt_connbytes.o
157
obj-$(CONFIG_NETFILTER_XT_MATCH_CONNLABEL) += xt_connlabel.o
158
obj-$(CONFIG_NETFILTER_XT_MATCH_CONNLIMIT) += xt_connlimit.o
159
obj-$(CONFIG_NETFILTER_XT_MATCH_CONNTRACK) += xt_conntrack.o
E
Eric Dumazet 已提交
160
obj-$(CONFIG_NETFILTER_XT_MATCH_CPU) += xt_cpu.o
161
obj-$(CONFIG_NETFILTER_XT_MATCH_DCCP) += xt_dccp.o
162
obj-$(CONFIG_NETFILTER_XT_MATCH_DEVGROUP) += xt_devgroup.o
163
obj-$(CONFIG_NETFILTER_XT_MATCH_DSCP) += xt_dscp.o
164
obj-$(CONFIG_NETFILTER_XT_MATCH_ECN) += xt_ecn.o
165
obj-$(CONFIG_NETFILTER_XT_MATCH_ESP) += xt_esp.o
J
Jan Engelhardt 已提交
166
obj-$(CONFIG_NETFILTER_XT_MATCH_HASHLIMIT) += xt_hashlimit.o
167
obj-$(CONFIG_NETFILTER_XT_MATCH_HELPER) += xt_helper.o
168
obj-$(CONFIG_NETFILTER_XT_MATCH_HL) += xt_hl.o
169
obj-$(CONFIG_NETFILTER_XT_MATCH_IPCOMP) += xt_ipcomp.o
170
obj-$(CONFIG_NETFILTER_XT_MATCH_IPRANGE) += xt_iprange.o
171
obj-$(CONFIG_NETFILTER_XT_MATCH_IPVS) += xt_ipvs.o
172
obj-$(CONFIG_NETFILTER_XT_MATCH_L2TP) += xt_l2tp.o
173 174 175
obj-$(CONFIG_NETFILTER_XT_MATCH_LENGTH) += xt_length.o
obj-$(CONFIG_NETFILTER_XT_MATCH_LIMIT) += xt_limit.o
obj-$(CONFIG_NETFILTER_XT_MATCH_MAC) += xt_mac.o
176
obj-$(CONFIG_NETFILTER_XT_MATCH_MULTIPORT) += xt_multiport.o
177
obj-$(CONFIG_NETFILTER_XT_MATCH_NFACCT) += xt_nfacct.o
178
obj-$(CONFIG_NETFILTER_XT_MATCH_OSF) += xt_osf.o
179
obj-$(CONFIG_NETFILTER_XT_MATCH_OWNER) += xt_owner.o
180
obj-$(CONFIG_NETFILTER_XT_MATCH_CGROUP) += xt_cgroup.o
J
Jan Engelhardt 已提交
181
obj-$(CONFIG_NETFILTER_XT_MATCH_PHYSDEV) += xt_physdev.o
182
obj-$(CONFIG_NETFILTER_XT_MATCH_PKTTYPE) += xt_pkttype.o
J
Jan Engelhardt 已提交
183
obj-$(CONFIG_NETFILTER_XT_MATCH_POLICY) += xt_policy.o
184
obj-$(CONFIG_NETFILTER_XT_MATCH_QUOTA) += xt_quota.o
185
obj-$(CONFIG_NETFILTER_XT_MATCH_RATEEST) += xt_rateest.o
186
obj-$(CONFIG_NETFILTER_XT_MATCH_REALM) += xt_realm.o
187
obj-$(CONFIG_NETFILTER_XT_MATCH_RECENT) += xt_recent.o
188
obj-$(CONFIG_NETFILTER_XT_MATCH_SCTP) += xt_sctp.o
189
obj-$(CONFIG_NETFILTER_XT_MATCH_SOCKET) += xt_socket.o
190
obj-$(CONFIG_NETFILTER_XT_MATCH_STATE) += xt_state.o
191
obj-$(CONFIG_NETFILTER_XT_MATCH_STATISTIC) += xt_statistic.o
192 193
obj-$(CONFIG_NETFILTER_XT_MATCH_STRING) += xt_string.o
obj-$(CONFIG_NETFILTER_XT_MATCH_TCPMSS) += xt_tcpmss.o
J
Jan Engelhardt 已提交
194
obj-$(CONFIG_NETFILTER_XT_MATCH_TIME) += xt_time.o
J
Jan Engelhardt 已提交
195
obj-$(CONFIG_NETFILTER_XT_MATCH_U32) += xt_u32.o
196

197 198 199
# ipset
obj-$(CONFIG_IP_SET) += ipset/

200 201
# IPVS
obj-$(CONFIG_IP_VS) += ipvs/