summaryrefslogtreecommitdiff
path: root/zebra/irdp_main.c
diff options
context:
space:
mode:
authorpaul <paul>2004-07-23 15:25:01 +0000
committerpaul <paul>2004-07-23 15:25:01 +0000
commit1470bafb7aa179dad7dc4bdc998d68c14752f824 (patch)
tree4ad15e51d3ebd1e731385919ac4c0f6e5f29287d /zebra/irdp_main.c
parentcaa248198ad276f5edc9065e6c416e7f864ef7fa (diff)
2004-07-23 Paul Jakma <paul@dishone.st>
* irdp_main.c: use setsockopt_pktinfo_ipv4 * irdp_packet.c: use SOPT_SIZE_CMSG_PKTINFO_IPV4 and getsockopt_pktinfo_ifindex()
Diffstat (limited to 'zebra/irdp_main.c')
-rw-r--r--zebra/irdp_main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/zebra/irdp_main.c b/zebra/irdp_main.c
index 56e41840..fd56c881 100644
--- a/zebra/irdp_main.c
+++ b/zebra/irdp_main.c
@@ -124,9 +124,7 @@ irdp_sock_init (void)
return ret;
};
- i = 1;
- ret = setsockopt (irdp_sock, IPPROTO_IP, IP_PKTINFO,
- (void *) &i, sizeof (i));
+ ret = setsockopt_pktinfo_ipv4 (irdp_sock, 1);
if (ret < 0) {
zlog_warn ("IRDP: can't do irdp sockopt %s", strerror(errno));
return ret;