Revision 49c7ef3b proto/bgp/packets.c

View differences:

proto/bgp/packets.c
1483 1483
    ADVANCE(pos, size, 1);
1484 1484

  
1485 1485
    /* Encode MPLS labels */
1486
    bgp_encode_mpls_labels(s, s->mpls_labels, &pos, &size, pos - 1);
1486
    if (s->mpls)
1487
      bgp_encode_mpls_labels(s, s->mpls_labels, &pos, &size, pos - 1);
1487 1488

  
1488 1489
    /* Encode route distinguisher */
1489 1490
    put_u64(pos, net->rd);

Also available in: Unified diff