Dear all,
I open two raw sockets on a host to receive a packet (having a router alert option) destinated to that host (destination address is also host address). The protocol id is set 254.
The first one is set router alert option on setsockopt(sockfd, SOL_IP, IP_ROUTER_ALERT, &on, sizeof(on))
The second is not set router alert option and bind to the address to which the packet is sent.
It is amazing that I receive the packet on two sockets. I think I only receive the packet on the second socket because I bind it to the address. What should I do to receive the packet only on the second one ?
thanks,
nary tra
- : send the line "unsubscribe linux-net" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html