summaryrefslogtreecommitdiff
path: root/lib/sockopt.c
diff options
context:
space:
mode:
authorpaul <paul>2004-11-01 08:59:21 +0000
committerpaul <paul>2004-11-01 08:59:21 +0000
commite064d6d9c3c3319c62fe4fac3e4e5f7a1941a98c (patch)
tree838df17a38028d8f4afe496f0a2335a0f6945c21 /lib/sockopt.c
parenta2b1ecd29f8bd4b01d5287ff862e156b2ffc30b3 (diff)
2004-11-01 Paul Jakma <paul@dishone.st>
* sockopt.c: (setsockopt_pktinfo) remove, its unused.
Diffstat (limited to 'lib/sockopt.c')
-rw-r--r--lib/sockopt.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/sockopt.c b/lib/sockopt.c
index 1d4063a6..78e34bb1 100644
--- a/lib/sockopt.c
+++ b/lib/sockopt.c
@@ -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)
{