From 128d31d34220192c27c2d1d8eff91e0471c5237c Mon Sep 17 00:00:00 2001 From: hasso Date: Sun, 4 Apr 2004 12:52:33 +0000 Subject: [quagga-dev 1005] bugzilla #86: ospf_recv_packet will fail on Solaris/x86 --- ospfd/ospf_packet.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ospfd/ospf_packet.c') diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c index 528e8d38..1f8ecd46 100644 --- a/ospfd/ospf_packet.c +++ b/ospfd/ospf_packet.c @@ -2018,8 +2018,12 @@ ospf_recv_packet (int fd, struct interface **ifp) pktinfo = (struct in_pktinfo *)CMSG_DATA(cmsg); ifindex = pktinfo->ipi_ifindex; #elif defined (IP_RECVIF) +#ifdef SUNOS_5 + ifindex = *(uint_t *)CMSG_DATA(cmsg); +#else pktinfo = (struct sockaddr_dl *)CMSG_DATA(cmsg); ifindex = pktinfo->sdl_index; +#endif /* SUNOS_5 */ #else ifindex = 0; #endif -- cgit v1.2.1