Kconfig 12 KB

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