Kconfig 12 KB

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