summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-11-08 21:15:07 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2018-11-08 21:15:07 +0100
commit615f43b76e5f67c2e737c6b039df48ffccd1fde3 (patch)
tree904f0570b0adde6f4156cbd749b594e212e3c1d4
parent85afec4c2f95f12970b9f0e9a73a02cf29645745 (diff)
ip/dhcpd: Add swap server support in dhcpd (thanks k0ga)
-rw-r--r--sys/man/8/dhcpd3
-rw-r--r--sys/src/cmd/ip/dhcpd/dhcpd.c7
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);