diff options
Diffstat (limited to 'proto')
-rw-r--r-- | proto/bgp/attrs.c | 11 | ||||
-rw-r--r-- | proto/wireguard/wireguard.c | 2 |
2 files changed, 2 insertions, 11 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c index 1b245fbd..a27871bc 100644 --- a/proto/bgp/attrs.c +++ b/proto/bgp/attrs.c @@ -873,7 +873,7 @@ static const struct bgp_attr_desc bgp_attr_table[] = { }, [BA_TUNNEL_ENCAP] = { .name = "tunnel_encap", - .type = EAF_TYPE_OPAQUE, + .type = EAF_TYPE_TUNNEL_ENCAP, .flags = BAF_OPTIONAL | BAF_TRANSITIVE, .export = bgp_export_tunnel_encap, .encode = bgp_encode_tunnel_encap, @@ -888,15 +888,6 @@ static const struct bgp_attr_desc bgp_attr_table[] = { .decode = bgp_decode_mpls_label_stack, .format = bgp_format_mpls_label_stack, }, - [BA_TUNNEL_ENCAP] = { - .name = "tunnel_encap", - .type = EAF_TYPE_TUNNEL_ENCAP, - .flags = BAF_OPTIONAL | BAF_TRANSITIVE, - .export = bgp_export_tunnel_encap, - .encode = bgp_encode_tunnel_encap, - .decode = bgp_decode_tunnel_encap, - .format = bgp_format_tunnel_encap, - }, }; static inline int diff --git a/proto/wireguard/wireguard.c b/proto/wireguard/wireguard.c index e6427f4b..f209665e 100644 --- a/proto/wireguard/wireguard.c +++ b/proto/wireguard/wireguard.c @@ -39,7 +39,7 @@ dump(void *ptr, size_t len) { unsigned char *data = ptr; - for (int i=0; i<len; i++) { + for (size_t i=0; i<len; i++) { fprintf(stderr, "%02x ", data[i]); } fprintf(stderr, "\n"); |