From ae0124cd404c0ee25152bef70bee9e2030054ce7 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 27 Aug 2013 16:28:54 +0100 Subject: [linux] Give tap devices a name and bus type Give tap devices a meaningful name, and avoid segmentation faults when attempting to retrieve ${net0/bustype} by assigning a new bus type for tap devices. Signed-off-by: Michael Brown --- src/include/ipxe/device.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include') diff --git a/src/include/ipxe/device.h b/src/include/ipxe/device.h index 435af6ecf..c59697c03 100644 --- a/src/include/ipxe/device.h +++ b/src/include/ipxe/device.h @@ -54,6 +54,9 @@ struct device_description { /** ISA bus type */ #define BUS_TYPE_ISA 5 +/** TAP bus type */ +#define BUS_TYPE_TAP 6 + /** A hardware device */ struct device { /** Name */ -- cgit v1.2.3-55-g7522