shithub: riscv

Download patch

ref: 3cf63ee15fce37647fb3e5ce3d757b7cdaf5e872
parent: 058951bb80bed643b0a0c57b1d4da1889d92626e
author: cinap_lenrek <[email protected]>
date: Wed Jan 23 15:47:48 EST 2019

ip/dhcpd: change swap to rootserver (thanks k0ga)

--- a/sys/src/cmd/ip/dhcp.h
+++ b/sys/src/cmd/ip/dhcp.h
@@ -49,7 +49,7 @@
 	OBbflen=		13,
 	OBdumpfile=		14,
 	OBdomainname=		15,
-	OBswapserver=		16,	/* 0x10 */
+	OBrootserver=		16,	/* 0x10 */
 	OBrootpath=		17,
 	OBextpath=		18,
 	OBipforward=		19,
--- a/sys/src/cmd/ip/dhcpd/dhcpd.c
+++ b/sys/src/cmd/ip/dhcpd/dhcpd.c
@@ -99,7 +99,7 @@
 [OBbflen]		"bflen",
 [OBdumpfile]		"dumpfile",
 [OBdomainname]		"dom",
-[OBswapserver]		"swap",
+[OBrootserver]		"rootserver",
 [OBrootpath]		"rootpath",
 [OBextpath]		"extpath",
 [OBipforward]		"ipforward",
@@ -1186,8 +1186,8 @@
 		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 @@
 			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);
--- a/sys/src/cmd/ip/ipconfig/dhcp.c
+++ b/sys/src/cmd/ip/ipconfig/dhcp.c
@@ -49,7 +49,7 @@
 [OBbflen]		{ "bflen",		Tulong },
 [OBdumpfile]		{ "dumpfile",		Tstr },
 [OBdomainname]		{ "dom",		Tstr },
-[OBswapserver]		{ "swap",		Taddrs },
+[OBrootserver]		{ "rootserver",		Taddrs },
 [OBrootpath]		{ "rootpath",		Tstr },
 [OBextpath]		{ "extpath",		Tstr },
 [OBipforward]		{ "ipforward",		Taddrs },