From owner-freebsd-current@FreeBSD.ORG Fri Sep 30 05:07:55 2005 Return-Path: X-Original-To: freebsd-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 9CCBE16A41F for ; Fri, 30 Sep 2005 05:07:55 +0000 (GMT) (envelope-from josh.carroll@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FCFC43D48 for ; Fri, 30 Sep 2005 05:07:55 +0000 (GMT) (envelope-from josh.carroll@gmail.com) Received: by xproxy.gmail.com with SMTP id t13so1665092wxc for ; Thu, 29 Sep 2005 22:07:54 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BciAMAFr0xDUXEl78ZSx1/CaoA0GJ9L3r1MEeQOUM+u/ZsQ7Zwq6i1DosqwpwUNA/YRYyJQoVQJ3i47jUh/tpDcM/RpceennVWKZmJYoTU6ArUMqpG7RI8j0N+tnM4ONG/wlfoJ6k0NcXGXmlWtOg6N/XqG5PJY1ww+OKhF6jsw= Received: by 10.70.66.7 with SMTP id o7mr781663wxa; Thu, 29 Sep 2005 22:07:54 -0700 (PDT) Received: by 10.70.54.2 with HTTP; Thu, 29 Sep 2005 22:07:54 -0700 (PDT) Message-ID: <8cb6106e0509292207s45016dbjf67801ddef50a0a1@mail.gmail.com> Date: Thu, 29 Sep 2005 22:07:54 -0700 From: Josh Carroll To: freebsd-current@freebsd.org In-Reply-To: <8cb6106e0509292124u44520623l4ee770576f2a80f8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8cb6106e0509290919177de1c4@mail.gmail.com> <20050929221437.CCAFA16A420@hub.freebsd.org> <8cb6106e0509292124u44520623l4ee770576f2a80f8@mail.gmail.com> Subject: [SOLVED] Re: 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: Fri, 30 Sep 2005 05:07:55 -0000 I'm sorry for so many replies to my own thread here, but I figured out my problem. You guys were right, I was not properly joining the multicast group. The packets were binding to my default IP instead of 192.168.1.1. Doing the following with pf fixed it: nat on $ext_if from any to 224.0.0.0/8 -> 192.168.1.1 I don't really understand why this wasn't necessary in 5.4 and previous 6.0 BETAs, but I'm glad it's working. I tried changing the code from: thishost.sin_addr.s_addr =3D INADDR_ANY; to: inet_aton("192.168.1.1", &local_addr); server.sin_addr.s_addr =3D local_addr.s_addr; Where 192.168.1.1 is one of the aliased IPs on fxp0, but when I try to run the code, I get "Permission denied" from sendto(), even with pf disabled. Ideally, I'd like to update the code to search the local interfaces with SIOCGIFCONF and use that IP (if available), but testing it with my IP hard-coded doesn't seem to work. But debugging my code is outside the scope of this mailing list. :) Thanks for the help and getting me pointed in the right direction. I'm ok with nat'ing the packets for now to make it work. I'll debug things myself and see if I can't get it to use the right source address itself. Josh