summaryrefslogtreecommitdiff
path: root/sys/src/cmd/ip/ipconfig/dhcp.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2023-05-21 17:48:42 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2023-05-21 17:48:42 +0000
commitcbf5d3dc340da5b96cd1282e622a3f862c5b103e (patch)
tree9f8fbafdf6de49df2b503c335a2ce1e264bfbde7 /sys/src/cmd/ip/ipconfig/dhcp.c
parent169aa63ec5a670d0c72b7e9fb747e16d76b718c3 (diff)
ip/ipconfig: initial dhcpv6 support, clean default-routes and /net/ndb on remove
This adds a very basic (probably wrong) DHCPv6 client, to handle the "managed"-flag in IPv6 router solicitations. We add -U option to pass the DHCPv6 client id as well as an -s flag to manually add a dns server (because ppp is going to call ipconfig to handle all the configuration and write-back to /net/ndb in the future). Have the remove command also remove default routes and /net/ndb entries. (needed by ppp).
Diffstat (limited to 'sys/src/cmd/ip/ipconfig/dhcp.c')
-rw-r--r--sys/src/cmd/ip/ipconfig/dhcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/ip/ipconfig/dhcp.c b/sys/src/cmd/ip/ipconfig/dhcp.c
index d66360e95..035f7f4b6 100644
--- a/sys/src/cmd/ip/ipconfig/dhcp.c
+++ b/sys/src/cmd/ip/ipconfig/dhcp.c
@@ -287,7 +287,7 @@ dhcpwatch(int needconfig)
* leave everything we've learned somewhere that
* other procs can find it.
*/
- putndb();
+ putndb(1);
refresh();
}
}