[af_packet] Add new AF_PACKET driver for Linux
authorDavid Decotigny <ddecotig@gmail.com>
Fri, 20 Jan 2017 18:29:24 +0000 (10:29 -0800)
committerMichael Brown <mcb30@ipxe.org>
Sun, 22 Jan 2017 14:02:54 +0000 (14:02 +0000)
commitb6f524388ba5a02cf95ffa3fb3bfd5f0feae7bb6
tree977cf8b17d5449370f5bc8e9e6db309a5b10f558
parent04c7befa730b3a6bfed069d3c6f6539bddb0ee52
[af_packet] Add new AF_PACKET driver for Linux

This code largely inspired by tap.c.  Allows for testing iPXE on real
NICs from within Linux.  For example:

  make bin-x86_64-linux/af_packet.linux
  valgrind ./bin-x86_64-linux/af_packet.linux --net af_packet,if=eth3

Tested as x86_64 and i386 binary.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/core/linux/linux_api.c
src/drivers/linux/af_packet.c [new file with mode: 0644]
src/include/ipxe/errfile.h
src/include/linux_api.h