Does Winsock support IPv6 extension headers?

2019-08-30 01:42发布

Is it possible to look at (and modify) IPv6 extension headers with Winsock using C/ C++? What API's allow us to do that?

标签: winsock ipv6
1条回答
Lonely孤独者°
2楼-- · 2019-08-30 02:17

IPv6 headers are not received using Raw Sockets on Winsock. As this MSDN page says

For IPv6 (address family of AF_INET6), an application receives everything after the last IPv6 header in each received datagram regardless of the IPV6_HDRINCL socket option. The application does not receive any IPv6 headers using a raw socket.

In other words, it's not possible to receive and modify IPv6 headers (or extension headers) using Winsock.

查看更多
登录 后发表回答