mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-24 07:40:52 +00:00
Remove obsolete compatibility code from rtadvd.
MFC after: 1 week
This commit is contained in:
parent
61f2f0bae6
commit
0660822abb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350086
@ -1052,14 +1052,7 @@ check_accept_rtadv(int idx)
|
||||
__func__, idx);
|
||||
return (0);
|
||||
}
|
||||
#if (__FreeBSD_version < 900000)
|
||||
/*
|
||||
* RA_RECV: !ip6.forwarding && ip6.accept_rtadv
|
||||
* RA_SEND: ip6.forwarding
|
||||
*/
|
||||
return ((getinet6sysctl(IPV6CTL_FORWARDING) == 0) &&
|
||||
(getinet6sysctl(IPV6CTL_ACCEPT_RTADV) == 1));
|
||||
#else
|
||||
|
||||
/*
|
||||
* RA_RECV: ND6_IFF_ACCEPT_RTADV
|
||||
* RA_SEND: ip6.forwarding
|
||||
@ -1070,7 +1063,6 @@ check_accept_rtadv(int idx)
|
||||
}
|
||||
|
||||
return (ifi->ifi_nd_flags & ND6_IFF_ACCEPT_RTADV);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user