changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: ip/dhcpd: Add swap server support in dhcpd (thanks k0ga)

changeset 6874: 469fa1f309de
parent 6873: cd256cc052e3
child 6875: 04ab30b6cf1c
author: cinap_lenrek@felloff.net
date: Thu, 08 Nov 2018 21:15:07 +0100
files: sys/man/8/dhcpd sys/src/cmd/ip/dhcpd/dhcpd.c
description: ip/dhcpd: Add swap server support in dhcpd (thanks k0ga)
     1.1--- a/sys/man/8/dhcpd
     1.2+++ b/sys/man/8/dhcpd
     1.3@@ -159,6 +159,9 @@ an SMTP mail server
     1.4 the default boot file;
     1.5 see
     1.6 .IR ndb (6)
     1.7+.TP
     1.8+.B swap
     1.9+used by Unix machines for boot NFS server
    1.10 .PD
    1.11 .PP
    1.12 .I Dhcpd
     2.1--- a/sys/src/cmd/ip/dhcpd/dhcpd.c
     2.2+++ b/sys/src/cmd/ip/dhcpd/dhcpd.c
     2.3@@ -1186,6 +1186,9 @@ miscoptions(Req *rp, uchar *ip)
     2.4 		case OBnetbiosns:
     2.5 			a[na++] = "@wins";
     2.6 			break;
     2.7+		case OBswapserver:
     2.8+			a[na++] = "@swap";
     2.9+			break;
    2.10 		case OBsmtpserver:
    2.11 			a[na++] = "@smtp";
    2.12 			break;
    2.13@@ -1256,6 +1259,10 @@ miscoptions(Req *rp, uchar *ip)
    2.14 			j = lookupserver("www", addrs, nelem(addrs), t);
    2.15 			addrsopt(rp, OBwwwserver, addrs, j);
    2.16 			break;
    2.17+		case OBswapserver:
    2.18+			j = lookupserver("swap", addrs, nelem(addrs), t);
    2.19+			addrsopt(rp, OBswapserver, addrs, j);
    2.20+			break;
    2.21 		case OBntpserver:
    2.22 			j = lookupserver("ntp", addrs, nelem(addrs), t);
    2.23 			addrsopt(rp, OBntpserver, addrs, j);