diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2017-03-17 15:48:09 +0100 |
---|---|---|
committer | Jan Moskyto Matejka <mq@ucw.cz> | 2017-03-17 15:48:32 +0100 |
commit | 3c74416465d77c0e79eeaaeb988e471663484b5d (patch) | |
tree | 44f84dccd613fd36700729972d9329369275d785 /lib | |
parent | a5d2a34497853a02692a0b8ea812f44d6820a399 (diff) |
Nexthop: Fixed recursive route mpls label merging
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ip.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -326,6 +326,11 @@ static inline ip6_addr ip6_ntoh(ip6_addr a) { return _MI6(ntohl(_I0(a)), ntohl(_I1(a)), ntohl(_I2(a)), ntohl(_I3(a))); } #define MPLS_MAX_LABEL_STACK 8 +typedef struct mpls_label_stack { + uint len; + u32 stack[MPLS_MAX_LABEL_STACK]; +} mpls_label_stack; + static inline int mpls_get(const char *buf, int buflen, u32 *stack) { |