PF_PACKET Socket



Hi,

I am munish and i need your help to solcve one problem!!
I am using PF_PACKET socket to create an socket as follow:-

fd=socket(PF_PACKET,SOCK_DGRAM,ETH_P_IP);

and then i am using bind() system call to bind it to MUlticast Ip and
it is failing...
next thing is
i am using recvfrom() call to recieve packets. is this correct!!!

My kernel is compiled with MMAP packet capture option...please help me
to find out where i am wrong why i am still not getting the packet at
high speed

The performance for AF_INET sockets and PF_PACKET socket is same i am
receiveing using recvfrom(), do i am missing any teps.

I will really appreciate any help to me to solve this!1

thanks,
Munish


--
"If we fight, we may not always win, but if we don't fight, we will
surely lose."

.



Relevant Pages