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

This commit is contained in:
cinap_lenrek 2019-01-23 20:47:48 +01:00
parent 058951bb80
commit 3cf63ee15f
3 changed files with 8 additions and 8 deletions

View file

@ -49,7 +49,7 @@ enum
OBbflen= 13,
OBdumpfile= 14,
OBdomainname= 15,
OBswapserver= 16, /* 0x10 */
OBrootserver= 16, /* 0x10 */
OBrootpath= 17,
OBextpath= 18,
OBipforward= 19,

View file

@ -99,7 +99,7 @@ char *optname[256] =
[OBbflen] "bflen",
[OBdumpfile] "dumpfile",
[OBdomainname] "dom",
[OBswapserver] "swap",
[OBrootserver] "rootserver",
[OBrootpath] "rootpath",
[OBextpath] "extpath",
[OBipforward] "ipforward",
@ -1186,8 +1186,8 @@ miscoptions(Req *rp, uchar *ip)
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 @@ 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);
case OBrootserver:
j = lookupserver("rootserver", addrs, nelem(addrs), t);
addrsopt(rp, OBrootserver, addrs, j);
break;
case OBntpserver:
j = lookupserver("ntp", addrs, nelem(addrs), t);

View file

@ -49,7 +49,7 @@ static Option option[256] =
[OBbflen] { "bflen", Tulong },
[OBdumpfile] { "dumpfile", Tstr },
[OBdomainname] { "dom", Tstr },
[OBswapserver] { "swap", Taddrs },
[OBrootserver] { "rootserver", Taddrs },
[OBrootpath] { "rootpath", Tstr },
[OBextpath] { "extpath", Tstr },
[OBipforward] { "ipforward", Taddrs },