mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
Merge 69d4cbc055
into 3dd4d417be
This commit is contained in:
commit
2f1fc8d349
|
@ -179,6 +179,8 @@ static int getsockopt_ipv6_ifindex(struct msghdr *msgh)
|
|||
|
||||
pktinfo = getsockopt_cmsg_data(msgh, IPPROTO_IPV6, IPV6_PKTINFO);
|
||||
|
||||
if (!pktinfo)
|
||||
return 0;
|
||||
return pktinfo->ipi6_ifindex;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue