2 # For a description of the syntax of this configuration file,
3 # see scripts/kbuild/config-language.txt.
6 menu "Networking Utilities"
11 bool "Enable IPv6 support"
14 Enable IPv6 support in busybox.
15 This adds IPv6 support in the networking applets.
17 config FEATURE_UNIX_LOCAL
18 bool "Enable Unix domain socket support (usually not needed)"
21 Enable Unix domain socket support in all busybox networking
22 applets. Address of the form local:/path/to/unix/socket
25 This extension is almost never used in real world usage.
26 You most likely want to say N.
28 config FEATURE_PREFER_IPV4_ADDRESS
29 bool "Prefer IPv4 addresses from DNS queries"
31 depends on FEATURE_IPV6
33 Use IPv4 address of network host if it has one.
35 If this option is off, the first returned address will be used.
36 This may cause problems when your DNS server is IPv6-capable and
37 is returning IPv6 host addresses too. If IPv6 address
38 precedes IPv4 one in DNS reply, busybox network applets
39 (e.g. wget) will use IPv6 address. On an IPv6-incapable host
40 or network applets will fail to connect to the host
43 config VERBOSE_RESOLUTION_ERRORS
44 bool "Verbose resolution errors"
47 Enable if you are not satisfied with simplistic
48 "can't resolve 'hostname.com'" and want to know more.
49 This may increase size of your executable a bit.
54 depends on PLATFORM_LINUX
56 Manipulate the system ARP cache.
61 depends on PLATFORM_LINUX
63 Ping hosts by ARP packets.
68 depends on PLATFORM_LINUX
70 Manage ethernet bridges.
71 Supports addbr/delbr and addif/delif.
73 config FEATURE_BRCTL_FANCY
78 Add support for extended option like:
79 setageing, setfd, sethello, setmaxage,
80 setpathcost, setportprio, setbridgeprio,
82 This adds about 600 bytes.
84 config FEATURE_BRCTL_SHOW
85 bool "Support show, showmac and showstp"
87 depends on BRCTL && FEATURE_BRCTL_FANCY
89 Add support for option which prints the current config:
90 showmacs, showstp, show
96 Small and static DNS server daemon.
101 depends on PLATFORM_LINUX
103 Send a magic packet to wake up sleeping machines.
108 select FEATURE_SYSLOG
110 fakeidentd listens on the ident port and returns a predefined
111 fake value on any query.
117 simple FTP daemon. You have to run it via inetd.
119 config FEATURE_FTP_WRITE
120 bool "Enable upload commands"
124 Enable all kinds of FTP upload commands (-w option)
126 config FEATURE_FTPD_ACCEPT_BROKEN_LIST
127 bool "Enable workaround for RFC-violating clients"
131 Some ftp clients (among them KDE's Konqueror) issue illegal
132 "LIST -l" requests. This option works around such problems.
133 It might prevent you from listing files starting with "-" and
134 it increases the code size by ~40 bytes.
135 Most other ftp servers seem to behave similar to this.
141 Retrieve a remote file via FTP.
147 Store a remote file via FTP.
149 config FEATURE_FTPGETPUT_LONG_OPTIONS
150 bool "Enable long options in ftpget/ftpput"
152 depends on LONG_OPTS && (FTPGET || FTPPUT)
154 Support long options for the ftpget/ftpput applet.
160 Show or set the system's host name.
166 Serve web pages via an HTTP server.
168 config FEATURE_HTTPD_RANGES
169 bool "Support 'Ranges:' header"
173 Makes httpd emit "Accept-Ranges: bytes" header and understand
174 "Range: bytes=NNN-[MMM]" header. Allows for resuming interrupted
175 downloads, seeking in multimedia players etc.
177 config FEATURE_HTTPD_USE_SENDFILE
178 bool "Use sendfile system call"
182 When enabled, httpd will use the kernel sendfile() function
183 instead of read/write loop.
185 config FEATURE_HTTPD_SETUID
186 bool "Enable -u <user> option"
190 This option allows the server to run as a specific user
191 rather than defaulting to the user that starts the server.
192 Use of this option requires special privileges to change to a
195 config FEATURE_HTTPD_BASIC_AUTH
196 bool "Enable Basic http Authentication"
200 Utilizes password settings from /etc/httpd.conf for basic
201 authentication on a per url basis.
203 config FEATURE_HTTPD_AUTH_MD5
204 bool "Support MD5 crypted passwords for http Authentication"
206 depends on FEATURE_HTTPD_BASIC_AUTH
208 Enables basic per URL authentication from /etc/httpd.conf
211 config FEATURE_HTTPD_CGI
212 bool "Support Common Gateway Interface (CGI)"
216 This option allows scripts and executables to be invoked
217 when specific URLs are requested.
219 config FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR
220 bool "Support for running scripts through an interpreter"
222 depends on FEATURE_HTTPD_CGI
224 This option enables support for running scripts through an
225 interpreter. Turn this on if you want PHP scripts to work
226 properly. You need to supply an additional line in your httpd
228 *.php:/path/to/your/php
230 config FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV
231 bool "Set REMOTE_PORT environment variable for CGI"
233 depends on FEATURE_HTTPD_CGI
235 Use of this option can assist scripts in generating
236 references that contain a unique port number.
238 config FEATURE_HTTPD_ENCODE_URL_STR
239 bool "Enable -e option (useful for CGIs written as shell scripts)"
243 This option allows html encoding of arbitrary strings for display
244 by the browser. Output goes to stdout.
245 For example, httpd -e "<Hello World>" produces
246 "<Hello World>".
248 config FEATURE_HTTPD_ERROR_PAGES
249 bool "Support for custom error pages"
253 This option allows you to define custom error pages in
254 the configuration file instead of the default HTTP status
255 error pages. For instance, if you add the line:
257 in the config file, the server will respond the specified
258 '/path/e404.html' file instead of the terse '404 NOT FOUND'
261 config FEATURE_HTTPD_PROXY
262 bool "Support for reverse proxy"
266 This option allows you to define URLs that will be forwarded
267 to another HTTP server. To setup add the following line to the
269 P:/url/:http://hostname[:port]/new/path/
270 Then a request to /url/myfile will be forwarded to
271 http://hostname[:port]/new/path/myfile.
276 depends on PLATFORM_LINUX
278 Ifconfig is used to configure the kernel-resident network interfaces.
280 config FEATURE_IFCONFIG_STATUS
281 bool "Enable status reporting output (+7k)"
285 If ifconfig is called with no arguments it will display the status
286 of the currently active interfaces.
288 config FEATURE_IFCONFIG_SLIP
289 bool "Enable slip-specific options \"keepalive\" and \"outfill\""
293 Allow "keepalive" and "outfill" support for SLIP. If you're not
294 planning on using serial lines, leave this unchecked.
296 config FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ
297 bool "Enable options \"mem_start\", \"io_addr\", and \"irq\""
301 Allow the start address for shared memory, start address for I/O,
302 and/or the interrupt line used by the specified device.
304 config FEATURE_IFCONFIG_HW
305 bool "Enable option \"hw\" (ether only)"
309 Set the hardware address of this interface, if the device driver
310 supports this operation. Currently, we only support the 'ether'
313 config FEATURE_IFCONFIG_BROADCAST_PLUS
314 bool "Set the broadcast automatically"
318 Setting this will make ifconfig attempt to find the broadcast
319 automatically if the value '+' is used.
324 depends on PLATFORM_LINUX
326 Userspace application to bind several interfaces
327 to a logical interface (use with kernel bonding driver).
332 depends on PLATFORM_LINUX
334 Network interface plug detection daemon.
340 Activate or deactivate the specified interfaces. This applet makes
341 use of either "ifconfig" and "route" or the "ip" command to actually
342 configure network interfaces. Therefore, you will probably also want
343 to enable either IFCONFIG and ROUTE, or enable
344 FEATURE_IFUPDOWN_IP and the various IP options. Of
345 course you could use non-busybox versions of these programs, so
346 against my better judgement (since this will surely result in plenty
347 of support questions on the mailing list), I do not force you to
348 enable these additional options. It is up to you to supply either
349 "ifconfig", "route" and "run-parts" or the "ip" command, either
350 via busybox or via standalone utilities.
352 config IFUPDOWN_IFSTATE_PATH
353 string "Absolute path to ifstate file"
354 default "/var/run/ifstate"
357 ifupdown keeps state information in a file called ifstate.
358 Typically it is located in /var/run/ifstate, however
359 some distributions tend to put it in other places
360 (debian, for example, uses /etc/network/run/ifstate).
361 This config option defines location of ifstate.
363 config FEATURE_IFUPDOWN_IP
368 Use the iproute "ip" command to implement "ifup" and "ifdown", rather
369 than the default of using the older 'ifconfig' and 'route' utilities.
371 config FEATURE_IFUPDOWN_IP_BUILTIN
372 bool "Use busybox ip applet"
374 depends on FEATURE_IFUPDOWN_IP && PLATFORM_LINUX
376 select FEATURE_IP_ADDRESS
377 select FEATURE_IP_LINK
378 select FEATURE_IP_ROUTE
380 Use the busybox iproute "ip" applet to implement "ifupdown".
382 If left disabled, you must install the full-blown iproute2
383 utility or the "ifup" and "ifdown" applets will not work.
385 config FEATURE_IFUPDOWN_IFCONFIG_BUILTIN
386 bool "Use busybox ifconfig and route applets"
388 depends on IFUPDOWN && !FEATURE_IFUPDOWN_IP
392 Use the busybox iproute "ifconfig" and "route" applets to
393 implement the "ifup" and "ifdown" utilities.
395 If left disabled, you must install the full-blown ifconfig
396 and route utilities, or the "ifup" and "ifdown" applets will not
399 config FEATURE_IFUPDOWN_IPV4
400 bool "Support for IPv4"
404 If you want ifup/ifdown to talk IPv4, leave this on.
406 config FEATURE_IFUPDOWN_IPV6
407 bool "Support for IPv6"
409 depends on IFUPDOWN && FEATURE_IPV6
411 If you need support for IPv6, turn this option on.
414 ###config FEATURE_IFUPDOWN_IPX
415 ### bool "Support for IPX"
417 ### depends on IFUPDOWN
419 ### If this option is selected you can use busybox to work with IPX
422 config FEATURE_IFUPDOWN_MAPPING
423 bool "Enable mapping support"
427 This enables support for the "mapping" stanza, unless you have
428 a weird network setup you don't need it.
430 config FEATURE_IFUPDOWN_EXTERNAL_DHCP
431 bool "Support for external dhcp clients"
435 This enables support for the external dhcp clients. Clients are
436 tried in the following order: dhcpcd, dhclient, pump and udhcpc.
437 Otherwise, if udhcpc applet is enabled, it is used.
438 Otherwise, ifup/ifdown will have no support for DHCP.
443 select FEATURE_SYSLOG
445 Internet superserver daemon
447 config FEATURE_INETD_SUPPORT_BUILTIN_ECHO
448 bool "Support echo service"
452 Echo received data internal inetd service
454 config FEATURE_INETD_SUPPORT_BUILTIN_DISCARD
455 bool "Support discard service"
459 Internet /dev/null internal inetd service
461 config FEATURE_INETD_SUPPORT_BUILTIN_TIME
462 bool "Support time service"
466 Return 32 bit time since 1900 internal inetd service
468 config FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME
469 bool "Support daytime service"
473 Return human-readable time internal inetd service
475 config FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN
476 bool "Support chargen service"
480 Familiar character generator internal inetd service
482 config FEATURE_INETD_RPC
483 bool "Support RPC services"
486 select FEATURE_HAVE_RPC
488 Support Sun-RPC based services
493 depends on PLATFORM_LINUX
495 The "ip" applet is a TCP/IP interface configuration and routing
496 utility. You generally don't need "ip" to use busybox with
499 config FEATURE_IP_ADDRESS
504 Address manipulation support for the "ip" applet.
506 config FEATURE_IP_LINK
511 Configure network devices with "ip".
513 config FEATURE_IP_ROUTE
518 Add support for routing table management to "ip".
520 config FEATURE_IP_TUNNEL
525 Add support for tunneling commands to "ip".
527 config FEATURE_IP_RULE
532 Add support for rule commands to "ip".
534 config FEATURE_IP_SHORT_FORMS
535 bool "Support short forms of ip commands"
539 Also support short-form of ip <OBJECT> commands:
543 ip tunnel -> iptunnel
546 Say N unless you desparately need the short form of the ip
549 config FEATURE_IP_RARE_PROTOCOLS
550 bool "Support displaying rarely used link types"
554 If you are not going to use links of type "frad", "econet",
555 "bif" etc, you probably don't need to enable this.
556 Ethernet, wireless, infrared, ppp/slip, ip tunnelling
557 link types are supported without this option selected.
562 depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_ADDRESS
567 depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_LINK
572 depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_ROUTE
577 depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_TUNNEL
582 depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_RULE
588 ipcalc takes an IP address and netmask and calculates the
589 resulting broadcast, network, and host range.
591 config FEATURE_IPCALC_FANCY
592 bool "Fancy IPCALC, more options, adds 1 kbyte"
596 Adds the options hostname, prefix and silent to the output of
599 config FEATURE_IPCALC_LONG_OPTIONS
600 bool "Enable long options"
602 depends on IPCALC && LONG_OPTS
604 Support long options for the ipcalc applet.
609 depends on PLATFORM_LINUX
610 select FEATURE_SYSLOG
612 nameif is used to rename network interface by its MAC address.
613 Renamed interfaces MUST be in the down state.
614 It is possible to use a file (default: /etc/mactab)
615 with list of new interface names and MACs.
616 Maximum interface name length: IFNAMSIZ = 16
617 File fields are separated by space or tab.
620 new_interface_name XX:XX:XX:XX:XX:XX
622 config FEATURE_NAMEIF_EXTENDED
623 bool "Extended nameif"
627 This extends the nameif syntax to support the bus_info and driver
628 checks. The syntax is compatible to the normal nameif.
630 new_interface_name driver=asix bus=usb-0000:00:08.2-3
631 new_interface_name bus=usb-0000:00:08.2-3 00:80:C8:38:91:B5
632 new_interface_name mac=00:80:C8:38:91:B5
633 new_interface_name 00:80:C8:38:91:B5
638 depends on PLATFORM_LINUX
640 netstat prints information about the Linux networking subsystem.
642 config FEATURE_NETSTAT_WIDE
643 bool "Enable wide netstat output"
647 Add support for wide columns. Useful when displaying IPv6 addresses
650 config FEATURE_NETSTAT_PRG
651 bool "Enable PID/Program name output"
655 Add support for -p flag to print out PID and program name.
662 nslookup is a tool to query Internet name servers.
667 depends on PLATFORM_LINUX
669 The NTP client/server daemon.
671 config FEATURE_NTPD_SERVER
672 bool "Make ntpd usable as a NTP server"
676 Make ntpd usable as a NTP server. If you disable this option
677 ntpd will be usable only as a NTP client.
682 depends on PLATFORM_LINUX
684 ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to
685 elicit an ICMP ECHO_RESPONSE from a host or gateway.
690 depends on FEATURE_IPV6 && PING
692 This will give you a ping that can talk IPv6.
694 config FEATURE_FANCY_PING
695 bool "Enable fancy ping output"
699 Make the output from the ping applet include statistics, and at the
700 same time provide full support for ICMP packets.
706 Simple network port scanner.
711 depends on PLATFORM_LINUX
713 Route displays or manipulates the kernel's IP routing tables.
718 depends on PLATFORM_LINUX
720 slattach is a small utility to attach network interfaces to serial
727 # show / manipulate traffic control settings
729 #config FEATURE_TC_INGRESS
737 tcpsvd listens on a TCP port and runs a program for each new
744 Telnet is an interface to the TELNET protocol, but is also commonly
745 used to test other simple protocols.
747 config FEATURE_TELNET_TTYPE
748 bool "Pass TERM type to remote host"
752 Setting this option will forward the TERM environment variable to the
753 remote host you are connecting to. This is useful to make sure that
754 things like ANSI colors and other control sequences behave.
756 config FEATURE_TELNET_AUTOLOGIN
757 bool "Pass USER type to remote host"
761 Setting this option will forward the USER environment variable to the
762 remote host you are connecting to. This is useful when you need to
763 log into a machine without telling the username (autologin). This
764 option enables `-a' and `-l USER' arguments.
769 select FEATURE_SYSLOG
771 A daemon for the TELNET protocol, allowing you to log onto the host
772 running the daemon. Please keep in mind that the TELNET protocol
773 sends passwords in plain text. If you can't afford the space for an
774 SSH daemon and you trust your network, you may say 'y' here. As a
775 more secure alternative, you should seriously consider installing the
776 very small Dropbear SSH daemon instead:
777 http://matt.ucc.asn.au/dropbear/dropbear.html
779 Note that for busybox telnetd to work you need several things:
780 First of all, your kernel needs:
784 Next, you need a /dev/pts directory on your root filesystem:
787 drwxr-xr-x 2 root root 0 Sep 23 13:21 /dev/pts/
789 Next you need the pseudo terminal master multiplexer /dev/ptmx:
792 crw-rw-rw- 1 root tty 5, 2 Sep 23 13:55 /dev/ptmx
794 Any /dev/ttyp[0-9]* files you may have can be removed.
795 Next, you need to mount the devpts filesystem on /dev/pts using:
797 mount -t devpts devpts /dev/pts
799 You need to be sure that Busybox has LOGIN and
800 FEATURE_SUID enabled. And finally, you should make
801 certain that Busybox has been installed setuid root:
803 chown root.root /bin/busybox
804 chmod 4755 /bin/busybox
806 with all that done, telnetd _should_ work....
809 config FEATURE_TELNETD_STANDALONE
810 bool "Support standalone telnetd (not inetd only)"
814 Selecting this will make telnetd able to run standalone.
816 config FEATURE_TELNETD_INETD_WAIT
817 bool "Support -w SEC option (inetd wait mode)"
819 depends on FEATURE_TELNETD_STANDALONE
821 This option allows you to run telnetd in "inet wait" mode.
822 Example inetd.conf line (note "wait", not usual "nowait"):
824 telnet stream tcp wait root /bin/telnetd telnetd -w10
826 In this example, inetd passes _listening_ socket_ as fd 0
827 to telnetd when connection appears.
828 telnetd will wait for connections until all existing
829 connections are closed, and no new connections
830 appear during 10 seconds. Then it exits, and inetd continues
831 to listen for new connections.
833 This option is rarely used. "tcp nowait" is much more usual
834 way of running tcp services, including telnetd.
835 You most probably want to say N here.
841 This enables the Trivial File Transfer Protocol client program. TFTP
842 is usually used for simple, small transfers such as a root image
843 for a network-enabled bootloader.
849 This enables the Trivial File Transfer Protocol server program.
850 It expects that stdin is a datagram socket and a packet
851 is already pending on it. It will exit after one transfer.
852 In other words: it should be run from inetd in nowait mode,
853 or from udpsvd. Example: "udpsvd -E 0 69 tftpd DIR"
855 comment "Common options for tftp/tftpd"
856 depends on TFTP || TFTPD
858 config FEATURE_TFTP_GET
859 bool "Enable 'tftp get' and/or tftpd upload code"
861 depends on TFTP || TFTPD
863 Add support for the GET command within the TFTP client. This allows
864 a client to retrieve a file from a TFTP server.
865 Also enable upload support in tftpd, if tftpd is selected.
867 Note: this option does _not_ make tftpd capable of download
868 (the usual operation people need from it)!
870 config FEATURE_TFTP_PUT
871 bool "Enable 'tftp put' and/or tftpd download code"
873 depends on TFTP || TFTPD
875 Add support for the PUT command within the TFTP client. This allows
876 a client to transfer a file to a TFTP server.
877 Also enable download support in tftpd, if tftpd is selected.
879 config FEATURE_TFTP_BLOCKSIZE
880 bool "Enable 'blksize' and 'tsize' protocol options"
882 depends on TFTP || TFTPD
884 Allow tftp to specify block size, and tftpd to understand
885 "blksize" and "tsize" options.
887 config FEATURE_TFTP_PROGRESS_BAR
888 bool "Enable tftp progress meter"
890 depends on TFTP && FEATURE_TFTP_BLOCKSIZE
897 depends on TFTP || TFTPD
899 Make tftp[d] print debugging messages on stderr.
900 This is useful if you are diagnosing a bug in tftp[d].
905 depends on PLATFORM_LINUX
907 Utility to trace the route of IP packets.
912 depends on FEATURE_IPV6 && TRACEROUTE
914 Utility to trace the route of IPv6 packets.
916 config FEATURE_TRACEROUTE_VERBOSE
917 bool "Enable verbose output"
919 depends on TRACEROUTE
921 Add some verbosity to traceroute. This includes among other things
922 hostnames and ICMP response types.
924 config FEATURE_TRACEROUTE_SOURCE_ROUTE
925 bool "Enable loose source route"
927 depends on TRACEROUTE
929 Add option to specify a loose source route gateway
932 config FEATURE_TRACEROUTE_USE_ICMP
933 bool "Use ICMP instead of UDP"
935 depends on TRACEROUTE
937 Add option -I to use ICMP ECHO instead of UDP datagrams.
942 depends on PLATFORM_LINUX
944 tunctl creates or deletes tun devices.
946 config FEATURE_TUNCTL_UG
947 bool "Support owner:group assignment"
951 Allow to specify owner and group of newly created interface.
952 340 bytes of pure bloat. Say no here.
954 source networking/udhcp/Config.in
956 config IFUPDOWN_UDHCPC_CMD_OPTIONS
957 string "ifup udhcpc command line options"
959 depends on IFUPDOWN && UDHCPC
961 Command line options to pass to udhcpc from ifup.
962 Intended to alter options not available in /etc/network/interfaces.
963 (IE: --syslog --background etc...)
969 udpsvd listens on an UDP port and runs a program for each new
975 depends on PLATFORM_LINUX
977 Creates, removes, and configures VLAN interfaces
983 wget is a utility for non-interactive download of files from HTTP,
984 HTTPS, and FTP servers.
986 config FEATURE_WGET_STATUSBAR
987 bool "Enable a nifty process meter (+2k)"
991 Enable the transfer progress bar for wget transfers.
993 config FEATURE_WGET_AUTHENTICATION
994 bool "Enable HTTP authentication"
998 Support authenticated HTTP transfers.
1000 config FEATURE_WGET_LONG_OPTIONS
1001 bool "Enable long options"
1003 depends on WGET && LONG_OPTS
1005 Support long options for the wget applet.
1010 depends on PLATFORM_LINUX
1011 select FEATURE_SYSLOG
1013 ZCIP provides ZeroConf IPv4 address selection, according to RFC 3927.
1014 It's a daemon that allocates and defends a dynamically assigned
1015 address on the 169.254/16 network, requiring no system administrator.
1017 See http://www.zeroconf.org for further details, and "zcip.script"
1018 in the busybox examples.