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; } tlv;
typedef struct pad1 { typedef struct pad1 {
char type; unsigned unsigned char type;
} pad1; } pad1;
typedef struct padn { typedef struct padn {
char type; unsigned char type;
char length; unsigned char length;
char *mbz; char *mbz;
} padn; } padn;
typedef struct neighbour_req { typedef struct neighbour_req {
char type; unsigned char type;
char length; unsigned char length;
} neighbour_req; } neighbour_req;
typedef struct neighbour { typedef struct neighbour {
char type; unsigned char type;
char length; unsigned char length;
struct in6_addr ip; struct in6_addr ip;
short port; short port;
} neighbour; } neighbour;
typedef struct network_hash { typedef struct network_hash {
char type; unsigned char type;
char length; unsigned char length;
char *network_hash; char *network_hash;
} network_hash; } network_hash;
typedef struct network_state_req { typedef struct network_state_req {
char type; unsigned char type;
char length; unsigned char length;
} network_state_req; } network_state_req;
typedef struct node_hash { typedef struct node_hash {
char type; unsigned char type;
char length; unsigned char length;
long node_id; long node_id;
short seqno; short seqno;
char *node_hash; char *node_hash;
} node_hash; } node_hash;
typedef struct node_state_req { typedef struct node_state_req {
char type; unsigned char type;
char length; unsigned char length;
long node_id; long node_id;
} node_state_req; } node_state_req;
typedef struct node_state { typedef struct node_state {
char type; unsigned char type;
char length; unsigned char length;
long node_id; long node_id;
short seqno; short seqno;
char *node_hash; char *node_hash;
@ -71,8 +71,8 @@ typedef struct node_state {
} node_state; } node_state;
typedef struct warning { typedef struct warning {
char type; unsigned char type;
char length; unsigned char length;
char *message; char *message;
} warning; } warning;