Building raw ethernet frame/packet

From: Eyal Rif (eyal_at_tera-chip.com)
Date: 02/27/04


Date: 27 Feb 2004 10:00:37 -0800

Hi,

I would like to build a custom packet over ethernet using libnet.
The packet in non-ip packet.
I saw the examples in libnet but they are all building an IP packets.

should i use the "raw socket interface" or "link layer interface" ?
what is the best library to perform this task libnet/libdnet/netwib ?

Any help/suggestion would be appreciated.....

Thanks,



Relevant Pages

  • Security Bugware Announcement
    ... Subject: Security Bugware Announcement ... Now on Libnet, this network packet construction library was initially released ... However the gcc build provided (via cygwin compiler) missed ...
    (Bugtraq)
  • Re: fragmentation and sendip or hping2 with Linux
    ... > If you want to do some serious packet generation, ... > fairly easy to write a small program to generate the packet you want. ... Thanks for the reply - I've not attempted using libnet because I'm ... Slackware rather than RedHat Fedora and, lo and behold, it works fine. ...
    (comp.os.linux.networking)
  • Re: fragmentation and sendip or hping2 with Linux
    ... > If you want to do some serious packet generation, ... > fairly easy to write a small program to generate the packet you want. ... Thanks for the reply - I've not attempted using libnet because I'm ... Slackware rather than RedHat Fedora and, lo and behold, it works fine. ...
    (comp.os.linux.security)
  • Re: Libnet/Pcap Performance
    ... I need to implement some sort of tcp/udp/ip header compression ... packet sniffing and generation. ... I in fact do want to alter the packets - what I'm planning to do is modify the application to use the libnet and libpcap libraries when it needs to do any data transmission. ...
    (comp.programming)
  • Building a custom non-ip packet with libnet
    ... I would like to build a custom packet over ethernet using libnet. ... The packet in non-ip packet. ... I saw the examples in libnet but they are all building an IP packets. ...
    (comp.os.linux.networking)