From owner-freebsd-net@FreeBSD.ORG Wed Apr 8 23:07:55 2015 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A0F66D33 for ; Wed, 8 Apr 2015 23:07:55 +0000 (UTC) Received: from remote.thehowies.com (50-197-91-217-static.hfc.comcastbusiness.net [50.197.91.217]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "remote.thehowies.com", Issuer "RapidSSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 782938A2 for ; Wed, 8 Apr 2015 23:07:54 +0000 (UTC) Received: from PRIMARY.thehowies.local ([fe80::497b:de8e:1045:4c2a]) by PRIMARY.thehowies.local ([fe80::497b:de8e:1045:4c2a%24]) with mapi id 14.03.0224.002; Wed, 8 Apr 2015 16:07:54 -0700 From: John Howie To: Yuri , "net@freebsd.org" Subject: Re: Socket bound to 0.0.0.0 never receives broadcasts with non-zero IP source address Thread-Topic: Socket bound to 0.0.0.0 never receives broadcasts with non-zero IP source address Thread-Index: AQHQcZ5h2I9CcpL4u0iz7C/8UqpBP51DEDWjgAEFxYD//9CxgIAARhgA///D9gA= Date: Wed, 8 Apr 2015 23:07:52 +0000 Message-ID: References: <55248957.60109@rawbw.com> <878ue2n6lu.fsf@corbe.net> <55259BC7.6040502@rawbw.com> <5525AEE4.3030400@rawbw.com> In-Reply-To: <5525AEE4.3030400@rawbw.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.7.141117 x-originating-ip: [12.130.116.80] Content-Type: text/plain; charset="iso-8859-1" Content-ID: <220F0500137B8443865F884310B7FDCE@thehowies.local> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Daniel Corbe X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Apr 2015 23:07:55 -0000 Hi Yuri, Have you tried using a static IP address for the host and VM, and disabling DHCP? The DHCP client will bind to and use 0.0.0.0 to get an IP address. The SO_REUSEADDR rule is that every tuple (proto, src ip, src port, dst ip, dst prt) must be unique. I am wondering if that is where your problem lies. There might be something that is shortcutting the uniqueness of the tuple and just focusing on IP addresses. I would validate that for you but I am at 35000=B9 right now... Regards, John On 4/8/15, 6:42 PM, "Yuri" wrote: >On 04/08/2015 15:31, John Howie wrote: >> Is your machine a router or gateway, or have a firewall? Are you trying >>to >> capture all broadcast packets, or just UDP targeted and broadcast >>packets >> to a particular port? > >No, it isn't a gateway or router, and no firewall. Trying to capture all >broadcast UDP to a particular port. > >Observing this with with virtual machine dhcp client bridged to the host >through tapN. Host is otherwise just a plain FreeBSD workstation itself. > >Yuri