ancdata.ipv6_pktinfo_addr => addr
Instance Public methods
Extracts addr from IPV6_PKTINFO ancillary data.
IPV6_PKTINFO is defined by RFC 3542.
1 2 3 4 | addr = Addrinfo.ip( "::1" ) ifindex = 0 ancdata = Socket::AncillaryData.ipv6_pktinfo(addr, ifindex) p ancdata.ipv6_pktinfo_addr #=> #<Addrinfo: ::1> |
Please login to continue.