Skip to content

Commit 1f8dce4

Browse files
Markus Pargmannsimonwunderlich
authored andcommitted
batman-adv: split tvlv into a separate file
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 <mpa@pengutronix.de> [sven@narfation.org: fix conflicts with current version, fix includes, rewrote commit message] Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
1 parent fcafa5e commit 1f8dce4

13 files changed

Lines changed: 700 additions & 625 deletions

‎net/batman-adv/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ batman-adv-y += send.o
4040
batman-adv-y += soft-interface.o
4141
batman-adv-y += sysfs.o
4242
batman-adv-y += translation-table.o
43+
batman-adv-y += tvlv.o

‎net/batman-adv/bat_iv_ogm.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
#include "routing.h"
5959
#include "send.h"
6060
#include "translation-table.h"
61+
#include "tvlv.h"
6162

6263
static void batadv_iv_send_outstanding_bat_ogm_packet(struct work_struct *work);
6364

‎net/batman-adv/bat_v_ogm.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#include "routing.h"
4747
#include "send.h"
4848
#include "translation-table.h"
49+
#include "tvlv.h"
4950

5051
/**
5152
* batadv_v_ogm_orig_get - retrieve and possibly create an originator node

‎net/batman-adv/distributed-arp-table.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
#include "originator.h"
4949
#include "send.h"
5050
#include "translation-table.h"
51+
#include "tvlv.h"
5152

5253
static void batadv_dat_purge(struct work_struct *work);
5354

‎net/batman-adv/gateway_common.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
#include "gateway_client.h"
3131
#include "packet.h"
32+
#include "tvlv.h"
3233

3334
/**
3435
* batadv_parse_throughput - parse supplied string buffer to extract throughput

0 commit comments

Comments
 (0)