Skip to content

Commit

Permalink
batman-adv: split tvlv into a separate file
Browse files Browse the repository at this point in the history
The tvlv functionality in main.c is mostly unrelated to the rest of the
content. It still takes up a large portion of this source file (~45%, 588
lines). Moving it to a separate file makes it better visible as a main
component of the batman-adv implementation and hides it less in the other
helper functions in main.c

Signed-off-by: Markus Pargmann <[email protected]>
[[email protected]: fix conflicts with current version, fix includes,
rewrote commit message]
Signed-off-by: Sven Eckelmann <[email protected]>
Signed-off-by: Marek Lindner <[email protected]>
Signed-off-by: Simon Wunderlich <[email protected]>
  • Loading branch information
Markus Pargmann authored and simonwunderlich committed Jun 30, 2016
1 parent fcafa5e commit 1f8dce4
Show file tree
Hide file tree
Showing 13 changed files with 700 additions and 625 deletions.
1 change: 1 addition & 0 deletions net/batman-adv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ batman-adv-y += send.o
batman-adv-y += soft-interface.o
batman-adv-y += sysfs.o
batman-adv-y += translation-table.o
batman-adv-y += tvlv.o
1 change: 1 addition & 0 deletions net/batman-adv/bat_iv_ogm.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
#include "routing.h"
#include "send.h"
#include "translation-table.h"
#include "tvlv.h"

static void batadv_iv_send_outstanding_bat_ogm_packet(struct work_struct *work);

Expand Down
1 change: 1 addition & 0 deletions net/batman-adv/bat_v_ogm.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include "routing.h"
#include "send.h"
#include "translation-table.h"
#include "tvlv.h"

/**
* batadv_v_ogm_orig_get - retrieve and possibly create an originator node
Expand Down
1 change: 1 addition & 0 deletions net/batman-adv/distributed-arp-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#include "originator.h"
#include "send.h"
#include "translation-table.h"
#include "tvlv.h"

static void batadv_dat_purge(struct work_struct *work);

Expand Down
1 change: 1 addition & 0 deletions net/batman-adv/gateway_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include "gateway_client.h"
#include "packet.h"
#include "tvlv.h"

/**
* batadv_parse_throughput - parse supplied string buffer to extract throughput
Expand Down
Loading

0 comments on commit 1f8dce4

Please sign in to comment.