summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpi <pi@FreeBSD.org>2017-10-01 13:29:03 +0000
committerpi <pi@FreeBSD.org>2017-10-01 13:29:03 +0000
commita501c496346301e37c844cac495f1bfb52f9bf4d (patch)
tree913f740fc7456dbadea5af5eebc9fe9242c1855a
parenta2e9997df51f21a6d57bc23b286564ac90fbc494 (diff)
downloadFreeBSD-ports-a501c496346301e37c844cac495f1bfb52f9bf4d.zip
FreeBSD-ports-a501c496346301e37c844cac495f1bfb52f9bf4d.tar.gz
net/quagga: bgpd: multi-segment AS_PATH UPDATE message length calculation fix
See https://lists.quagga.net/pipermail/quagga-dev/2017-September/033284.html for the source of this patch. Submitted by: Andreas Jaggi <aj@open.ch>
-rw-r--r--net/quagga/Makefile2
-rw-r--r--net/quagga/files/patch-bgpd__bgp_aspath.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/net/quagga/Makefile b/net/quagga/Makefile
index 0de5ce6..7cd1cc7 100644
--- a/net/quagga/Makefile
+++ b/net/quagga/Makefile
@@ -3,7 +3,7 @@
PORTNAME= quagga
PORTVERSION= 1.2.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= net ipv6
MASTER_SITES= SAVANNAH
diff --git a/net/quagga/files/patch-bgpd__bgp_aspath.c b/net/quagga/files/patch-bgpd__bgp_aspath.c
new file mode 100644
index 0000000..7b2b9ed
--- /dev/null
+++ b/net/quagga/files/patch-bgpd__bgp_aspath.c
@@ -0,0 +1,11 @@
+--- bgpd/bgp_aspath.c.orig 2017-03-10 12:55:06 UTC
++++ bgpd/bgp_aspath.c
+@@ -903,7 +903,7 @@ aspath_put (struct stream *s, struct aspath *as, int u
+ 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 */
OpenPOWER on IntegriCloud