Socket::AncillaryData.ip_pktinfo(addr, ifindex) => ancdata
Socket::AncillaryData.ip_pktinfo(addr, ifindex, spec_dst) => ancdata
Socket::AncillaryData.ip_pktinfo(addr, ifindex, spec_dst) => ancdata
Class Public methods
Returns new ancillary data for IP_PKTINFO.
If spec_dst is not given, addr is used.
IP_PKTINFO is not standard.
Supported platform: GNU/Linux
addr = Addrinfo.ip("127.0.0.1") ifindex = 0 spec_dst = Addrinfo.ip("127.0.0.1") p Socket::AncillaryData.ip_pktinfo(addr, ifindex, spec_dst) #=> #<Socket::AncillaryData: INET IP PKTINFO 127.0.0.1 ifindex:0 spec_dst:127.0.0.1>
Please login to continue.