Re: SO_BINDTODEVICE or sendto using specific network interface
Re: SO_BINDTODEVICE or sendto using specific network interface
- Subject: Re: SO_BINDTODEVICE or sendto using specific network interface
- From: Alex Telitsine <email@hidden>
- Date: Mon, 12 Dec 2005 18:17:09 -0800
On Dec 12, 2005, at 5:38 PM, Peter Sichel wrote:
On 12/12/05, Alex Telitsine wrote:
Will BPF (Berkley Packet Filter) write of the raw packets bypass OSX
routing?
Yes.
Looks like it requires root access to use /dev/bpf files... more
problems to solve.
Is there any better solution?
Perhaps.
I definitely have to bypass routing, since each interface will be
sending to the same destination (IP) address.
You mentioned previously that you want to send UDP via two physical
Ethernets simultaneously. Notice the routing mechanism is designed to
determine the next hop physical hardware address. If the
destination IP
address is the same, what hardware address will you use as the next
hop
destination for packets sent via each data link?
I'd guess router's MAC address. Satellite modem is the router. It
connected directly via cross over to the ethernet port.
I ask because this might help clarify what you are trying to
accomplish.
The data flow is something like this:
SRC1 192.168.0.20--->Modem/Router1-192.168.0.12-------
+----------------> DST 192.168.2.2
SRC2 192.168.1.20--->Modem/Router2-192.168.0.12-------+
Thank you,
Kind Regards,
- Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40streambox.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden