开发者

Winsock Join MAC ADDRESS Multicast group

开发者 https://www.devze.com 2022-12-17 04:51 出处:网络
Is there a way to join an Ethernet multicast group?All documentation I found is about adding an IP group.

Is there a way to join an Ethernet multicast group? All documentation I found is about adding an IP group.

I just want to receive the Cisco CDP packet that is sent to the MAC address 01:00:0c开发者_运维百科:cc:cc:cc.


The OID part of the MAC address you give (01:00:0C) isn't the same as the one used for IPv4 multicast (01:00:5E), so you can't use anything in Winsock to send this packet. Even raw sockets won't work, because that doesn't let you dig down to the Ethernet layer.

What you need is WinPCap or something like it, with which you can construct raw Ethernet frames and receive answering packets at that same level.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号