Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SO_BINDTODEVICE or sendto using specific network interface




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:
http://lists.apple.com/mailman/options/macnetworkprog/alex% 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:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >SO_BINDTODEVICE or sendto using specific network interface (From: Alex Telitsine <email@hidden>)
 >Re: SO_BINDTODEVICE or sendto using specific network interface (From: Josh Graessley <email@hidden>)
 >Re: SO_BINDTODEVICE or sendto using specific network interface (From: Alex Telitsine <email@hidden>)
 >Re: SO_BINDTODEVICE or sendto using specific network interface (From: "Peter Sichel" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.