diff options
Diffstat (limited to 'nest/attrs.h')
-rw-r--r-- | nest/attrs.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/nest/attrs.h b/nest/attrs.h index 8f76695d..68e4c876 100644 --- a/nest/attrs.h +++ b/nest/attrs.h @@ -200,20 +200,25 @@ struct adata *lc_set_sort(struct linpool *pool, struct adata *src); void ec_set_sort_x(struct adata *set); /* Sort in place */ /* Tunnel Encapsulation TLV types */ -#define TLV_WIREGUARD 0xffff +#define TLV_TUNNEL_TYPE 0x00 /* Reserved. Used internally only. */ +#define TLV_ENCAPSULATION 0x01 #define TLV_REMOTE_ENDPOINT 0x06 #define TLV_UDP_DEST_PORT 0x08 /* Tunnel Encapsulation TLV */ struct tlv { + int type; union { - const char *peer; + struct { + int type; + int length; + void *data; + } tunnel_encap; struct { u32 asn; ip_addr ip; } remote_endpoint; u16 udp_dest_port; - u32 color; } u; }; |