hi all,


Im writing a recorder software which uses raw sockets ( Multicast Packets).

actually wot im doin is that i join the network and collect the packets and write them to a file.

but im getting a copy of all the packets.

my need is that i must get only the packet of that particular multicats IP i need with the header.

1.is there any way thro ordinary sockets i can extract the header too.

2. or thro rawsockets can i get only the packets i need


i read that the kernel gives a copy of the packet to all th rawsockets qwhich are opened at the same time. is there any way to eliminate this so that only the packet the socket needs will be provided to it.


Thanx in Advance