Does Winsock support IPv6 extension headers?

六眼飞鱼酱① 提交于 2020-01-06 06:53:12

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/22933350/does-winsock-support-ipv6-extension-headers

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!