From owner-freebsd-net Tue May 16 14:36: 3 2000 Delivered-To: freebsd-net@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id A482037BAE4 for ; Tue, 16 May 2000 14:35:59 -0700 (PDT) (envelope-from zzhang@cs.binghamton.edu) Received: from sol.cs.binghamton.edu (sol.cs.binghamton.edu [128.226.123.100]) by bingnet2.cc.binghamton.edu (8.9.3/8.9.3) with ESMTP id RAA07739; Tue, 16 May 2000 17:35:40 -0400 (EDT) Date: Tue, 16 May 2000 17:34:52 -0400 (EDT) From: Zhihui Zhang To: Manny Obrey Cc: freebsd-net@FreeBSD.ORG Subject: Re: socket programming, since the topic has come up In-Reply-To: <20000516211633.56356.qmail@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 16 May 2000, Manny Obrey wrote: > > would any kind soul care to share w/ me how to send data out a particular > nic. I'm doing socket programming and I'm not able to send > outbound packets via the interface that I want. Can one use the 'bind' > function to set the outbound nic (somehow)? should I be using raw sockets? I > am hoping that I can do this w/o using libpcap ... which is where I'm headed > next. > Each NIC has a unique IP address, right? You can bind to that address. -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message