summaryrefslogtreecommitdiff
path: root/nest/attrs.h
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2019-03-18 00:12:10 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2019-04-02 00:27:38 +0200
commitaf573a252beb379a27da8d3291b358c9911ce627 (patch)
tree4b9d37bef195356e563e58d6e6f62d29acf9d27a /nest/attrs.h
parent5b8f4beb72f2b1255e6e795020b52d9280a987e0 (diff)
Filter: WIP
Diffstat (limited to 'nest/attrs.h')
-rw-r--r--nest/attrs.h11
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;
};