mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-02 18:56:53 +00:00
2004-11-01 Paul Jakma <paul@dishone.st>
* sockopt.c: (setsockopt_pktinfo) remove, its unused.
This commit is contained in:
parent
a2b1ecd29f
commit
e064d6d9c3
@ -1,3 +1,7 @@
|
||||
2004-11-01 Paul Jakma <paul@dishone.st>
|
||||
|
||||
* sockopt.c: (setsockopt_pktinfo) remove, its unused.
|
||||
|
||||
2004-10-31 Paul Jakma <paul@dishone.st>
|
||||
|
||||
* vty.c: As per Andrew's suggestions..
|
||||
|
@ -255,33 +255,6 @@ setsockopt_ipv4_ifindex (int sock, int val)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* set appropriate pktinfo socket option
|
||||
* on systems without PKTINFO, sets RECVIF, which only retrieves
|
||||
* interface index.
|
||||
* Not portable for IPv4, use only setsockopt_ifindex for v4.
|
||||
*/
|
||||
static int
|
||||
setsockopt_pktinfo (int af, int sock, int val)
|
||||
{
|
||||
int ret = -1;
|
||||
|
||||
switch (af)
|
||||
{
|
||||
case AF_INET:
|
||||
/* _ifindex will use PKTINFO if available.. */
|
||||
ret = setsockopt_ipv4_ifindex (sock, val);
|
||||
break;
|
||||
#ifdef HAVE_IPV6
|
||||
case AF_INET6:
|
||||
ret = setsockopt_ipv6_pktinfo (sock, val);
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
zlog_warn ("setsockopt_pktinfo: unknown address family %d", af);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
setsockopt_ifindex (int af, int sock, int val)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user