diff options
Diffstat (limited to 'lib/nexthop.h')
| -rw-r--r-- | lib/nexthop.h | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/nexthop.h b/lib/nexthop.h index 39e8b5425f..801904306e 100644 --- a/lib/nexthop.h +++ b/lib/nexthop.h @@ -25,6 +25,7 @@  #define _LIB_NEXTHOP_H  #include "prefix.h" +#include "mpls.h"  /* Maximum next hop string length - gateway + ifindex */  #define NEXTHOP_STRLEN (INET6_ADDRSTRLEN + 30) @@ -44,6 +45,14 @@ enum nexthop_types_t    NEXTHOP_TYPE_BLACKHOLE,        /* Null0 nexthop.  */  }; +/* Nexthop label structure. */ +struct nexthop_label +{ +  u_int8_t num_labels; +  u_int8_t reserved[3]; +  mpls_label_t label[0]; /* 1 or more labels. */ +}; +  /* Nexthop structure. */  struct nexthop  {  | 
