Hi Fabian, Fabian Knittel wrote: > >> +#define OPENVPN_8021Q_MAX_VID 0xFFFE > > > > The max VID in 802.1q is 4095 = 0xfff. > > You are absolutely correct. Thanks for catching that. I intended > it to say 0xFFE, because the standard talks about VID values being > valid within the range 0 through 4094 [1].
Aha! > But OPENVPN_8021Q_MASK_VID should definitely be defined as 0xFFF, > as the bit field is 12 bits. Right. > VID == 0xFFF is "Reserved for implementation use." and "shall not > be configured as PVID [...] or transmitted in a tag header." [2] > But I'm not sure whether it's used in reality and if you'd like > that value to be accepted, I have no objections. I think it's good to play along with the standards, so I like MAX 0xffe too. > Thanks again for reviewing! You're welcome! //Peter