diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-01-23 20:47:48 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-01-23 20:47:48 +0100 |
commit | 3cf63ee15fce37647fb3e5ce3d757b7cdaf5e872 (patch) | |
tree | 37cd67451a254a518dbb2d04a6d828c54a9504d9 | |
parent | 058951bb80bed643b0a0c57b1d4da1889d92626e (diff) |
ip/dhcpd: change swap to rootserver (thanks k0ga)
-rw-r--r-- | sys/src/cmd/ip/dhcp.h | 2 | ||||
-rw-r--r-- | sys/src/cmd/ip/dhcpd/dhcpd.c | 12 | ||||
-rw-r--r-- | sys/src/cmd/ip/ipconfig/dhcp.c | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/sys/src/cmd/ip/dhcp.h b/sys/src/cmd/ip/dhcp.h index f69d4502d..75bdeb62c 100644 --- a/sys/src/cmd/ip/dhcp.h +++ b/sys/src/cmd/ip/dhcp.h @@ -49,7 +49,7 @@ enum OBbflen= 13, OBdumpfile= 14, OBdomainname= 15, - OBswapserver= 16, /* 0x10 */ + OBrootserver= 16, /* 0x10 */ OBrootpath= 17, OBextpath= 18, OBipforward= 19, diff --git a/sys/src/cmd/ip/dhcpd/dhcpd.c b/sys/src/cmd/ip/dhcpd/dhcpd.c index b39feb7b6..4f31638ec 100644 --- a/sys/src/cmd/ip/dhcpd/dhcpd.c +++ b/sys/src/cmd/ip/dhcpd/dhcpd.c @@ -99,7 +99,7 @@ char *optname[256] = [OBbflen] "bflen", [OBdumpfile] "dumpfile", [OBdomainname] "dom", -[OBswapserver] "swap", +[OBrootserver] "rootserver", [OBrootpath] "rootpath", [OBextpath] "extpath", [OBipforward] "ipforward", @@ -1186,8 +1186,8 @@ miscoptions(Req *rp, uchar *ip) case OBnetbiosns: a[na++] = "@wins"; break; - case OBswapserver: - a[na++] = "@swap"; + case OBrootserver: + a[na++] = "@rootserver"; break; case OBsmtpserver: a[na++] = "@smtp"; @@ -1259,9 +1259,9 @@ miscoptions(Req *rp, uchar *ip) j = lookupserver("www", addrs, nelem(addrs), t); addrsopt(rp, OBwwwserver, addrs, j); break; - case OBswapserver: - j = lookupserver("swap", addrs, nelem(addrs), t); - addrsopt(rp, OBswapserver, addrs, j); + case OBrootserver: + j = lookupserver("rootserver", addrs, nelem(addrs), t); + addrsopt(rp, OBrootserver, addrs, j); break; case OBntpserver: j = lookupserver("ntp", addrs, nelem(addrs), t); diff --git a/sys/src/cmd/ip/ipconfig/dhcp.c b/sys/src/cmd/ip/ipconfig/dhcp.c index b9453334e..5f52a4e94 100644 --- a/sys/src/cmd/ip/ipconfig/dhcp.c +++ b/sys/src/cmd/ip/ipconfig/dhcp.c @@ -49,7 +49,7 @@ static Option option[256] = [OBbflen] { "bflen", Tulong }, [OBdumpfile] { "dumpfile", Tstr }, [OBdomainname] { "dom", Tstr }, -[OBswapserver] { "swap", Taddrs }, +[OBrootserver] { "rootserver", Taddrs }, [OBrootpath] { "rootpath", Tstr }, [OBextpath] { "extpath", Tstr }, [OBipforward] { "ipforward", Taddrs }, |