From b6f524388ba5a02cf95ffa3fb3bfd5f0feae7bb6 Mon Sep 17 00:00:00 2001 From: David Decotigny Date: Fri, 20 Jan 2017 10:29:24 -0800 Subject: [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 --- src/include/ipxe/errfile.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include/ipxe') diff --git a/src/include/ipxe/errfile.h b/src/include/ipxe/errfile.h index d0b93d02f..1a037b10e 100644 --- a/src/include/ipxe/errfile.h +++ b/src/include/ipxe/errfile.h @@ -194,6 +194,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #define ERRFILE_pciea ( ERRFILE_DRIVER | 0x00c00000 ) #define ERRFILE_axge ( ERRFILE_DRIVER | 0x00c10000 ) #define ERRFILE_thunderx ( ERRFILE_DRIVER | 0x00c20000 ) +#define ERRFILE_af_packet ( ERRFILE_DRIVER | 0x00c30000 ) #define ERRFILE_aoe ( ERRFILE_NET | 0x00000000 ) #define ERRFILE_arp ( ERRFILE_NET | 0x00010000 ) -- cgit v1.2.3-55-g7522