method

ipv6_pktinfo_ifindex

Importance_1
v1_9_2_180 - Show latest stable - 0 notes - Class: AncillaryData
ipv6_pktinfo_ifindex() public

Extracts ifindex from IPV6_PKTINFO ancillary data.

IPV6_PKTINFO is defined by RFC 3542.

addr = Addrinfo.ip("::1")
ifindex = 0
ancdata = Socket::AncillaryData.ipv6_pktinfo(addr, ifindex)
p ancdata.ipv6_pktinfo_ifindex #=> 0
Show source
Register or log in to add new notes.