netdev
[Top] [All Lists]

Creating L2 frames / IPV6 packets from scratch

To: <netdev@xxxxxxxxxxx>
Subject: Creating L2 frames / IPV6 packets from scratch
From: Pekka Savola <pekkas@xxxxxxxxxx>
Date: Fri, 18 May 2001 22:59:16 +0300 (EEST)
Sender: owner-netdev@xxxxxxxxxxx
Hi,

I was checking out v6test of KAME project which can be used to create
arbitrary IPv6 packets beginning from Ethernet frames rather easily:

http://orange.kame.net/dev/cvsweb.cgi/kame/kame/kame/v6test/

This would enable better testing for the handling of special IPv6 cases.


The problem is that it creates the frames by opening /dev/bpf read-write
and shoving data there directly.

Linux equivalent of BPF can only be used for reading packets, not writing
them.  Libpcap is not of much help either.  Raw sockets man page only
mentions IPv4.

Is there an easy facility for creating, and sending, L2 frames / IPv6
packets from scratch?


(Btw, if you know of other utils to create arbitrary IPv6 packets easily,
please let me know)

-- 
Pekka Savola                 "Tell me of difficulties surmounted,
Netcore Oy                   not those you stumble over and fall"
Systems. Networks. Security.  -- Robert Jordan: A Crown of Swords


<Prev in Thread] Current Thread [Next in Thread>