2f1d13d56a
examples/udhcp/udhcpd.conf: update
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2021-06-03 12:07:56 +02:00
1b367cbeda
examples: remove /sbin/ prefixes, system should be configured with $PATH to find utilities
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2020-12-13 21:35:26 +01:00
62744efa47
examples/udhcp/simple.script: fix IPv6 support when using udhcpc
...
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 >
2020-06-21 03:02:02 +02:00
7f89ebe18f
examples/udhcp/simple.script: print the filename actually changed
...
Signed-off-by: Rolf Eike Beer <eb@emlix.com >
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2019-09-12 12:06:46 +02:00
81a708393d
examples/udhcp/simple.script: up interface on deconfig event
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2019-09-05 14:58:30 +02:00
a840884531
udhcpd: support per-client hostnames in static leases
...
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 >
2019-05-16 11:18:49 +02:00
7180d9ed86
examples/udhcp/simple.script: fix resolv.conf update if it is a dangling symlink
...
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 >
2019-04-13 16:58:00 +02:00
edb74f4019
Update examples/udhcp/udhcpd.conf
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2019-01-15 13:19:01 +01:00
47839ae679
examples/udhcp/simple.script: add possibility to use modern "ip"
...
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 >
2018-10-30 12:05:03 +01:00
266f6f1973
udhcp: support string user options, closes 10946
...
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 >
2018-04-13 13:27:52 +02:00
9c192e7f94
examples: make udhcpc script handle /32 netmasks
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2017-04-06 00:53:43 +02:00
2e66daca65
examples/udhcp: do not rewrite resolv.conf if no DNS servers. Closes 6788
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2014-01-13 13:38:53 +01:00
bca5c556c4
udhcpc: use readlink rather than realpath
...
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 >
2013-03-12 10:48:09 -04:00
9fed24c031
udhcpc: tweak math shell style with the metric var
...
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 >
2013-02-27 01:05:34 -05:00
39b8fb41c5
udhcpc: support resolv.conf symlinks
...
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 >
2013-02-27 01:01:43 -05:00
7b57ff4436
udhcp: finish support of classless static routes
...
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 >
2011-12-16 17:05:52 +01:00
14b162f9ab
tweak examples/udhcp/udhcpd.conf
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2011-05-04 21:17:23 +02:00
fb6b173ff7
udhcp: add FEATURE_UDHCP_8021Q option
...
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 >
2011-04-26 02:50:00 +02:00
f0b82142b2
*: fix unterminated last lines. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-07-26 12:26:04 +02:00
290346948d
update examples/udhcp/udhcpd.conf
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-04-04 15:38:22 +02:00
2e7aa92836
udhcp: tweak udhcpd.conf example and comments. no code changes
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-21 02:22:07 +01:00
e5ce91b41b
udhcp: code shrink; disable time and log server options
...
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 >
2010-03-21 00:43:11 +01:00
87fa216e1e
udhcpc: make it possible to disable vendor id; improve help text
...
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 >
2010-03-20 18:06:23 +01:00
0f62c4d065
udhcpd: remove five more options which do not make sense or not supported
...
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 >
2010-03-20 07:12:21 +01:00
777706cb23
udhcp: remove support for some really old and odd options
...
function old new delta
dhcp_options 72 68 -4
dhcp_option_strings 271 253 -18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2010-03-19 23:42:23 +01:00
7cc5a50465
chmod 755 some files in examples/*
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-07-23 21:30:30 +02:00
2b0e957808
examples/udhcp/udhcpd.conf: update
...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-06-17 13:22:26 +02:00
c8ab67cad8
tftp: do not risk invoking Sorcerer's Apprentice syndrome
...
examples/udhcp/simple.script: fix incorrect test for $1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com >
2009-05-10 23:27:43 +02:00
1b47bbdfa4
tweak example udhcp script
2009-04-21 00:17:00 +00:00
ea4f0847c3
update example udhcpc script
2009-04-16 20:04:09 +00:00
1d61416b5a
sync examples to what actual actual code expects
2007-12-25 15:32:56 +00:00
f7be20e70c
nameif: extended matching (Nico Erfurth <masta@perlgolf.de>)
...
*: 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
2007-12-24 14:09:19 +00:00
3ef70d43ad
adduser: trivial code movement
2006-12-26 17:37:38 +00:00
1aee3ff8bb
Simon Poole writes:
...
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.
2004-10-13 07:18:05 +00:00
abf58d6ba5
Wade Berrier writes:
...
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
2004-10-08 08:49:26 +00:00
c7bda1ce65
Remove trailing whitespace. Update copyright to include 2004.
2004-03-15 08:29:22 +00:00
920c1e8d6c
another sync to udhcp cvs
2002-12-11 21:39:13 +00:00
61fb48930f
added full udhcp integration
2002-10-14 21:41:28 +00:00