From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Sat, 20 Apr 2013 00:52:19 +0800 References: <1366387621-12718-1-git-send-email-ordex@autistici.org> In-Reply-To: <1366387621-12718-1-git-send-email-ordex@autistici.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201304200052.19401.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCHv3 1/2] batman-adv: change VID semantic in the BLA code Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: b.a.t.m.a.n@lists.open-mesh.org Cc: Simon Wunderlich , Antonio Quartulli , Antonio Quartulli On Saturday, April 20, 2013 00:07:00 Antonio Quartulli wrote: > From: Antonio Quartulli > > 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 > Signed-off-by: Antonio Quartulli > --- > > 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