2

I used a Raw Socket(IPv6) to send/receive ICMP packets. It works fine to send ping request(type 128) and receive ping receive(type 129) packets. And it also works well to send Neighbor Solicitation(type 135).

But the same socket always cannot receive the Neighbor Advertisement(NA) packet. I'm not sure is there any socket opts should be set in my case? Thanks for help.

after set "RCVALL_ON" to socket, the NA packet can be recieved from socket. Is this means that the NA packet only can be received in this way?

J2.NETe
  • 71
  • 1
  • 5
  • You could also try limiting it to "RCVALL_IPLEVEL", since NAs are addressed to all-nodes multicast or your unicast address. The host should be listening to both. – thuovila Feb 05 '13 at 08:10
  • if the NA packet send to my unicast address, I still need to set "RCVALL_IPLEVEL"? – J2.NETe Feb 05 '13 at 08:24
  • I dont know. Maybe you can try it, since you mentioned already successfully sending NS messages. Send an NS from the host where your code is running and see if the code captures the reply. – thuovila Feb 05 '13 at 09:00
  • Would you care to show some actual code? – ldx Feb 05 '13 at 09:03

0 Answers0