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, OBbflen= 13,
OBdumpfile= 14, OBdumpfile= 14,
OBdomainname= 15, OBdomainname= 15,
OBswapserver= 16, /* 0x10 */ OBrootserver= 16, /* 0x10 */
OBrootpath= 17, OBrootpath= 17,
OBextpath= 18, OBextpath= 18,
OBipforward= 19, OBipforward= 19,

View file

@ -99,7 +99,7 @@ char *optname[256] =
[OBbflen] "bflen", [OBbflen] "bflen",
[OBdumpfile] "dumpfile", [OBdumpfile] "dumpfile",
[OBdomainname] "dom", [OBdomainname] "dom",
[OBswapserver] "swap", [OBrootserver] "rootserver",
[OBrootpath] "rootpath", [OBrootpath] "rootpath",
[OBextpath] "extpath", [OBextpath] "extpath",
[OBipforward] "ipforward", [OBipforward] "ipforward",
@ -1186,8 +1186,8 @@ miscoptions(Req *rp, uchar *ip)
case OBnetbiosns: case OBnetbiosns:
a[na++] = "@wins"; a[na++] = "@wins";
break; break;
case OBswapserver: case OBrootserver:
a[na++] = "@swap"; a[na++] = "@rootserver";
break; break;
case OBsmtpserver: case OBsmtpserver:
a[na++] = "@smtp"; a[na++] = "@smtp";
@ -1259,9 +1259,9 @@ miscoptions(Req *rp, uchar *ip)
j = lookupserver("www", addrs, nelem(addrs), t); j = lookupserver("www", addrs, nelem(addrs), t);
addrsopt(rp, OBwwwserver, addrs, j); addrsopt(rp, OBwwwserver, addrs, j);
break; break;
case OBswapserver: case OBrootserver:
j = lookupserver("swap", addrs, nelem(addrs), t); j = lookupserver("rootserver", addrs, nelem(addrs), t);
addrsopt(rp, OBswapserver, addrs, j); addrsopt(rp, OBrootserver, addrs, j);
break; break;
case OBntpserver: case OBntpserver:
j = lookupserver("ntp", addrs, nelem(addrs), t); j = lookupserver("ntp", addrs, nelem(addrs), t);

View file

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