]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Nest: Minor fixes in MPLS
authorOndrej Zajicek <santiago@crfreenet.org>
Wed, 25 Oct 2023 16:25:46 +0000 (18:25 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Wed, 25 Oct 2023 16:25:46 +0000 (18:25 +0200)
conf/confbase.Y
nest/config.Y

index 2c37bd4d0c316a79eb7fa469069b0e6b353c32a1..b2471198fa7c6855b316e3d9e33b26021d2ea630 100644 (file)
@@ -294,7 +294,7 @@ net_roa6_: net_ip6_ MAX NUM AS NUM
 
 net_mpls_: MPLS NUM
 {
-  $$ = cfg_alloc(sizeof(net_addr_roa6));
+  $$ = cfg_alloc(sizeof(net_addr_mpls));
   net_fill_mpls($$, $2);
 }
 
index 6bd08481c367c17c5de69af87dd5a4fca5875172..6832a57a8b6fd10a0dca6aad6946d67d50acf9a2 100644 (file)
@@ -209,7 +209,7 @@ net_type:
  | MPLS { $$ = NET_MPLS; }
  ;
 
-CF_ENUM(T_ENUM_NETTYPE, NET_, IP4, IP6, VPN4, VPN6, ROA4, ROA6, FLOW4, FLOW6, IP6_SADR)
+CF_ENUM(T_ENUM_NETTYPE, NET_, IP4, IP6, VPN4, VPN6, ROA4, ROA6, FLOW4, FLOW6, IP6_SADR, MPLS)
 
 
 /* Creation of routing tables */