pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[patch] net/quagga: bgpd: fix length calculation of multi-segment AS_PATH UPDATE messages
Hello,
pkgsrc quagga (bgpd) seems to also be affected by the AS-PATH UPDATE
message length calculation bug
https://lists.quagga.net/pipermail/quagga-dev/2017-September/033284.html
I attached the patch, please consider for inclusion.
Regards
Matthias Ferdinand
$NetBSD$
https://lists.quagga.net/pipermail/quagga-dev/2017-September/033284.html,
[quagga-dev 16660] [PATCH] bgpd: fix length calculation of multi-segment AS_PATH UPDATE messages
--- bgpd/bgp_aspath.c.orig 2016-03-15 23:17:17.000000000 +0000
+++ bgpd/bgp_aspath.c
@@ -904,7 +904,7 @@ aspath_put (struct stream *s, struct asp
assegment_header_put (s, seg->type, AS_SEGMENT_MAX);
assegment_data_put (s, seg->as, AS_SEGMENT_MAX, use32bit);
written += AS_SEGMENT_MAX;
- bytes += ASSEGMENT_SIZE (written, use32bit);
+ bytes += ASSEGMENT_SIZE (AS_SEGMENT_MAX, use32bit);
}
/* write the final segment, probably is also the first */
Home |
Main Index |
Thread Index |
Old Index