blob: b3f685b7780d72df48301e7280feed4b3200756e [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#
2# Network configuration
3#
4
5menuconfig NET
6 bool "Networking support"
7 select NLATTR
8 ---help---
9 Unless you really know what you are doing, you should say Y here.
10 The reason is that some programs need kernel networking support even
11 when running on a stand-alone machine that isn't connected to any
12 other computer.
13
14 If you are upgrading from an older kernel, you
15 should consider updating your networking tools too because changes
16 in the kernel and the tools often go hand in hand. The tools are
17 contained in the package net-tools, the location and version number
18 of which are given in <file:Documentation/Changes>.
19
20 For a general introduction to Linux networking, it is highly
21 recommended to read the NET-HOWTO, available from
22 <http://www.tldp.org/docs.html#howto>.
23
24if NET
25
26config WANT_COMPAT_NETLINK_MESSAGES
27 bool
28 help
29 This option can be selected by other options that need compat
30 netlink messages.
31
32config COMPAT_NETLINK_MESSAGES
33 def_bool y
34 depends on COMPAT
35 depends on WEXT_CORE || WANT_COMPAT_NETLINK_MESSAGES
36 help
37 This option makes it possible to send different netlink messages
38 to tasks depending on whether the task is a compat task or not. To
39 achieve this, you need to set skb_shinfo(skb)->frag_list to the
40 compat skb before sending the skb, the netlink code will sort out
41 which message to actually pass to the task.
42
43 Newly written code should NEVER need this option but do
44 compat-independent messages instead!
45
46menu "Networking options"
47
48source "net/packet/Kconfig"
49source "net/unix/Kconfig"
50source "net/xfrm/Kconfig"
51source "net/iucv/Kconfig"
52
53if INET
54#config REFCODE
55# bool "refcode"
56# default n
57# help
58# ---
59# This option represents refcode, not used now, will be used in future.
60
61config NETCTL
62 bool "netctl"
63 default n
64 help
65 ---
66 SI kernel debug code.
67endif
68
69config INET
70 bool "TCP/IP networking"
71 ---help---
72 These are the protocols used on the Internet and on most local
73 Ethernets. It is highly recommended to say Y here (this will enlarge
74 your kernel by about 400 KB), since some programs (e.g. the X window
75 system) use TCP/IP even if your machine is not connected to any
76 other computer. You will get the so-called loopback device which
77 allows you to ping yourself (great fun, that!).
78
79 For an excellent introduction to Linux networking, please read the
80 Linux Networking HOWTO, available from
81 <http://www.tldp.org/docs.html#howto>.
82
83 If you say Y here and also to "/proc file system support" and
84 "Sysctl support" below, you can change various aspects of the
85 behavior of the TCP/IP code by writing to the (virtual) files in
86 /proc/sys/net/ipv4/*; the options are explained in the file
87 <file:Documentation/networking/ip-sysctl.txt>.
88
89 Short answer: say Y.
90
91if INET
92source "net/ipv4/Kconfig"
93source "net/ipv6/Kconfig"
94source "net/netlabel/Kconfig"
95
96endif # if INET
97
98config ANDROID_PARANOID_NETWORK
99 bool "Only allow certain groups to create sockets"
100 default y
101 help
102 none
103
104config NET_ACTIVITY_STATS
105 bool "Network activity statistics tracking"
106 default y
107 help
108 Network activity statistics are useful for tracking wireless
109 modem activity on 2G, 3G, 4G wireless networks. Counts number of
110 transmissions and groups them in specified time buckets.
111
112config NETWORK_SECMARK
113 bool "Security Marking"
114 help
115 This enables security marking of network packets, similar
116 to nfmark, but designated for security purposes.
117 If you are unsure how to answer this question, answer N.
118
119config NETWORK_PHY_TIMESTAMPING
120 bool "Timestamping in PHY devices"
121 depends on EXPERIMENTAL
122 help
123 This allows timestamping of network packets by PHYs with
124 hardware timestamping capabilities. This option adds some
125 overhead in the transmit and receive paths.
126
127 If you are unsure how to answer this question, answer N.
128
129menuconfig NETFILTER
130 bool "Network packet filtering framework (Netfilter)"
131 ---help---
132 Netfilter is a framework for filtering and mangling network packets
133 that pass through your Linux box.
134
135 The most common use of packet filtering is to run your Linux box as
136 a firewall protecting a local network from the Internet. The type of
137 firewall provided by this kernel support is called a "packet
138 filter", which means that it can reject individual network packets
139 based on type, source, destination etc. The other kind of firewall,
140 a "proxy-based" one, is more secure but more intrusive and more
141 bothersome to set up; it inspects the network traffic much more
142 closely, modifies it and has knowledge about the higher level
143 protocols, which a packet filter lacks. Moreover, proxy-based
144 firewalls often require changes to the programs running on the local
145 clients. Proxy-based firewalls don't need support by the kernel, but
146 they are often combined with a packet filter, which only works if
147 you say Y here.
148
149 You should also say Y here if you intend to use your Linux box as
150 the gateway to the Internet for a local network of machines without
151 globally valid IP addresses. This is called "masquerading": if one
152 of the computers on your local network wants to send something to
153 the outside, your box can "masquerade" as that computer, i.e. it
154 forwards the traffic to the intended outside destination, but
155 modifies the packets to make it look like they came from the
156 firewall box itself. It works both ways: if the outside host
157 replies, the Linux box will silently forward the traffic to the
158 correct local computer. This way, the computers on your local net
159 are completely invisible to the outside world, even though they can
160 reach the outside and can receive replies. It is even possible to
161 run globally visible servers from within a masqueraded local network
162 using a mechanism called portforwarding. Masquerading is also often
163 called NAT (Network Address Translation).
164
165 Another use of Netfilter is in transparent proxying: if a machine on
166 the local network tries to connect to an outside host, your Linux
167 box can transparently forward the traffic to a local server,
168 typically a caching proxy server.
169
170 Yet another use of Netfilter is building a bridging firewall. Using
171 a bridge with Network packet filtering enabled makes iptables "see"
172 the bridged traffic. For filtering on the lower network and Ethernet
173 protocols over the bridge, use ebtables (under bridge netfilter
174 configuration).
175
176 Various modules exist for netfilter which replace the previous
177 masquerading (ipmasqadm), packet filtering (ipchains), transparent
178 proxying, and portforwarding mechanisms. Please see
179 <file:Documentation/Changes> under "iptables" for the location of
180 these packages.
181
182if NETFILTER
183
184config NETFILTER_DEBUG
185 bool "Network packet filtering debugging"
186 depends on NETFILTER
187 help
188 You can say Y here if you want to get additional messages useful in
189 debugging the netfilter code.
190
191config NETFILTER_ADVANCED
192 bool "Advanced netfilter configuration"
193 depends on NETFILTER
194 default y
195 help
196 If you say Y here you can select between all the netfilter modules.
197 If you say N the more unusual ones will not be shown and the
198 basic ones needed by most people will default to 'M'.
199
200 If unsure, say Y.
201
202config BRIDGE_NETFILTER
203 bool "Bridged IP/ARP packets filtering"
204 depends on BRIDGE && NETFILTER && INET
205 depends on NETFILTER_ADVANCED
206 default y
207 ---help---
208 Enabling this option will let arptables resp. iptables see bridged
209 ARP resp. IP traffic. If you want a bridging firewall, you probably
210 want this option enabled.
211 Enabling or disabling this option doesn't enable or disable
212 ebtables.
213
214 If unsure, say N.
215
216source "net/netfilter/Kconfig"
217source "net/ipv4/netfilter/Kconfig"
218source "net/ipv6/netfilter/Kconfig"
219source "net/decnet/netfilter/Kconfig"
220source "net/bridge/netfilter/Kconfig"
221
222endif
223
224source "net/dccp/Kconfig"
225source "net/sctp/Kconfig"
226source "net/rds/Kconfig"
227source "net/tipc/Kconfig"
228source "net/atm/Kconfig"
229source "net/l2tp/Kconfig"
230source "net/802/Kconfig"
231source "net/bridge/Kconfig"
232source "net/dsa/Kconfig"
233source "net/8021q/Kconfig"
234source "net/decnet/Kconfig"
235source "net/llc/Kconfig"
236source "net/ipx/Kconfig"
237source "drivers/net/appletalk/Kconfig"
238source "net/x25/Kconfig"
239source "net/lapb/Kconfig"
240source "net/econet/Kconfig"
241source "net/wanrouter/Kconfig"
242source "net/phonet/Kconfig"
243source "net/ieee802154/Kconfig"
244source "net/sched/Kconfig"
245source "net/dcb/Kconfig"
246source "net/dns_resolver/Kconfig"
247source "net/batman-adv/Kconfig"
248source "net/openvswitch/Kconfig"
249
250config RPS
251 boolean "RPS"
252 depends on SMP && SYSFS && USE_GENERIC_SMP_HELPERS
253 default y
254
255config RFS_ACCEL
256 boolean
257 depends on RPS && GENERIC_HARDIRQS
258 select CPU_RMAP
259 default y
260
261config XPS
262 boolean
263 depends on SMP && SYSFS && USE_GENERIC_SMP_HELPERS
264 default y
265
266config NETPRIO_CGROUP
267 tristate "Network priority cgroup"
268 depends on CGROUPS
269 ---help---
270 Cgroup subsystem for use in assigning processes to network priorities on
271 a per-interface basis
272
273config BQL
274 boolean
275 depends on SYSFS
276 select DQL
277 default y
278
279config HAVE_BPF_JIT
280 bool
281
282config BPF_JIT
283 bool "enable BPF Just In Time compiler"
284 depends on HAVE_BPF_JIT
285 depends on MODULES
286 ---help---
287 Berkeley Packet Filter filtering capabilities are normally handled
288 by an interpreter. This option allows kernel to generate a native
289 code when filter is loaded in memory. This should speedup
290 packet sniffing (libpcap/tcpdump). Note : Admin should enable
291 this feature changing /proc/sys/net/core/bpf_jit_enable
292
293menu "Network testing"
294
295config NET_PKTGEN
296 tristate "Packet Generator (USE WITH CAUTION)"
297 depends on PROC_FS
298 ---help---
299 This module will inject preconfigured packets, at a configurable
300 rate, out of a given interface. It is used for network interface
301 stress testing and performance analysis. If you don't understand
302 what was just said, you don't need it: say N.
303
304 Documentation on how to use the packet generator can be found
305 at <file:Documentation/networking/pktgen.txt>.
306
307 To compile this code as a module, choose M here: the
308 module will be called pktgen.
309
310config NET_TCPPROBE
311 tristate "TCP connection probing"
312 depends on INET && EXPERIMENTAL && PROC_FS && KPROBES
313 ---help---
314 This module allows for capturing the changes to TCP connection
315 state in response to incoming packets. It is used for debugging
316 TCP congestion avoidance modules. If you don't understand
317 what was just said, you don't need it: say N.
318
319 Documentation on how to use TCP connection probing can be found
320 at:
321
322 http://www.linuxfoundation.org/collaborate/workgroups/networking/tcpprobe
323
324 To compile this code as a module, choose M here: the
325 module will be called tcp_probe.
326
327config NET_DROP_MONITOR
328 boolean "Network packet drop alerting service"
329 depends on INET && EXPERIMENTAL && TRACEPOINTS
330 ---help---
331 This feature provides an alerting service to userspace in the
332 event that packets are discarded in the network stack. Alerts
333 are broadcast via netlink socket to any listening user space
334 process. If you don't need network drop alerts, or if you are ok
335 just checking the various proc files and other utilities for
336 drop statistics, say N here.
337
338config SPEED_OPT
339 bool "skb allocator use dependent pool"
340 default y
341
342config SPEED_OPT_STATIC_POOL
343 boolean
344 depends on SPEED_OPT
345 default n
346
347config SPEED_OPT_DYNAMIC_POOL
348 boolean
349 depends on SPEED_OPT && !SPEED_OPT_STATIC_POOL
350 default y
351
352endmenu
353
354endmenu
355
356source "net/ax25/Kconfig"
357source "net/can/Kconfig"
358source "net/irda/Kconfig"
359source "net/bluetooth/Kconfig"
360source "net/rxrpc/Kconfig"
361
362config FIB_RULES
363 bool
364
365menuconfig WIRELESS
366 bool "Wireless"
367 depends on !S390
368 default y
369
370if WIRELESS
371
372source "net/wireless/Kconfig"
373source "net/mac80211/Kconfig"
374
375endif # WIRELESS
376
377source "net/wimax/Kconfig"
378
379source "net/rfkill/Kconfig"
380source "net/9p/Kconfig"
381source "net/caif/Kconfig"
382source "net/ceph/Kconfig"
383source "net/nfc/Kconfig"
384
385
386endif # if NET