diff options
author | hrs <hrs@FreeBSD.org> | 2015-09-21 03:03:57 +0000 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2015-09-21 03:03:57 +0000 |
commit | 2fa97c28915a119ae01504fff8721b93f82a5107 (patch) | |
tree | 05365c2a8e4cdcae5fab82e9aa6ab26393f759e6 /sbin/ifconfig | |
parent | 50371a834c64ba35aa19873f2ebb19b88b52f11d (diff) | |
download | FreeBSD-src-2fa97c28915a119ae01504fff8721b93f82a5107.zip FreeBSD-src-2fa97c28915a119ae01504fff8721b93f82a5107.tar.gz |
Re-add deprecated options as no-op to prevent breakage of backward
compatibility.
Spotted by: ume
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r-- | sbin/ifconfig/ifgif.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sbin/ifconfig/ifgif.c b/sbin/ifconfig/ifgif.c index 72ceb1b..de9696a 100644 --- a/sbin/ifconfig/ifgif.c +++ b/sbin/ifconfig/ifgif.c @@ -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 = { |