Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在windows上捕获ICMPv6邻居广告包(136)?_Windows_Sockets_Icmp - Fatal编程技术网

如何在windows上捕获ICMPv6邻居广告包(136)?

如何在windows上捕获ICMPv6邻居广告包(136)?,windows,sockets,icmp,Windows,Sockets,Icmp,我已经创建了一个IPV6 SOCK_原始套接字来捕获NA数据包。为了启用混杂模式,我使用了函数WSAIoctl,其中SIO_RCVALL control code和RCVALL_ON作为选项值,但该函数返回SOCKET_ERROR和10022(无效参数)错误代码 经过一些研究,发现问题出在Windows XP上。我的代码在Windows7上运行良好。Windows XP不允许IPv6原始套接字绑定到其IPv6地址,因此WSAIoctl不会在接口上启用混杂模式。您可能需要额外的权限才能将接口置于混

我已经创建了一个IPV6 SOCK_原始套接字来捕获NA数据包。为了启用混杂模式,我使用了函数WSAIoctl,其中SIO_RCVALL control code和RCVALL_ON作为选项值,但该函数返回SOCKET_ERROR和10022(无效参数)错误代码


经过一些研究,发现问题出在Windows XP上。我的代码在Windows7上运行良好。Windows XP不允许IPv6原始套接字绑定到其IPv6地址,因此WSAIoctl不会在接口上启用混杂模式。

您可能需要额外的权限才能将接口置于混杂模式。SOCK\u原始套接字需要管理员权限。