Re: Question relating to VLAN 802.1Q implementation.

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 20 Dec 1998 21:27:17 +0000 (GMT)


> First: There is a device struct found in <linux/netdevice.h>. It has
> a type field. After some grep'ing though the code, I think that this
> field must correspond to the values defined in <linux/if_arp.h>. Is
> this true? (Has anyone suggested moving a bunch of the #defines to
> enums??)

Why - a lot of them are constants with fixed values and value ranges,
a #define si clearer. also libc5 exposes them as #defines to user
space as bsd does

> If so, I think I need to add one to handle the VLAN type of device. Do
> I
> just get to pick my favorite un-used number, or are they defined in some
> standard somewhere?

If 802.1Q uses a blue book ID use that if not use th enext free value
below 1500

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/