···23232424 If unsure, say Y.25252626+# All the following symbols are dependent on NETDEVICES - do not repeat2727+# that for each of the symbols.2828+if NETDEVICES2929+2630config DUMMY2731 tristate "Dummy net driver support"2828- depends on NETDEVICES2932 ---help---3033 This is essentially a bit-bucket device (i.e. traffic you send to3134 this device is consigned into oblivion) with a configurable IP···48454946config BONDING5047 tristate "Bonding driver support"5151- depends on NETDEVICES5248 depends on INET5349 ---help---5450 Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet···65636664config EQUALIZER6765 tristate "EQL (serial line load balancing) support"6868- depends on NETDEVICES6966 ---help---7067 If you have two serial connections to some other computer (this7168 usually requires two modems and two telephone lines) and you use···84838584config TUN8685 tristate "Universal TUN/TAP device driver support"8787- depends on NETDEVICES8886 select CRC328987 ---help---9088 TUN/TAP provides packet reception and transmission for user space···107107108108config NET_SB1000109109 tristate "General Instruments Surfboard 1000"110110- depends on NETDEVICES && PNP110110+ depends on PNP111111 ---help---112112 This is a driver for the General Instrument (also known as113113 NextLevel) SURFboard 1000 internal···129129130130 If you don't have this card, of course say N.131131132132-if NETDEVICES133132 source "drivers/net/arcnet/Kconfig"134134-endif135133136134#137135# Ethernet138136#139137140138menu "Ethernet (10 or 100Mbit)"141141- depends on NETDEVICES && !UML139139+ depends on !UML142140143141config NET_ETHERNET144142 bool "Ethernet (10 or 100Mbit)"···1135113711361138config IBMVETH11371139 tristate "IBM LAN Virtual Ethernet support"11381138- depends on NETDEVICES && NET_ETHERNET && PPC_PSERIES11401140+ depends on NET_ETHERNET && PPC_PSERIES11391141 ---help---11401142 This driver supports virtual ethernet adapters on newer IBM iSeries11411143 and pSeries systems.···17581760#1759176117601762menu "Ethernet (1000 Mbit)"17611761- depends on NETDEVICES && !UML17631763+ depends on !UML1762176417631765config ACENIC17641766 tristate "Alteon AceNIC/3Com 3C985/NetGear GA620 Gigabit support"···20892091#2090209220912093menu "Ethernet (10000 Mbit)"20922092- depends on NETDEVICES && !UML20942094+ depends on !UML2093209520942096config IXGB20952097 tristate "Intel(R) PRO/10GbE support"···2184218621852187config ISERIES_VETH21862188 tristate "iSeries Virtual Ethernet driver support"21872187- depends on NETDEVICES && PPC_ISERIES21892189+ depends on PPC_ISERIES2188219021892191config FDDI21902192 bool "FDDI driver support"21912191- depends on NETDEVICES && (PCI || EISA)21932193+ depends on (PCI || EISA)21922194 help21932195 Fiber Distributed Data Interface is a high speed local area network21942196 design; essentially a replacement for high speed Ethernet. FDDI can···2237223922382240config HIPPI22392241 bool "HIPPI driver support (EXPERIMENTAL)"22402240- depends on NETDEVICES && EXPERIMENTAL && INET && PCI22422242+ depends on EXPERIMENTAL && INET && PCI22412243 help22422244 HIgh Performance Parallel Interface (HIPPI) is a 800Mbit/sec and22432245 1600Mbit/sec dual-simplex switched or point-to-point network. HIPPI···2269227122702272config PLIP22712273 tristate "PLIP (parallel port) support"22722272- depends on NETDEVICES && PARPORT22742274+ depends on PARPORT22732275 ---help---22742276 PLIP (Parallel Line Internet Protocol) is used to create a22752277 reasonably fast mini network consisting of two (or, rarely, more)···2305230723062308config PPP23072309 tristate "PPP (point-to-point protocol) support"23082308- depends on NETDEVICES23092310 ---help---23102311 PPP (Point to Point Protocol) is a newer and better SLIP. It serves23112312 the same purpose: sending Internet traffic over telephone (and other···2440244324412444config SLIP24422445 tristate "SLIP (serial line) support"24432443- depends on NETDEVICES24442446 ---help---24452447 Say Y if you intend to use SLIP or CSLIP (compressed SLIP) to24462448 connect to your Internet service provider or to connect to some···2506251025072511config NET_FC25082512 bool "Fibre Channel driver support"25092509- depends on NETDEVICES && SCSI && PCI25132513+ depends on SCSI && PCI25102514 help25112515 Fibre Channel is a high speed serial protocol mainly used to connect25122516 large storage devices to the computer; it is compatible with and···2519252325202524config SHAPER25212525 tristate "Traffic Shaper (EXPERIMENTAL)"25222522- depends on NETDEVICES && EXPERIMENTAL25262526+ depends on EXPERIMENTAL25232527 ---help---25242528 The traffic shaper is a virtual network device that allows you to25252529 limit the rate of outgoing data flow over some other network device.···2540254425412545config NETCONSOLE25422546 tristate "Network console logging support (EXPERIMENTAL)"25432543- depends on NETDEVICES && INET && EXPERIMENTAL25472547+ depends on EXPERIMENTAL25442548 ---help---25452549 If you want to log kernel messages over the network, enable this.25462550 See <file:Documentation/networking/netconsole.txt> for details.25512551+25522552+endif #NETDEVICES2547255325482554config NETPOLL25492555 def_bool NETCONSOLE
···2323#include <linux/percpu.h>2424#include <linux/init.h>25252626+#include <asm/byteorder.h>2627#include <asm/system.h>2728#include <asm/uaccess.h>2828-29293030/*3131 This is a maximally equidistributed combined Tausworthe generator···153153EXPORT_SYMBOL(net_random);154154EXPORT_SYMBOL(net_ratelimit);155155EXPORT_SYMBOL(net_srandom);156156+157157+/*158158+ * Convert an ASCII string to binary IP.159159+ * This is outside of net/ipv4/ because various code that uses IP addresses160160+ * is otherwise not dependent on the TCP/IP stack.161161+ */162162+163163+__u32 in_aton(const char *str)164164+{165165+ unsigned long l;166166+ unsigned int val;167167+ int i;168168+169169+ l = 0;170170+ for (i = 0; i < 4; i++)171171+ {172172+ l <<= 8;173173+ if (*str != '\0')174174+ {175175+ val = 0;176176+ while (*str != '\0' && *str != '.')177177+ {178178+ val *= 10;179179+ val += *str - '0';180180+ str++;181181+ }182182+ l |= val;183183+ if (*str != '\0')184184+ str++;185185+ }186186+ }187187+ return(htonl(l));188188+}189189+190190+EXPORT_SYMBOL(in_aton);
+1-1
net/ipv4/Kconfig
···124124125125config IP_ROUTE_MULTIPATH_CACHED126126 bool "IP: equal cost multipath with caching support (EXPERIMENTAL)"127127- depends on: IP_ROUTE_MULTIPATH127127+ depends on IP_ROUTE_MULTIPATH128128 help129129 Normally, equal cost multipath routing is not supported by the130130 routing cache. If you say Y here, alternative routes are cached
···11-/*22- * INET An implementation of the TCP/IP protocol suite for the LINUX33- * operating system. INET is implemented using the BSD Socket44- * interface as the means of communication with the user level.55- *66- * Various kernel-resident INET utility functions; mainly77- * for format conversion and debugging output.88- *99- * Version: $Id: utils.c,v 1.8 2000/10/03 07:29:01 anton Exp $1010- *1111- * Author: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>1212- *1313- * Fixes:1414- * Alan Cox : verify_area check.1515- * Alan Cox : removed old debugging.1616- * Andi Kleen : add net_ratelimit() 1717- *1818- * This program is free software; you can redistribute it and/or1919- * modify it under the terms of the GNU General Public License2020- * as published by the Free Software Foundation; either version2121- * 2 of the License, or (at your option) any later version.2222- */2323-2424-#include <linux/module.h>2525-#include <linux/types.h>2626-#include <asm/byteorder.h>2727-2828-/*2929- * Convert an ASCII string to binary IP. 3030- */3131-3232-__u32 in_aton(const char *str)3333-{3434- unsigned long l;3535- unsigned int val;3636- int i;3737-3838- l = 0;3939- for (i = 0; i < 4; i++) 4040- {4141- l <<= 8;4242- if (*str != '\0') 4343- {4444- val = 0;4545- while (*str != '\0' && *str != '.') 4646- {4747- val *= 10;4848- val += *str - '0';4949- str++;5050- }5151- l |= val;5252- if (*str != '\0') 5353- str++;5454- }5555- }5656- return(htonl(l));5757-}5858-5959-EXPORT_SYMBOL(in_aton);