[845] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: Raw Packets

daemon@ATHENA.MIT.EDU (Rob Janssen reading Linux mailingl)
Sat Aug 5 10:33:44 1995

From: linux@pe1chl.ampr.org (Rob Janssen reading Linux mailinglist)
To: andrew@andy.alt.za (Andrew Cameron)
Date: Sat, 5 Aug 1995 13:22:49 +0200 (MET DST)
Cc: linux-net@vger.rutgers.edu
In-Reply-To: <Pine.LNX.3.91.950804200236.74B-100000@andy.alt.za> from "Andrew Cameron" at Aug 4, 95 08:09:20 pm
Reply-To: linux-vger@wab-tis.rabobank.nl

According to Andrew Cameron:
> I would like to know how to send a raw packet onto an ethernet lan  with 
> Linux. 
> 
> The format I want is 
> 
> write_raw(Source_Ether_Addr,Dest_Ether_Address,data,datalen)
> and
> read_raw(Source_Ether_Addr,Dest_Ether_Address,data,datalen)
> 
> I want to be able to communicate between various Systems based only on 
> their Ethernet address. The data can be encrypted or unencrypted.

Normal practice on Ethernet is to use an "Ethertype" (protocol ID) in
addition to the source and destination addresses.  This is considered
part of the addressing, as it is used to demultiplex the incoming traffic
on the destination system.

> Are there any routines available to do this kind of thing and if so where 
> can I find them.

Look in the DOSEMU sources, in the "net" subdirectory.
There is a packet driver emulation in DOSEMU which send/receives raw
packets as well.

Rob

-- 
+------------------------------------+--------------------------------------+
| Rob Janssen         rob@knoware.nl | AMPRnet:   rob@pe1chl.ampr.org       |
| e-mail: pe1chl@wab-tis.rabobank.nl | AX.25 BBS: PE1CHL@PI8WNO.#UTR.NLD.EU |
+------------------------------------+--------------------------------------+

home help back first fref pref prev next nref lref last post