Kconfig 12 KB

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