0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-20 10:08:43 +00:00

BGP: Bugfix in VPN NLRI encoding

This commit is contained in:
Ondrej Zajicek (work) 2017-03-23 14:10:42 +01:00
parent 1e37e35c3e
commit 01111fc42c

View File

@ -1291,7 +1291,7 @@ bgp_encode_nlri_vpn4(struct bgp_write_state *s, struct bgp_bucket *buck, byte *b
} }
/* Encode prefix length */ /* Encode prefix length */
*pos = net->pxlen; *pos = 64 + net->pxlen;
ADVANCE(pos, size, 1); ADVANCE(pos, size, 1);
/* Encode MPLS labels */ /* Encode MPLS labels */
@ -1417,7 +1417,7 @@ bgp_encode_nlri_vpn6(struct bgp_write_state *s, struct bgp_bucket *buck, byte *b
} }
/* Encode prefix length */ /* Encode prefix length */
*pos = net->pxlen; *pos = 64 + net->pxlen;
ADVANCE(pos, size, 1); ADVANCE(pos, size, 1);
/* Encode MPLS labels */ /* Encode MPLS labels */