diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2019-03-18 00:12:10 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2019-04-02 00:27:38 +0200 |
commit | af573a252beb379a27da8d3291b358c9911ce627 (patch) | |
tree | 4b9d37bef195356e563e58d6e6f62d29acf9d27a /nest | |
parent | 5b8f4beb72f2b1255e6e795020b52d9280a987e0 (diff) |
Filter: WIP
Diffstat (limited to 'nest')
-rw-r--r-- | nest/attrs.h | 11 | ||||
-rw-r--r-- | nest/route.h | 2 |
2 files changed, 9 insertions, 4 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; }; diff --git a/nest/route.h b/nest/route.h index 5b7085bf..377e0915 100644 --- a/nest/route.h +++ b/nest/route.h @@ -504,7 +504,7 @@ const char *ea_custom_name(uint ea); #define EAF_TYPE_INT_SET 0x0a /* Set of u32's (e.g., a community list) */ #define EAF_TYPE_EC_SET 0x0e /* Set of pairs of u32's - ext. community list */ #define EAF_TYPE_LC_SET 0x12 /* Set of triplets of u32's - large community list */ -#define EAF_TYPE_TUNNEL_ENCAP 0x13 /* Tunnel Encapsulation (encoding per draft-ietf-idr-tunnel-encaps-10) */ +#define EAF_TYPE_TUNNEL_ENCAP 0x14 /* Tunnel Encapsulation (encoding per draft-ietf-idr-tunnel-encaps-11) */ #define EAF_TYPE_UNDEF 0x1f /* `force undefined' entry */ #define EAF_EMBEDDED 0x01 /* Data stored in eattr.u.data (part of type spec) */ #define EAF_VAR_LENGTH 0x02 /* Attribute length is variable (part of type spec) */ |