On Sunday, July 15, 2012 22:26:51 Sven Eckelmann wrote:
The structure batadv_priv grows everytime a new feature is introduced. It gets hard to find the parts of the struct that belongs to a specific feature. This becomes even harder by the fact that not every feature uses a prefix in the member name.
The variables for bridge loop avoidence, gateway handling, translation table and visualization server are moved into separate structs that are included in the bat_priv main struct.
Signed-off-by: Sven Eckelmann sven@narfation.org
v2:
- Fix some comments that were wrong since a long time
- Change some variables names for batadv_priv_tt
bat_iv_ogm.c | 4 +- bridge_loop_avoidance.c | 115 +++++++++++++------------- gateway_client.c | 32 ++++---- hard-interface.c | 5 +- main.c | 24 +++--- routing.c | 6 +- soft-interface.c | 17 ++-- translation-table.c | 208 ++++++++++++++++++++++++----------------------- types.h | 113 ++++++++++++++----------- vis.c | 130 ++++++++++++++--------------- 10 files changed, 343 insertions(+), 311 deletions(-)
Applied in revision fa49b57.
Thanks, Marek