Networking Forums

Networking Forums > Computer Networking > Linux Networking > libnet

Reply
 
 
Benjamin Menküc
Guest
Posts: n/a

 
      01-17-2005, 08:56 PM
Hi,

how can I access the raw data of the packets I have constructed with libnet?
I don't want to send those packets over an ip-Interface, I just want to have
them as binary data.

regards,
Ben


 
Reply With Quote
 
 
 
 
Tauno Voipio
Guest
Posts: n/a

 
      01-18-2005, 08:05 AM
Benjamin Menküc wrote:
> Hi,
>
> how can I access the raw data of the packets I have constructed with libnet?
> I don't want to send those packets over an ip-Interface, I just want to have
> them as binary data.
>


How about sending them via a tun/tap interface and reading
from the character device side?

--

Tauno Voipio
tauno voipio (at) iki fi

 
Reply With Quote
 
Benjamin Menküc
Guest
Posts: n/a

 
      01-19-2005, 06:03 PM
Hi,

that would be possible, but not very nice, since I am using already a tun
device, an I would have to create a 2nd. If I want to use the IP-Layer, I
would also have to assign an ip to the tun device

regards,
Benjamin


 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      01-19-2005, 06:41 PM
Benjamin Menküc wrote:
> Hi,
>
> that would be possible, but not very nice, since I am using already a tun
> device, an I would have to create a 2nd. If I want to use the IP-Layer, I
> would also have to assign an ip to the tun device
>


That's right. So what? Just do it.

You have to pick the packets from the stream anyway, so
why not assigning an own subnet and routing them there?

If the packets are going to another interface, you can
use libpcap (& tcpdump, ethereal) to sniff them.

--

Tauno Voipio
tauno voipio (at) iki fi

 
Reply With Quote
 
Benjamin Menküc
Guest
Posts: n/a

 
      01-21-2005, 04:37 PM
Hi,

if I did it that way, the ip packets would have the target address of my tun
device, an thats not what I want.

regards,
Benjamin


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Libnet problem =?iso-8859-1?q?Mike_Kn=F6ffler?= Linux Networking 0 06-13-2005 10:56 AM
Can't ./configure Nemsis and Libnet elvis.gregov@emergis.com Linux Networking 0 04-18-2005 01:33 PM
Need libnet.so for libnet 1.1.x for FC1 or RH9 Ray Shea Linux Networking 0 09-23-2004 07:21 PM
Building a custom non-ip packet with libnet Eyal Rif Linux Networking 0 02-27-2004 04:56 PM



1 2 3 4 5 6 7 8 9 10 11