On Mon, May 27, 2013 at 09:43:12PM +0200, Antonio Quartulli wrote:
From: Antonio Quartulli antonio@open-mesh.com
Nodes may need to handle the TT table on a per-VLAN basis, meaning that a node may want to filter a received table and get only entries belonging to certain VLANs.
When doing so, such node would re-create only a partial global table and would not be able to compute a correct CRC anymore.
This patch splits the logic and introduces one CRC per VLAN. In this way a node fetching only some entries belonging to some VLANs is still able to compute the specific CRCs and check table correctness.
With this patch the shape of the TVLV-TT is changed too because now a node needs to advertise all the CRCs of all the VLANs that it is wired to.
To make the code simpler, also the normal LAN (bat0) is now considered to be a VLAN having no tag.
Signed-off-by: Antonio Quartulli antonio@open-mesh.com
For the next round I separated this patch in two:
1) introduces the VLAN generalisation 2) introduces the per-VLAN crc logic.
Cheers,