diff options
| -rw-r--r-- | src/include/ipxe/vlan.h | 2 | ||||
| -rw-r--r-- | src/net/vlan.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/include/ipxe/vlan.h b/src/include/ipxe/vlan.h index c9a9821a2..d9f4484e6 100644 --- a/src/include/ipxe/vlan.h +++ b/src/include/ipxe/vlan.h @@ -59,6 +59,8 @@ struct vlan_header { */ #define VLAN_PRIORITY_IS_VALID( priority ) ( (priority) <= 7 ) +extern struct net_device * vlan_find ( struct net_device *trunk, + unsigned int tag ); extern int vlan_can_be_trunk ( struct net_device *trunk ); extern int vlan_create ( struct net_device *trunk, unsigned int tag, unsigned int priority ); diff --git a/src/net/vlan.c b/src/net/vlan.c index 4440fd84f..9ac560f1e 100644 --- a/src/net/vlan.c +++ b/src/net/vlan.c @@ -193,8 +193,7 @@ static void vlan_sync ( struct net_device *netdev ) { * @v tag VLAN tag * @ret netdev VLAN device, if any */ -static struct net_device * vlan_find ( struct net_device *trunk, - uint16_t tag ) { +struct net_device * vlan_find ( struct net_device *trunk, unsigned int tag ) { struct net_device *netdev; struct vlan_device *vlan; |
