I had by mistake posted in the C programming board,
http://cboard.cprogramming.com/showt...threadid=48181
Please take a look at the link and help me out.
Thanks.
I had by mistake posted in the C programming board,
http://cboard.cprogramming.com/showt...threadid=48181
Please take a look at the link and help me out.
Thanks.
Do you need to call:
Search: pf_packet packet filterCode:setsockopt(handle->fd, SOL_SOCKET, SO_ATTACH_FILTER, &fcode, sizeof(fcode))
With SO_ATTACH_FILTER you will have to specify the filter code but i want to block all IP packets and send only the packets, which may be useful.
(Definition of useful may be dependent on data and not on any header information)