From owner-freebsd-questions Sat Nov 2 18:54:26 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 570D937B401 for ; Sat, 2 Nov 2002 18:54:25 -0800 (PST) Received: from web40707.mail.yahoo.com (web40707.mail.yahoo.com [66.218.78.164]) by mx1.FreeBSD.org (Postfix) with SMTP id 2965443E77 for ; Sat, 2 Nov 2002 18:54:25 -0800 (PST) (envelope-from alirezamahini@yahoo.com) Message-ID: <20021103025422.98883.qmail@web40707.mail.yahoo.com> Received: from [81.12.16.1] by web40707.mail.yahoo.com via HTTP; Sat, 02 Nov 2002 18:54:22 PST Date: Sat, 2 Nov 2002 18:54:22 -0800 (PST) From: alireza mahini Subject: How can i use multiple ethernet card for data transfer? To: questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have two ethernet card(lan card)in my system. they have varient IPs.My OS(FreeBSD 4.4) known them as rl0 ,rl1. I want send data from the card that i like but data only sent from rl0. In my program i act as below: ... bind(....);//bind in rl1 sendto(....);//send from a socket that bind at rl1 ... but my packets are sent from the rl0. Note: I use DGRAM socket for my program. please guide me for this problem. __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message