Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Oct 2017 13:29:03 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r451045 - in head/net/quagga: . files
Message-ID:  <201710011329.v91DT3kL054574@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Sun Oct  1 13:29:03 2017
New Revision: 451045
URL: https://svnweb.freebsd.org/changeset/ports/451045

Log:
  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>

Added:
  head/net/quagga/files/patch-bgpd__bgp_aspath.c   (contents, props changed)
Modified:
  head/net/quagga/Makefile

Modified: head/net/quagga/Makefile
==============================================================================
--- head/net/quagga/Makefile	Sun Oct  1 12:58:11 2017	(r451044)
+++ head/net/quagga/Makefile	Sun Oct  1 13:29:03 2017	(r451045)
@@ -3,7 +3,7 @@
 
 PORTNAME=	quagga
 PORTVERSION=	1.2.1
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	net ipv6
 MASTER_SITES=	SAVANNAH
 

Added: head/net/quagga/files/patch-bgpd__bgp_aspath.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/quagga/files/patch-bgpd__bgp_aspath.c	Sun Oct  1 13:29:03 2017	(r451045)
@@ -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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710011329.v91DT3kL054574>