From owner-freebsd-net@freebsd.org Thu Dec 1 16:11:16 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 17DA0C6070B for ; Thu, 1 Dec 2016 16:11:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F116C1146 for ; Thu, 1 Dec 2016 16:11:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uB1GBFBS009868 for ; Thu, 1 Dec 2016 16:11:15 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 202510] [CARP] advertisements sourced from CARP IP cause double MASTER situations Date: Thu, 01 Dec 2016 16:11:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.0-STABLE X-Bugzilla-Keywords: easy, needs-qa, patch X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: dam@my.gd X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-net@FreeBSD.org X-Bugzilla-Flags: mfc-stable9? mfc-stable10? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2016 16:11:16 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D202510 --- Comment #9 from dam@my.gd --- (In reply to Kubilay Kocak from comment #7) Confirming behaviour on 10-STABLE (r309356) with my provided patch. patch =3D=3D root@bsd10:/usr/src/etc # patch < /tmp/network.subr.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- network.subr.orig 2015-08-24 14:10:15.188579000 +0000 |+++ network.subr.patched 2015-08-24 14:10:22.298347000 +0000 -------------------------- File to patch: network.subr Patching file network.subr using Plan A... Hunk #1 succeeded at 1091. Hunk #2 succeeded at 1144. done rc.conf =3D=3D ifconfig_vtnet0=3D"inet 46.[snip].253/25 -rxcsum -txcsum -tso -vlanhwtso -vlanhwcsum -vlanhwtag up" ipv4_addrs_vtnet0=3D"1.1.1.1/32" ifconfig_vtnet0_alias0=3D"1.1.1.2/32" ifconfig_vtnet0_alias1=3D"vhid 101 pass test advskew 50 1.1.1.3/32" ifconfig =3D=3D root@bsd10:~ # ifconfig vtnet0: flags=3D8943 metric= 0 mtu 1500 =20=20=20=20=20=20=20 options=3D6804a8 ether f2:53:d5:fc:49:8a inet 46.[snip].253 netmask 0xffffff80 broadcast 46.182.42.255=20 inet 1.1.1.1 netmask 0xffffffff broadcast 1.1.1.1=20 inet 1.1.1.2 netmask 0xffffffff broadcast 1.1.1.2=20 inet 1.1.1.3 netmask 0xffffffff broadcast 1.1.1.3 vhid 101=20 nd6 options=3D29 media: Ethernet 10Gbase-T status: active carp: MASTER vhid 101 advbase 1 advskew 50 tcpdump =3D=3D root@bsd10:~ # tcpdump -ni vtnet0 vrrp tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on vtnet0, link-type EN10MB (Ethernet), capture size 65535 bytes 16:04:27.942147 IP 46.[snip].253 > 224.0.0.18: VRRPv2, Advertisement, vrid = 101, prio 50, authtype none, intvl 1s, length 36 16:04:29.156181 IP 46.[snip].253 > 224.0.0.18: VRRPv2, Advertisement, vrid = 101, prio 50, authtype none, intvl 1s, length 36 16:04:30.358144 IP 46.[snip].253 > 224.0.0.18: VRRPv2, Advertisement, vrid = 101, prio 50, authtype none, intvl 1s, length 36 ^---- sourced with physical IP despite the use of ipv4_addrs_vtnet0 Can anyone confirm 9 and 11 branches ? --=20 You are receiving this mail because: You are the assignee for the bug.=