Kconfig 12 KB

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