Kconfig 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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 WIRELESS_EXT || 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. ---help---
  46. These are the protocols used on the Internet and on most local
  47. Ethernets. It is highly recommended to say Y here (this will enlarge
  48. your kernel by about 400 KB), since some programs (e.g. the X window
  49. system) use TCP/IP even if your machine is not connected to any
  50. other computer. You will get the so-called loopback device which
  51. allows you to ping yourself (great fun, that!).
  52. For an excellent introduction to Linux networking, please read the
  53. Linux Networking HOWTO, available from
  54. <http://www.tldp.org/docs.html#howto>.
  55. If you say Y here and also to "/proc file system support" and
  56. "Sysctl support" below, you can change various aspects of the
  57. behavior of the TCP/IP code by writing to the (virtual) files in
  58. /proc/sys/net/ipv4/*; the options are explained in the file
  59. <file:Documentation/networking/ip-sysctl.txt>.
  60. Short answer: say Y.
  61. if INET
  62. source "net/ipv4/Kconfig"
  63. source "net/ipv6/Kconfig"
  64. source "net/netlabel/Kconfig"
  65. endif # if INET
  66. config NETWORK_SECMARK
  67. bool "Security Marking"
  68. help
  69. This enables security marking of network packets, similar
  70. to nfmark, but designated for security purposes.
  71. If you are unsure how to answer this question, answer N.
  72. menuconfig NETFILTER
  73. bool "Network packet filtering framework (Netfilter)"
  74. ---help---
  75. Netfilter is a framework for filtering and mangling network packets
  76. that pass through your Linux box.
  77. The most common use of packet filtering is to run your Linux box as
  78. a firewall protecting a local network from the Internet. The type of
  79. firewall provided by this kernel support is called a "packet
  80. filter", which means that it can reject individual network packets
  81. based on type, source, destination etc. The other kind of firewall,
  82. a "proxy-based" one, is more secure but more intrusive and more
  83. bothersome to set up; it inspects the network traffic much more
  84. closely, modifies it and has knowledge about the higher level
  85. protocols, which a packet filter lacks. Moreover, proxy-based
  86. firewalls often require changes to the programs running on the local
  87. clients. Proxy-based firewalls don't need support by the kernel, but
  88. they are often combined with a packet filter, which only works if
  89. you say Y here.
  90. You should also say Y here if you intend to use your Linux box as
  91. the gateway to the Internet for a local network of machines without
  92. globally valid IP addresses. This is called "masquerading": if one
  93. of the computers on your local network wants to send something to
  94. the outside, your box can "masquerade" as that computer, i.e. it
  95. forwards the traffic to the intended outside destination, but
  96. modifies the packets to make it look like they came from the
  97. firewall box itself. It works both ways: if the outside host
  98. replies, the Linux box will silently forward the traffic to the
  99. correct local computer. This way, the computers on your local net
  100. are completely invisible to the outside world, even though they can
  101. reach the outside and can receive replies. It is even possible to
  102. run globally visible servers from within a masqueraded local network
  103. using a mechanism called portforwarding. Masquerading is also often
  104. called NAT (Network Address Translation).
  105. Another use of Netfilter is in transparent proxying: if a machine on
  106. the local network tries to connect to an outside host, your Linux
  107. box can transparently forward the traffic to a local server,
  108. typically a caching proxy server.
  109. Yet another use of Netfilter is building a bridging firewall. Using
  110. a bridge with Network packet filtering enabled makes iptables "see"
  111. the bridged traffic. For filtering on the lower network and Ethernet
  112. protocols over the bridge, use ebtables (under bridge netfilter
  113. configuration).
  114. Various modules exist for netfilter which replace the previous
  115. masquerading (ipmasqadm), packet filtering (ipchains), transparent
  116. proxying, and portforwarding mechanisms. Please see
  117. <file:Documentation/Changes> under "iptables" for the location of
  118. these packages.
  119. if NETFILTER
  120. config NETFILTER_DEBUG
  121. bool "Network packet filtering debugging"
  122. depends on NETFILTER
  123. help
  124. You can say Y here if you want to get additional messages useful in
  125. debugging the netfilter code.
  126. config NETFILTER_ADVANCED
  127. bool "Advanced netfilter configuration"
  128. depends on NETFILTER
  129. default y
  130. help
  131. If you say Y here you can select between all the netfilter modules.
  132. If you say N the more unusual ones will not be shown and the
  133. basic ones needed by most people will default to 'M'.
  134. If unsure, say Y.
  135. config BRIDGE_NETFILTER
  136. bool "Bridged IP/ARP packets filtering"
  137. depends on BRIDGE && NETFILTER && INET
  138. depends on NETFILTER_ADVANCED
  139. default y
  140. ---help---
  141. Enabling this option will let arptables resp. iptables see bridged
  142. ARP resp. IP traffic. If you want a bridging firewall, you probably
  143. want this option enabled.
  144. Enabling or disabling this option doesn't enable or disable
  145. ebtables.
  146. If unsure, say N.
  147. source "net/netfilter/Kconfig"
  148. source "net/ipv4/netfilter/Kconfig"
  149. source "net/ipv6/netfilter/Kconfig"
  150. source "net/decnet/netfilter/Kconfig"
  151. source "net/bridge/netfilter/Kconfig"
  152. endif
  153. source "net/dccp/Kconfig"
  154. source "net/sctp/Kconfig"
  155. source "net/rds/Kconfig"
  156. source "net/tipc/Kconfig"
  157. source "net/atm/Kconfig"
  158. source "net/l2tp/Kconfig"
  159. source "net/802/Kconfig"
  160. source "net/bridge/Kconfig"
  161. source "net/dsa/Kconfig"
  162. source "net/8021q/Kconfig"
  163. source "net/decnet/Kconfig"
  164. source "net/llc/Kconfig"
  165. source "net/ipx/Kconfig"
  166. source "drivers/net/appletalk/Kconfig"
  167. source "net/x25/Kconfig"
  168. source "net/lapb/Kconfig"
  169. source "net/econet/Kconfig"
  170. source "net/wanrouter/Kconfig"
  171. source "net/phonet/Kconfig"
  172. source "net/ieee802154/Kconfig"
  173. source "net/sched/Kconfig"
  174. source "net/dcb/Kconfig"
  175. config RPS
  176. boolean
  177. depends on SMP && SYSFS
  178. default y
  179. menu "Network testing"
  180. config NET_PKTGEN
  181. tristate "Packet Generator (USE WITH CAUTION)"
  182. depends on PROC_FS
  183. ---help---
  184. This module will inject preconfigured packets, at a configurable
  185. rate, out of a given interface. It is used for network interface
  186. stress testing and performance analysis. If you don't understand
  187. what was just said, you don't need it: say N.
  188. Documentation on how to use the packet generator can be found
  189. at <file:Documentation/networking/pktgen.txt>.
  190. To compile this code as a module, choose M here: the
  191. module will be called pktgen.
  192. config NET_TCPPROBE
  193. tristate "TCP connection probing"
  194. depends on INET && EXPERIMENTAL && PROC_FS && KPROBES
  195. ---help---
  196. This module allows for capturing the changes to TCP connection
  197. state in response to incoming packets. It is used for debugging
  198. TCP congestion avoidance modules. If you don't understand
  199. what was just said, you don't need it: say N.
  200. Documentation on how to use TCP connection probing can be found
  201. at http://linux-net.osdl.org/index.php/TcpProbe
  202. To compile this code as a module, choose M here: the
  203. module will be called tcp_probe.
  204. config NET_DROP_MONITOR
  205. boolean "Network packet drop alerting service"
  206. depends on INET && EXPERIMENTAL && TRACEPOINTS
  207. ---help---
  208. This feature provides an alerting service to userspace in the
  209. event that packets are discarded in the network stack. Alerts
  210. are broadcast via netlink socket to any listening user space
  211. process. If you don't need network drop alerts, or if you are ok
  212. just checking the various proc files and other utilities for
  213. drop statistics, say N here.
  214. endmenu
  215. endmenu
  216. source "net/ax25/Kconfig"
  217. source "net/can/Kconfig"
  218. source "net/irda/Kconfig"
  219. source "net/bluetooth/Kconfig"
  220. source "net/rxrpc/Kconfig"
  221. config FIB_RULES
  222. bool
  223. menuconfig WIRELESS
  224. bool "Wireless"
  225. depends on !S390
  226. default y
  227. if WIRELESS
  228. source "net/wireless/Kconfig"
  229. source "net/mac80211/Kconfig"
  230. endif # WIRELESS
  231. source "net/wimax/Kconfig"
  232. source "net/rfkill/Kconfig"
  233. source "net/9p/Kconfig"
  234. source "net/caif/Kconfig"
  235. endif # if NET