Kconfig 12 KB

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