aboutsummaryrefslogtreecommitdiff
path: root/examples/udhcp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* examples/udhcp/udhcpd.conf: updateDenys Vlasenko2021-06-031-3/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples: remove /sbin/ prefixes, system should be configured with $PATH to ↵Denys Vlasenko2020-12-133-9/+9
| | | | | | find utilities Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/udhcp/simple.script: fix IPv6 support when using udhcpcStefan Agner2020-06-211-1/+1
| | | | | | | | | | | | | | | | | | The udhcpc script calls ip addr flush .. which flushes addresses of any address family, including IPv6. However, busybox udhcpc is IPv4 only and should not influence IPv6 addressing. Hence use ip addr flush with family constraint. The script particularly broke IPv6 SLAAC: Typically when udhcpc calls the script the kernel already assigned the IPv6 link-local address. The flush removes the link-local IPv6 address again and prohibits proper IPv6 operation such as SLAAC since neighbor discovery protocol relies on IPv6 link-local addressing. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> [Taken from https://git.openembedded.org/openembedded-core/commit/meta/recipes-core/busybox/files/simple.script?id=b77541dbb2f442e51842f9d24c8745a6df2d1478] Signed-off-by: Quentin Schulz <quentin.schulz@streamunlimited.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/udhcp/simple.script: print the filename actually changedRolf Eike Beer2019-09-121-1/+1
| | | | | Signed-off-by: Rolf Eike Beer <eb@emlix.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/udhcp/simple.script: up interface on deconfig eventDenys Vlasenko2019-09-051-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpd: support per-client hostnames in static leasesDenys Vlasenko2019-05-161-2/+7
| | | | | | | | | | function old new delta read_staticlease 222 299 +77 add_server_options 92 154 +62 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 139/0) Total: 139 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/udhcp/simple.script: fix resolv.conf update if it is a dangling symlinkRolf Eike Beer2019-04-131-0/+4
| | | | | | | | | | If /etc/resolv.conf is a symlink to a tmpfs and the actual file does not already exist, "readlink -f" will not detect it as symlink. Explicitely check for that condition before and touch the file, making the other code work as intended. Signed-off-by: Rolf Eike Beer <eb@emlix.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Update examples/udhcp/udhcpd.confDenys Vlasenko2019-01-151-36/+42
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/udhcp/simple.script: add possibility to use modern "ip"Jiří Prchal2018-10-301-3/+15
| | | | | | | | Script uses "ifconfig" only, not up-to-date so much. This patch adds "ip" in condition if exists. Signed-off-by: Jiří Prchal <jiri.prchal@aksignal.cz> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: support string user options, closes 10946Denys Vlasenko2018-04-131-1/+2
| | | | | | | | | | | function old new delta udhcp_str2optset 536 628 +92 packed_usage 32757 32760 +3 udhcpc_main 2708 2692 -16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 95/-16) Total: 79 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples: make udhcpc script handle /32 netmasksDenys Vlasenko2017-04-063-5/+25
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/udhcp: do not rewrite resolv.conf if no DNS servers. Closes 6788Denys Vlasenko2014-01-132-14/+22
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: use readlink rather than realpathMike Frysinger2013-03-121-1/+1
| | | | | | | | | The realpath utility requires all paths exist when canonicalizing symlinks. If /etc/resolv.conf points to a tmpfs, then it might not exist initially. Use `readlink -f` so that we follow all symlinks that are available. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* udhcpc: tweak math shell style with the metric varMike Frysinger2013-02-271-1/+2
| | | | | | | | Some shells (like dash) are lame and omit the POSIX increment/decrement feature (because it is listed as optional). Tweak the shell script to work in all POSIX variants. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* udhcpc: support resolv.conf symlinksMike Frysinger2013-02-271-4/+8
| | | | | | | | Often it is desirable to have /etc/ be on read-only storage (well, the whole rootfs) but have things like /etc/resolv.conf be symlinks to a writable location. Tweak the simple script to support that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* udhcp: finish support of classless static routesMichael McTernan2011-12-161-2/+4
| | | | | | | | function old new delta udhcp_str2optset 415 532 +117 Signed-off-by: Michael McTernan <Michael.McTernan.2001@cs.bris.ac.uk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tweak examples/udhcp/udhcpd.confDenys Vlasenko2011-05-041-7/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: add FEATURE_UDHCP_8021Q optionNigel Hathaway2011-04-261-0/+9
| | | | | | | | | function old new delta dhcp_option_strings 217 237 +20 dhcp_optflags 64 68 +4 Signed-off-by: Nigel Hathaway <Nigel.Hathaway@ubiquisys.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: fix unterminated last lines. no code changesDenys Vlasenko2010-07-262-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* update examples/udhcp/udhcpd.confDenys Vlasenko2010-04-041-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: tweak udhcpd.conf example and comments. no code changesDenys Vlasenko2010-03-211-19/+22
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: code shrink; disable time and log server optionsDenys Vlasenko2010-03-211-6/+7
| | | | | | | | | | | | | | | | | | | function old new delta add_server_options - 100 +100 udhcp_add_simple_option 92 90 -2 nobody_responds_to_arp 88 85 -3 dhcp_options 66 62 -4 udhcp_add_option_string 104 94 -10 udhcp_run_script 665 654 -11 dhcp_option_strings 203 188 -15 static.blank_chaddr 16 - -16 send_ACK 211 180 -31 add_bootp_options 61 - -61 udhcpd_main 1925 1846 -79 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 0/8 up/down: 100/-232) Total: -132 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: make it possible to disable vendor id; improve help textDenys Vlasenko2010-03-201-11/+11
| | | | | | | | | | | | function old new delta init_packet 135 139 +4 packed_usage 26789 26786 -3 alloc_dhcp_option 67 63 -4 udhcpc_main 2467 2447 -20 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 4/-27) Total: -23 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpd: remove five more options which do not make sense or not supportedDenys Vlasenko2010-03-201-21/+29
| | | | | | | | | | | | | | | | requestip, vendorclass, clientid are client-side variables, they do not make sense as udhcpd opts dhcptype is the packet type (not interesting, it's always 5) userclass needs parser support in order to work function old new delta dhcp_options 68 66 -2 read_opt 865 859 -6 dhcp_option_strings 253 203 -50 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-58) Total: -58 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: remove support for some really old and odd optionsDenys Vlasenko2010-03-191-8/+8
| | | | | | | | function old new delta dhcp_options 72 68 -4 dhcp_option_strings 271 253 -18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* chmod 755 some files in examples/*Denys Vlasenko2009-07-232-0/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/udhcp/udhcpd.conf: updateDenys Vlasenko2009-06-171-64/+31
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tftp: do not risk invoking Sorcerer's Apprentice syndromeDenys Vlasenko2009-05-101-1/+1
| | | | | | examples/udhcp/simple.script: fix incorrect test for $1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tweak example udhcp scriptDenis Vlasenko2009-04-211-5/+5
|
* update example udhcpc scriptDenis Vlasenko2009-04-161-8/+15
|
* sync examples to what actual actual code expectsDenis Vlasenko2007-12-251-6/+6
|
* nameif: extended matching (Nico Erfurth <masta@perlgolf.de>)Denis Vlasenko2007-12-241-2/+2
| | | | | | | | | | | | *: whitespace fixes function old new delta prepend_new_eth_table - 304 +304 nameif_main 620 684 +64 cc_macaddr 51 - -51 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 1/0 up/down: 368/-51) Total: 317 bytes
* adduser: trivial code movementDenis Vlasenko2006-12-261-1/+1
|
* Simon Poole writes:Eric Andersen2004-10-133-3/+6
| | | | | | | | | | | | | Erik, Attached is a patch for the udhcpc sample scripts, to correct the order in which routers are applied if the DHCP server provides more than one (as per section 3.5 of RFC2132). Apologies for not being on the mailing list and thanks for your continued efforts. Simon.
* Wade Berrier writes:Eric Andersen2004-10-081-0/+7
| | | | | | | | | | | | | | | | | | | Hello, Here's a patch for a first attempt at static leases for udhcpd. Included in the tarball are 2 files (static_leases.c, static_leases.h) and a patch against the latest cvs. In the config file you can configure static leases with the following format: static_lease 00:60:08:11:CE:4E 192.168.0.54 static_lease 00:60:08:11:CE:3E 192.168.0.44 Comments/suggestions/improvements are welcome. Wade
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-1/+1
|
* another sync to udhcp cvsRuss Dill2002-12-111-21/+21
|
* added full udhcp integrationRuss Dill2002-10-147-0/+230