Re: Libnet under Win32 problem

Wesley Shields <[email protected]> Sun, 25 Apr 2004 12:49:50 -0400
Newsgroups gmane.comp.security.libnet
Message-ID <[email protected]>
On Sun, Apr 25, 2004 at 02:03:06PM -0000, Macleod Chang wrote:

> 
> 
> 
>  Hi,
>  I'm using Libnet under Win32 to do a stree test on my
>  network hardware. And found a problem of this. Thx!!
> 
>  OK!
>  =====================================================
>  libnet_init
>     :
>  while(1)
>   libnet_write
>     :
>  =====================================================
> 
>  Fail after couple of packets generated:
>  C:\libnet\src\libnet_if_addr.c(): no network interface found
>  +++++++++++++++++++++++++++++++++++++++++++++++++++++
>  while(1)
>  {
>   libnet_init
>      :
>   libnet_write
>      :
>   libnet_destroy
>  }
>  +++++++++++++++++++++++++++++++++++++++++++++++++++++

Try calling libnet_init outside of the loop.  If all you are doing is
sending the same packet just loop the libnet_write call.

-- WXS