This commit is contained in:
gonzalef 2020-03-13 13:25:25 +01:00
parent 188f9547c7
commit bbd4412cf3

38
tlv.h
View File

@ -15,55 +15,55 @@ typedef union tlv {
} tlv;
typedef struct pad1 {
char type;
unsigned unsigned char type;
} pad1;
typedef struct padn {
char type;
char length;
unsigned char type;
unsigned char length;
char *mbz;
} padn;
typedef struct neighbour_req {
char type;
char length;
unsigned char type;
unsigned char length;
} neighbour_req;
typedef struct neighbour {
char type;
char length;
unsigned char type;
unsigned char length;
struct in6_addr ip;
short port;
} neighbour;
typedef struct network_hash {
char type;
char length;
unsigned char type;
unsigned char length;
char *network_hash;
} network_hash;
typedef struct network_state_req {
char type;
char length;
unsigned char type;
unsigned char length;
} network_state_req;
typedef struct node_hash {
char type;
char length;
unsigned char type;
unsigned char length;
long node_id;
short seqno;
char *node_hash;
} node_hash;
typedef struct node_state_req {
char type;
char length;
unsigned char type;
unsigned char length;
long node_id;
} node_state_req;
typedef struct node_state {
char type;
char length;
unsigned char type;
unsigned char length;
long node_id;
short seqno;
char *node_hash;
@ -71,8 +71,8 @@ typedef struct node_state {
} node_state;
typedef struct warning {
char type;
char length;
unsigned char type;
unsigned char length;
char *message;
} warning;