Revision d14f8c3c nest/route.h

View differences:

nest/route.h
512 512
ea_list *ea_append(ea_list *to, ea_list *what);
513 513
void ea_format_bitfield(struct eattr *a, byte *buf, int bufsize, const char **names, int min, int max);
514 514

  
515
#define NEXTHOP_MAX_LABEL_STACK 8
516
#define NEXTHOP_MAX_SIZE (sizeof(struct nexthop) + sizeof(u32)*NEXTHOP_MAX_LABEL_STACK)
515
#define NEXTHOP_MAX_SIZE (sizeof(struct nexthop) + sizeof(u32)*MPLS_MAX_LABEL_STACK)
517 516

  
518 517
static inline size_t nexthop_size(const struct nexthop *nh)
519 518
{ return sizeof(struct nexthop) + sizeof(u32)*nh->labels; }
......
528 527

  
529 528
void rta_init(void);
530 529
static inline size_t rta_size(const rta *a) { return sizeof(rta) + sizeof(u32)*a->nh.labels; }
531
#define RTA_MAX_SIZE (sizeof(rta) + sizeof(u32)*NEXTHOP_MAX_LABEL_STACK)
530
#define RTA_MAX_SIZE (sizeof(rta) + sizeof(u32)*MPLS_MAX_LABEL_STACK)
532 531
rta *rta_lookup(rta *);			/* Get rta equivalent to this one, uc++ */
533 532
static inline int rta_is_cached(rta *r) { return r->aflags & RTAF_CACHED; }
534 533
static inline rta *rta_clone(rta *r) { r->uc++; return r; }

Also available in: Unified diff