SOLVED ...Re: libnet_write

[email protected] Thu, 24 Jun 2004 17:34:11 +0530
Newsgroups gmane.comp.security.libnet
Message-ID <[email protected]>



Hi,

   Well, now my libnet_write doesnt return a -EPERM in the code fragment I
sent, and I also understand after looking at the libnet code that the
setsockopt is done in a for loop always to get as big a send buffer as
possible, I am using libnet on kernel 2.4.20-8. So, that was not a problem.
But I had written a module that was dropping raw ip packets coming from the
application and hence libnet_write returned a EPERM error. libnet_write
internally uses a sendto, so basically the sendto returned a -EPERM.
So, that means i drop any packet coming from a socket then sendto returns a
-1, or sendto returns only when the buffer it had requested to be sent goes
out of IP ..I didnt know this ;-)

thanks very much
Amit