Date: Mon, 11 Dec 2000 11:17:46 -0800 (PST) From: Michael Yeung <micyeung1@yahoo.com> To: net@FreeBSD.ORG Subject: IP aliases and TCP socket Message-ID: <20001211191746.25563.qmail@web4903.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hi, I have a few of questions and would greatly appreciate for some advise. 1) What I want to do is to create an application that can receive packets destined to two IP addresses from different subnet/network. Essentially have a host sitting at the broader of two networks. I noticed IP aliases restrict the alias IP address to be in the same subnet/network as the primary IP address. Is that a true restriction? If so, any advise on alternative to IP alias? 2) Assume IP aliases works for my needs as stated in question1. When I send a packet out over a TCP socket connection, how can I specify which address to be used as the source IP address (i.e. primary or alias address)? 3) Assume I can use IP aliases technique to receive packet destined to different IP addresses in the same application. If I am to use a TCP socket to retrieve the packet, how can I tell which IP address what the packet destined to (i.e. the primary or alias address)? Would packets for all addresses goes to the same socket or would it be through multiple sockets? 4) Is there direct API calls to the TCP/UDP for connection creation, sending and receiving? Or do I have to go thru the socket interface. Are they tcp_open, udp_open, tcp_send, udp_send, tcp_receive and udp_receive? Where can I find these APIs and their function prototypes? thanx very much, Michael __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001211191746.25563.qmail>