From owner-freebsd-net Wed Aug 18 22:15:12 1999 Delivered-To: freebsd-net@freebsd.org Received: from inet-vrs-02.microsoft.com (mail2.microsoft.com [131.107.3.124]) by hub.freebsd.org (Postfix) with SMTP id BE2BA14F0F for ; Wed, 18 Aug 1999 22:15:09 -0700 (PDT) (envelope-from gchung@microsoft.com) Received: from 157.54.9.104 by inet-vrs-02.microsoft.com (InterScan E-Mail VirusWall NT); Wed, 18 Aug 1999 22:12:11 -0700 (Pacific Daylight Time) Received: by INET-IMC-02 with Internet Mail Service (5.5.2448.0) id ; Wed, 18 Aug 1999 22:12:11 -0700 Message-ID: From: George Chung To: "'freebsd-net@freebsd.org'" Subject: on dual-homed machine, how to specify outgoing interface to send multicast packets Date: Wed, 18 Aug 1999 22:12:02 -0700 X-Mailer: Internet Mail Service (5.5.2448.0) Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Platform: FreeBSD 3.2 RELEASE, "default" kernel on a dual-homed box Experience level: newbie On a dual-homed machine, there is no "network" portion of the destination Class D address to make any kind of determination as to which outgoing interface to use. So I make a call to setsockopt(fd, IPPROTO_IP, IP_MULTICAST_IF, &inaddr, sizeof(struct in_addr)); I confirm that this call works. Plus I doublechecked by giving it a bogus inaddr, and it gave me errno 49 EADDRNOTAVAIL. However, when I try send a packet to "225.0.0.1", I get errno 65 EHOSTUNREACH. Please help! :-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message