From owner-freebsd-current@FreeBSD.ORG Thu Sep 29 16:19:49 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21BEF16A41F for ; Thu, 29 Sep 2005 16:19:49 +0000 (GMT) (envelope-from josh.carroll@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id B560643D49 for ; Thu, 29 Sep 2005 16:19:48 +0000 (GMT) (envelope-from josh.carroll@gmail.com) Received: by xproxy.gmail.com with SMTP id t13so1588650wxc for ; Thu, 29 Sep 2005 09:19:48 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=fbCeoPmUUJACcTBjP9URHDGDsdE547huaKy2iVE6fdWvIDGUdA4AkxdYGtvkrtiAOmbgYkbkBj61/reYzSFRXhEz3eDDKG+DEb1rS0tkmO0HkdF9AXSmQTi3X+6j6iNfn38WWWslycujUR7i32BiXy7MY6yHnLmEIF8RRv9pL/0= Received: by 10.70.66.7 with SMTP id o7mr569742wxa; Thu, 29 Sep 2005 09:19:48 -0700 (PDT) Received: by 10.70.54.2 with HTTP; Thu, 29 Sep 2005 09:19:48 -0700 (PDT) Message-ID: <8cb6106e0509290919177de1c4@mail.gmail.com> Date: Thu, 29 Sep 2005 09:19:48 -0700 From: Josh Carroll To: current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Subject: UDP multicast packets not seen on listening interface in BETA5 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@psualum.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2005 16:19:49 -0000 All, I'm having a bit of trouble with a program I wrote to listen for multicast packets from my DSL modem in order to monitor/collect line stats. It has worked previously in 5.4 and 6.0-BETA3. The source is availabe here for anyone that wants to poke around in it: http://wdiag.sourceforge.net Anyway, recently I rebuilt world and the kernel from BETA5 sources (previously on BETA3 or thereabouts). The application no longer finds the multicast packets, but works fine in BETA3. Let me briefly describe what the program does. It simply bind()'s to port 1875/udp (INADDR_ANY), joins the proper multicast group, calls select() then recvfrom() to look for the packet. It waits for a timeout period, then fails if it doesn't see the packet in that time period, which is what is happening in BETA5. I ran tcpdump and I do see the packets hitting the interface: 09:00:45.394614 IP 192.168.1.254.1875 > 224.73.193.62.1875: UDP, length 120 I suspect maybe I am not properly joining the multicast group, so it's ignoring the packet. But like I said, this worked in BETA3 which is why I'm stumped. nc -v -u -l 1875 Doesn't see any packets either, for what it's worth, though I don't know off hand whether nc can do multicast or not. Also I verified the program is indeed listening with sockstat: root westell 2194 3 udp4 *:1875 *:* Any ideas where I can begin to troubleshoot this? Thanks in advance, Josh