diff options
author | David Decotigny | 2017-01-20 19:29:24 +0100 |
---|---|---|
committer | Michael Brown | 2017-01-22 15:02:54 +0100 |
commit | b6f524388ba5a02cf95ffa3fb3bfd5f0feae7bb6 (patch) | |
tree | 977cf8b17d5449370f5bc8e9e6db309a5b10f558 /src/include/ipxe/errfile.h | |
parent | [build] Return const char * from uuid_ntoa() (diff) | |
download | ipxe-b6f524388ba5a02cf95ffa3fb3bfd5f0feae7bb6.tar.gz ipxe-b6f524388ba5a02cf95ffa3fb3bfd5f0feae7bb6.tar.xz ipxe-b6f524388ba5a02cf95ffa3fb3bfd5f0feae7bb6.zip |
[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>
Diffstat (limited to 'src/include/ipxe/errfile.h')
-rw-r--r-- | src/include/ipxe/errfile.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ipxe/errfile.h b/src/include/ipxe/errfile.h index d0b93d02..1a037b10 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 ) |