On Saturday, April 20, 2013 00:07:00 Antonio Quartulli wrote:
From: Antonio Quartulli antonio@open-mesh.com
In order to make batman-adv fully vlan aware later, the semantic used for variables storing the VLAN ID values has to be changed in order to be adapted to the new one which will be used batman-adv wide.
In particular, the VID has to be an "_unsigned_ short int" and its 4 MSB will be used as a flag bitfield, while the remaining 12 bits are used to store the real VID value
Cc: Simon Wunderlich siwu@hrz.tu-chemnitz.de Signed-off-by: Antonio Quartulli antonio@open-mesh.com
v3:
- don't change the print format (keep %d)
- added a couple of fixes to debug messages
bridge_loop_avoidance.c | 50 +++++++++++++++++++++++++------------------------ bridge_loop_avoidance.h | 12 +++++++----- main.h | 11 +++++++++++ soft-interface.c | 4 ++-- types.h | 4 ++-- 5 files changed, 48 insertions(+), 33 deletions(-)
Applied in revision 0b1da17.
Thanks, Marek