dwc is right, IPV6_PKTINFO will work for IPv6 on Linux.
Moreover, IP_PKTINFO will work for IPv4 — you can see details in manpage ip(7)
More Related Contents:
- What is the difference between a port and a socket?
- What is the largest Safe UDP Packet Size on the Internet
- How does the socket API accept() function work?
- java.net.SocketException: Connection reset
- Programming P2P application
- When is TCP option SO_LINGER (0) required?
- How to communicate between Docker containers via “hostname”
- How to access Network panel on google chrome developer tools with selenium?
- UDP vs TCP, how much faster is it? [closed]
- What is the difference between 127.0.0.1 and localhost
- How to detect a remote side socket close? [duplicate]
- Basic Python client socket example
- What causes a TCP/IP reset (RST) flag to be sent?
- How to expose docker container’s ip and port to outside docker host without port mapping?
- How to find an available port?
- Windows Phone 8 emulator can’t connect to the internet
- Can TCP and UDP sockets use the same port?
- Sending a reset in TCP/IP Socket connection
- C# Begin/EndReceive – how do I read large data?
- Artificially create a connection timeout error
- Proper way to stop TcpListener
- ‘ab’ program freezes after lots of requests, why?
- How to reset a socket back to blocking mode (after I set it to nonblocking mode)?
- Java TCP socket: data transfer is slow
- Wireshark localhost traffic capture [closed]
- TCP vs UDP on video stream
- Valid characters of a hostname?
- How to avoid a NoRouteToHostException?
- TCP stream vs UDP message
- UDP broadcast packets across subnets