Re: UDP question.




bind socket1.network adapter1...
bind socket2 network adapter2

I am not really sure, but I think the bind to an adapter under linux only
chooses the source ip, not really the adapter used to send the packets.

To explicitly send things through a specific interface, you need to use
some magic, like PF_RAW. ping for example is one program that will do
this (-I option).

Did you check that the two destination ips have routes through different
interfaces, and not go out through the same one?

One cannot have the same subnet on multiple interfaces, because ARP
queries will only be sent through the first one. You need br0 (or bond0
- depending on how you plan to plan your network) to make them one
interface.


Jan Engelhardt
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [9fans] Bay Area Plan 9 Users Group Meeting (August 07)
    ... David said he enjoyed ... Brucee talked about his 9ee stuff, which will allow you to run plan 9 ... the current rendezvous interface so that it could accept a closure (or ...
    (comp.os.plan9)
  • Re: [9fans] slow performance
    ... plan 9 scale with today's processors and networks. ... the thread library provides the same csp primitives that alef did. ... not every interface is text-based. ... by a seperate control file. ...
    (comp.os.plan9)
  • Re: [9fans] 64-Bit programming model.
    ... i think there might be a discussion about this wrt plan 9 in the archives. ... briefly, i tried LP64 first, because of the pointerint and system interface points they make, ... that's unsurprising given the history of the type (eg, when int was 16 bits). ... when plan 9 changed to 64 bit file sizes and offsets, the interface changed. ...
    (comp.os.plan9)
  • Re: [9fans] 64-Bit programming model.
    ... i think there might be a discussion about this wrt plan 9 in the archives. ... briefly, i tried LP64 first, because of the pointerint and system interface points they make, ... that's unsurprising given the history of the type (eg, when int was 16 bits). ... when plan 9 changed to 64 bit file sizes and offsets, the interface changed. ...
    (comp.os.plan9)
  • Re: Would my method for an ATM interface work?
    ... interface to the user for banking. ... Sounds like a decent plan. ... You could therefore have the login card, the banking card, and anything ...
    (comp.lang.java.gui)