Commit e1b7c617 authored by Jan Moskyto Matejka's avatar Jan Moskyto Matejka
Browse files

L3VPN: new protocol

parent ec11f992
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -176,7 +176,7 @@ fi
AC_SUBST(iproutedir)

# all_protocols="$proto_bfd bgp ospf pipe radv rip static"
all_protocols="$proto_bfd ospf pipe radv rip static"
all_protocols="$proto_bfd l3vpn ospf pipe radv rip static"

all_protocols=`echo $all_protocols | sed 's/ /,/g'`

+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@

#define MPLS_STACK_LENGTH   8 /* Adjust this if you need deeper MPLS stack */
#define MPLS_PXLEN	    20 /* Length of the label in bits. Constant. */
#define MPLS_LABEL_MAX	    ((1<<MPLS_PXLEN)-1) /* Maximal possible label value. */

/*
 *   RFC 3032 updated by RFC 5462:
+3 −0
Original line number Diff line number Diff line
@@ -1262,6 +1262,9 @@ protos_build(void)
  proto_build(&proto_bfd);
  bfd_init_all();
#endif
#ifdef CONFIG_L3VPN
  proto_build(&proto_l3vpn);
#endif

  proto_pool = rp_new(&root_pool, "Protocols");
  proto_shutdown_timer = tm_new(proto_pool);
+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ void protos_dump_all(void);

extern struct protocol
  proto_device, proto_radv, proto_rip, proto_static,
  proto_ospf, proto_pipe, proto_bgp, proto_bfd;
  proto_ospf, proto_pipe, proto_l3vpn, proto_bgp, proto_bfd;

/*
 *	Routing Protocol Instance
+1 −1
Original line number Diff line number Diff line
@@ -675,7 +675,7 @@ get_generic_attr(eattr *a, byte **buf, int buflen UNUSED)
    {
      *buf += bsprintf(*buf, "mpls");
      struct adata *ad = a->u.ptr;
      u32 *z = ad->data;
      u32 *z = (void *) ad->data;
      int len = ad->length / sizeof(u32);
      int i;

Loading