From: Michael Richardson Subject: Re: Best way to hook incoming eth pkts? Date: Wed, 20 Aug 2003 13:49:28 -0400 Sender: netdev-bounce@oss.sgi.com Message-ID: <6756.1061401768@marajade.sandelman.ottawa.on.ca> References: <20030820154727.GB9119@gtf.org> Mime-Version: 1.0 (generated by tm-edit 1.8) Content-Type: text/plain; charset=US-ASCII Return-path: To: netdev@oss.sgi.com In-reply-to: Your message of "Wed, 20 Aug 2003 11:47:27 EDT." <20030820154727.GB9119@gtf.org> Errors-to: netdev-bounce@oss.sgi.com List-Id: netdev.vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- >>>>> "Jeff" == Jeff Garzik writes: Jeff> Essentially, all the things mentioned above need some way to listen Jeff> for incoming ethernet packets. ATA-over-ethernet has its own Jeff> IANA-registered ethernet type, but netconsole and netdump are using Jeff> IP/UDP instead of a custom ethernet protocol. Jeff> So, two questions for the gurus of the crowd ;-) Jeff> 1) What is the best way for an in-kernel piece of software to Jeff> receive ethernet packets that are intended for it? For ethernet protocols, you can just register the protocol handler, and you will get them. Jeff> 2) Possibly related to #1, is it a good or bad idea to consider Jeff> sending netconsole/netdump directly over ethernet, eschewing the Jeff> IP/UDP/syslog stuff? netconsole makes me really nervous, and I'd rather it was not over IP. (If you need a far-away remote console, then get another box with multiple serial ports + SSH, or get an Annex, or...) Another thing which would like UDP packets is the IPsec NAT-T stuff. It is even weirder, because some packets need to be *returned* to the UDP socket. (I didn't design this protocol, and argued against putting the ESP and IKE traffic on the same port, but I lost that argument. I would have prefered to implement Teredo, and then do IPv4-ESP-IPv6-UDP-IPv4 instead, since it would encourage IPv6) ] Out and about in Ottawa. hmmm... beer. | 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 Debian/notebook using, kernel hacking, security guy"); [ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Finger me for keys - custom hacks make this fully PGP2 compat iQCVAwUBP0O0p4qHRg3pndX9AQGjoAP/R37iSdbaK2aWqAwPZvY1DQ9JVSGdk+bq RBhtuixa3V2SC/kqacw6eUf4gbEMZZgtA0IP4tP0vYXYv3eIUBeB4wJGTBD7Sezn Tzwc1hJo/Eplbts+kirAM1DJ9Oh8/2HVVWvEQbyGvOqAE2WKzRrQYiCDuyuarH/F ksardhGJKcM= =daOJ -----END PGP SIGNATURE-----