Re-add deprecated options as no-op to prevent breakage of backward

compatibility.

Spotted by:	ume
This commit is contained in:
Hiroki Sato 2015-09-21 03:03:57 +00:00
parent eafd3fcca5
commit 2018b462d2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=288055

View File

@ -74,6 +74,8 @@ setgifopts(const char *val, int d, int s, const struct afswtch *afp)
{
int opts;
if (d == 0)
return;
ifr.ifr_data = (caddr_t)&opts;
if (ioctl(s, GIFGOPTS, &ifr) == -1) {
warn("ioctl(GIFGOPTS)");
@ -92,8 +94,12 @@ setgifopts(const char *val, int d, int s, const struct afswtch *afp)
}
static struct cmd gif_cmds[] = {
DEF_CMD("accept_rev_ethip_ver", 0, setgifopts),
DEF_CMD("-accept_rev_ethip_ver",0, setgifopts),
DEF_CMD("ignore_source", GIF_IGNORE_SOURCE, setgifopts),
DEF_CMD("-ignore_source", -GIF_IGNORE_SOURCE, setgifopts),
DEF_CMD("send_rev_ethip_ver", 0, setgifopts),
DEF_CMD("-send_rev_ethip_ver", 0, setgifopts),
};
static struct afswtch af_gif = {