mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
Re-add deprecated options as no-op to prevent breakage of backward
compatibility. Spotted by: ume
This commit is contained in:
parent
eafd3fcca5
commit
2018b462d2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=288055
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user