File tree 4 files changed +19
-49
lines changed
4 files changed +19
-49
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ LOG_BRANCH = trunk/batman
65
65
SRC_FILES = "\(\.c\)\|\(\.h\)\|\(Makefile\)\|\(INSTALL\)\|\(LIESMICH\)\|\(README\)\|\(THANKS\)\|\(TRASH\)\|\(Doxyfile\)\|\(./posix\)\|\(./linux\)\|\(./bsd\)\|\(./man\)\|\(./doc\)"
66
66
67
67
SRC_C = batman.c originator.c schedule.c list-batman.c allocate.c bitarray.c hash.c profile.c ring_buffer.c hna.c $(OS_C )
68
- SRC_H = batman.h originator.h schedule.h list-batman.h os.h allocate.h bitarray.h hash.h profile.h packet.h types.h vis-types.h ring_buffer.h hna.h
68
+ SRC_H = batman.h originator.h schedule.h list-batman.h os.h allocate.h bitarray.h hash.h profile.h packet.h types.h ring_buffer.h hna.h
69
69
SRC_O = $(SRC_C:.c=.o )
70
70
71
71
PACKAGE_NAME = batmand
Original file line number Diff line number Diff line change 38
38
#include "hash.h"
39
39
#include "allocate.h"
40
40
#include "profile.h"
41
- #include "vis-types.h"
42
41
#include "ring_buffer.h"
43
42
44
43
#define SOURCE_VERSION "0.4-alpha" /* put exactly one distinct word inside the string like "0.3-pre-alpha" or "0.3-rc1" or "0.3" */
Original file line number Diff line number Diff line change 20
20
*/
21
21
22
22
#define COMPAT_VERSION 5
23
+ #define VIS_COMPAT_VERSION 23
24
+
25
+ #define DATA_TYPE_NEIGH 1
26
+ #define DATA_TYPE_SEC_IF 2
27
+ #define DATA_TYPE_HNA 3
23
28
24
29
#define PORT 4305
25
30
#define GW_PORT 4306
@@ -39,3 +44,16 @@ struct bat_packet
39
44
uint8_t tq ;
40
45
uint8_t hna_len ;
41
46
} __attribute__((packed ));
47
+
48
+ struct vis_packet {
49
+ uint32_t sender_ip ;
50
+ uint8_t version ;
51
+ uint8_t gw_class ;
52
+ uint8_t tq_max ;
53
+ } __attribute__((packed ));
54
+
55
+ struct vis_data {
56
+ uint8_t type ;
57
+ uint8_t data ;
58
+ uint32_t ip ;
59
+ } __attribute__((packed ));
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments