diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-11-08 21:15:07 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-11-08 21:15:07 +0100 |
commit | 615f43b76e5f67c2e737c6b039df48ffccd1fde3 (patch) | |
tree | 904f0570b0adde6f4156cbd749b594e212e3c1d4 | |
parent | 85afec4c2f95f12970b9f0e9a73a02cf29645745 (diff) |
ip/dhcpd: Add swap server support in dhcpd (thanks k0ga)
-rw-r--r-- | sys/man/8/dhcpd | 3 | ||||
-rw-r--r-- | sys/src/cmd/ip/dhcpd/dhcpd.c | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/man/8/dhcpd b/sys/man/8/dhcpd index 9917772c3..b61c5abdb 100644 --- a/sys/man/8/dhcpd +++ b/sys/man/8/dhcpd @@ -159,6 +159,9 @@ an SMTP mail server the default boot file; see .IR ndb (6) +.TP +.B swap +used by Unix machines for boot NFS server .PD .PP .I Dhcpd diff --git a/sys/src/cmd/ip/dhcpd/dhcpd.c b/sys/src/cmd/ip/dhcpd/dhcpd.c index f7a57c180..b39feb7b6 100644 --- a/sys/src/cmd/ip/dhcpd/dhcpd.c +++ b/sys/src/cmd/ip/dhcpd/dhcpd.c @@ -1186,6 +1186,9 @@ miscoptions(Req *rp, uchar *ip) case OBnetbiosns: a[na++] = "@wins"; break; + case OBswapserver: + a[na++] = "@swap"; + break; case OBsmtpserver: a[na++] = "@smtp"; break; @@ -1256,6 +1259,10 @@ 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); + break; case OBntpserver: j = lookupserver("ntp", addrs, nelem(addrs), t); addrsopt(rp, OBntpserver, addrs, j); |