summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2015-09-21 03:03:57 +0000
committerhrs <hrs@FreeBSD.org>2015-09-21 03:03:57 +0000
commit2fa97c28915a119ae01504fff8721b93f82a5107 (patch)
tree05365c2a8e4cdcae5fab82e9aa6ab26393f759e6 /sbin
parent50371a834c64ba35aa19873f2ebb19b88b52f11d (diff)
downloadFreeBSD-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')
-rw-r--r--sbin/ifconfig/ifgif.c6
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 = {
OpenPOWER on IntegriCloud