Subject: Re: data link access mechanism?
To: None <tech-net@netbsd.org>
From: Michael Richardson <mcr@sandelman.ottawa.on.ca>
List: tech-net
Date: 11/24/2001 00:24:36
-----BEGIN PGP SIGNED MESSAGE-----


>>>>> "der" == der Mouse <mouse@Rodents.Montreal.QC.CA> writes:
    der> As for the ether_input() interface, what you really want is something
    der> tun(4)-like but that works at the Ethernet level rather than the IP
    der> level.  You could probably start by copying if_tun.c and hacking on it
    der> to use ether_input rather than enqueueing stuff on ipintrq....
  
  I suggest hacking tun.c itself, and use TUN_PREPADDR.

  Add another case to the switch on dst.sa_family.
  I made it IPv6 happy at one point (Hmm.... did I ever commit those patches?)

  A new AF_ type would appear to be needed from a quick look at sys/socket.h, 
but I don't see why we should have a way to address things as "EthernetII".

]       ON HUMILITY: to err is human. To moo, bovine.           |  firewalls  [
]   Michael Richardson, Sandelman Software Works, Ottawa, ON    |net architect[
] mcr@sandelman.ottawa.on.ca http://www.sandelman.ottawa.on.ca/ |device driver[
] panic("Just another NetBSD/notebook using, kernel hacking, security guy");  [

  
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: latin1
Comment: Finger me for keys

iQCVAwUBO/8vBYqHRg3pndX9AQEfrwP/QNvI0mhhcHiq4lOSXJzxey7a303Unh0q
itlljVvvGi+t/FRr8hBDmMnpit1OhmAwRkvrtAjDz2LeovdcW0A/x2PcLyew8gev
R765CuW/JLhTDH9FwGAWLpnnqgErv6mgHLT6ZZI/GlaPP79QtiCsz40GjslrLcoB
f5e4OdAj88g=
=0P96
-----END PGP SIGNATURE-----