ref: 615f43b76e5f67c2e737c6b039df48ffccd1fde3
parent: 85afec4c2f95f12970b9f0e9a73a02cf29645745
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Nov 8 16:15:07 EST 2018
ip/dhcpd: Add swap server support in dhcpd (thanks k0ga)
--- a/sys/man/8/dhcpd
+++ b/sys/man/8/dhcpd
@@ -159,6 +159,9 @@
the default boot file;
see
.IR ndb (6)
+.TP
+.B swap
+used by Unix machines for boot NFS server
.PD
.PP
.I Dhcpd
--- a/sys/src/cmd/ip/dhcpd/dhcpd.c
+++ b/sys/src/cmd/ip/dhcpd/dhcpd.c
@@ -1186,6 +1186,9 @@
case OBnetbiosns:
a[na++] = "@wins";
break;
+ case OBswapserver:
+ a[na++] = "@swap";
+ break;
case OBsmtpserver:
a[na++] = "@smtp";
break;
@@ -1255,6 +1258,10 @@
case OBwwwserver:
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);