diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-03-17 05:44:55 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-03-17 05:44:55 +0100 |
commit | 8f00b7096e4e5e370e89c0a594891c0235ae8857 (patch) | |
tree | 14ef360621523b1feb638266cca86d5f5d8c68f8 /sys/src/cmd/ip/ipconfig/dhcp.c | |
parent | 7aac23b02baedfcaec2066da5b137fcbb97b3efe (diff) |
ip/ipconfig: use defaults for loopback
- do not write /net/ndb for loopback medium unless -p is specified
- use defmask() instead of hardcoded /64 for v6 to get correct /128 mask for ::1
- only do duplicate address detection on ethernet
Diffstat (limited to 'sys/src/cmd/ip/ipconfig/dhcp.c')
-rw-r--r-- | sys/src/cmd/ip/ipconfig/dhcp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/cmd/ip/ipconfig/dhcp.c b/sys/src/cmd/ip/ipconfig/dhcp.c index 7bd8141ba..2b28a7f87 100644 --- a/sys/src/cmd/ip/ipconfig/dhcp.c +++ b/sys/src/cmd/ip/ipconfig/dhcp.c @@ -264,8 +264,7 @@ dhcpwatch(int needconfig) * leave everything we've learned somewhere that * other procs can find it. */ - if(beprimary) - putndb(); + putndb(); refresh(); } } |