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 = { _______________________________________________ svn-src-stable-10@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10 To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"