From owner-svn-ports-all@freebsd.org Sat Nov 10 23:02:47 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D72B7110DD8B; Sat, 10 Nov 2018 23:02:46 +0000 (UTC) (envelope-from olivier@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C4B3180779; Sat, 10 Nov 2018 23:02:45 +0000 (UTC) (envelope-from olivier@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A6BB417EE; Sat, 10 Nov 2018 23:02:45 +0000 (UTC) (envelope-from olivier@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wAAN2jia037243; Sat, 10 Nov 2018 23:02:45 GMT (envelope-from olivier@FreeBSD.org) Received: (from olivier@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wAAN2iiZ037237; Sat, 10 Nov 2018 23:02:44 GMT (envelope-from olivier@FreeBSD.org) Message-Id: <201811102302.wAAN2iiZ037237@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: olivier set sender to olivier@FreeBSD.org using -f From: Olivier Cochard Date: Sat, 10 Nov 2018 23:02:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r484648 - in head: . net/bird net/bird/files X-SVN-Group: ports-head X-SVN-Commit-Author: olivier X-SVN-Commit-Paths: in head: . net/bird net/bird/files X-SVN-Commit-Revision: 484648 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: C4B3180779 X-Spamd-Result: default: False [-106.87 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; ALLOW_DOMAIN_WHITELIST(-100.00)[FreeBSD.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; DMARC_NA(0.00)[FreeBSD.org]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: mx1.FreeBSD.org]; NEURAL_HAM_SHORT(-1.00)[-0.999,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; IP_SCORE(-3.77)[ip: (-9.91), ipnet: 2610:1c1:1::/48(-4.93), asn: 11403(-3.89), country: US(-0.09)] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Nov 2018 23:02:47 -0000 Author: olivier Date: Sat Nov 10 23:02:44 2018 New Revision: 484648 URL: https://svnweb.freebsd.org/changeset/ports/484648 Log: Fixes wrong LSA collision detection and add birdvty group PR: 232231 Submitted by: Julien Charbon Submitted by: Asbjorn Mikkelsen Sponsored by: Verisign Added: head/net/bird/files/patch-proto__ospf__lsupd.c (contents, props changed) head/net/bird/files/patch-proto__ospf__topology.c (contents, props changed) Modified: head/GIDs head/net/bird/Makefile head/net/bird/files/bird.in head/net/bird/files/bird6.in Modified: head/GIDs ============================================================================== --- head/GIDs Sat Nov 10 22:45:31 2018 (r484647) +++ head/GIDs Sat Nov 10 23:02:44 2018 (r484648) @@ -442,7 +442,7 @@ alertmanager:*:479: # free: 499 # free: 500 # free: 501 -# free: 502 +birdvty:*:502: # free: 503 # free: 504 _bbstored:*:505: Modified: head/net/bird/Makefile ============================================================================== --- head/net/bird/Makefile Sat Nov 10 22:45:31 2018 (r484647) +++ head/net/bird/Makefile Sat Nov 10 23:02:44 2018 (r484648) @@ -3,6 +3,7 @@ PORTNAME= bird PORTVERSION= 1.6.4 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ftp://bird.network.cz/pub/bird/ Modified: head/net/bird/files/bird.in ============================================================================== --- head/net/bird/files/bird.in Sat Nov 10 22:45:31 2018 (r484647) +++ head/net/bird/files/bird.in Sat Nov 10 23:02:44 2018 (r484648) @@ -28,7 +28,8 @@ extra_commands="reload" : ${bird_enable="NO"} : ${bird_config="%%PREFIX%%/etc/bird.conf"} +: ${bird_group="birdvty"} -command_args="-P /var/run/${name}.pid -c $bird_config" +command_args="-P /var/run/${name}.pid -c $bird_config -g $bird_group" run_rc_command "$1" Modified: head/net/bird/files/bird6.in ============================================================================== --- head/net/bird/files/bird6.in Sat Nov 10 22:45:31 2018 (r484647) +++ head/net/bird/files/bird6.in Sat Nov 10 23:02:44 2018 (r484648) @@ -28,7 +28,8 @@ extra_commands="reload" : ${bird6_enable="NO"} : ${bird6_config="%%PREFIX%%/etc/bird6.conf"} +: ${bird6_group="birdvty"} -command_args="-P /var/run/${name}.pid -c $bird6_config" +command_args="-P /var/run/${name}.pid -c $bird6_config -g $bird6_group" run_rc_command "$1" Added: head/net/bird/files/patch-proto__ospf__lsupd.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/bird/files/patch-proto__ospf__lsupd.c Sat Nov 10 23:02:44 2018 (r484648) @@ -0,0 +1,11 @@ +--- proto/ospf/lsupd.c 2015-04-22 14:41:44.000000000 +0000 ++++ proto/ospf/lsupd.c 2016-03-22 13:09:59.000000000 +0000 +@@ -593,7 +593,7 @@ + if ((lsa.rt == p->router_id) || + (ospf_is_v2(p) && (lsa_type == LSA_T_NET) && ospf_addr_is_local(p, ifa->oa, ipa_from_u32(lsa.id)))) + { +- OSPF_TRACE(D_EVENTS, "Received unexpected self-originated LSA"); ++ log(L_INFO "Received unexpected self-originated LSA"); + ospf_advance_lsa(p, en, &lsa, lsa_type, lsa_domain, body); + continue; + } Added: head/net/bird/files/patch-proto__ospf__topology.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/bird/files/patch-proto__ospf__topology.c Sat Nov 10 23:02:44 2018 (r484648) @@ -0,0 +1,32 @@ +--- proto/ospf/topology.c 2015-04-22 14:41:44.000000000 +0000 ++++ proto/ospf/topology.c 2016-03-24 13:36:04.000000000 +0000 +@@ -79,8 +79,12 @@ + * then we have en->mode from the postponed LSA origination. + */ + +- OSPF_TRACE(D_EVENTS, "Installing LSA: Type: %04x, Id: %R, Rt: %R, Seq: %08x, Age: %u", +- en->lsa_type, en->lsa.id, en->lsa.rt, en->lsa.sn, en->lsa.age); ++ if (en->lsa.rt == p->router_id || (p->p.debug & D_EVENTS) || ++ OSPF_FORCE_DEBUG) ++ { ++ log(L_INFO "Installing LSA: Type: %04x, Id: %R, Rt: %R, Seq: %08x, Age: %u", ++ en->lsa_type, en->lsa.id, en->lsa.rt, en->lsa.sn, en->lsa.age); ++ } + + if (change) + ospf_schedule_rtcalc(p); +@@ -281,6 +285,14 @@ + if (!en->nf || !en->lsa_body) + en->nf = lsa->nf; + ++ if (en->lsa_body && (en->lsa.age == LSA_MAXAGE)) ++ { ++ /* en could be an unexpected self-originated lsa in which case nf is NULL */ ++ log(L_INFO "%s: Found flushing LSA while originating %I/%d with fib: %p", ++ p->p.name, lsa->nf->fn.prefix, lsa->nf->fn.pxlen, en->nf); ++ en->nf = lsa->nf; ++ } ++ + if (en->nf != lsa->nf) + { + log(L_ERR "%s: LSA ID collision for %I/%d",