Date: Mon, 21 Sep 2015 03:03:58 +0000 (UTC) From: Hiroki Sato <hrs@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r288055 - stable/10/sbin/ifconfig Message-ID: <201509210303.t8L33wCA054238@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hrs Date: Mon Sep 21 03:03:57 2015 New Revision: 288055 URL: https://svnweb.freebsd.org/changeset/base/288055 Log: Re-add deprecated options as no-op to prevent breakage of backward compatibility. Spotted by: ume Modified: stable/10/sbin/ifconfig/ifgif.c Modified: stable/10/sbin/ifconfig/ifgif.c ============================================================================== --- stable/10/sbin/ifconfig/ifgif.c Mon Sep 21 02:33:11 2015 (r288054) +++ stable/10/sbin/ifconfig/ifgif.c Mon Sep 21 03:03:57 2015 (r288055) @@ -74,6 +74,8 @@ setgifopts(const char *val, int d, int s { 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 } 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 = {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509210303.t8L33wCA054238>