Re: UDP's sendto() from two IP Addresses to IP Address from small LAN

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Arkady Frenkel wrote:
> That easy to check ( in UDP especially : recvfrom() directly opposite
> to tcp where getpeername() need be called ) but in this case default path
> is
> the answer

I fail to see what default route has to do with OP's issue. He sends two
packets to different networks. The packets are correctly delivered. The
question was IIUC "why does this work" even when the 'from' address of
socket is on different network. The answer is "they are sent from correct
interfaces because routing table says so, regardless of the 'from' address".
The default route (which in OP's case actually uses the interface which
would not work for one of the destinations) has nothing to do with it.


--
Eugene
http://www.gershnik.com


.



Relevant Pages

  • Re: Achieving whats done by Microsofts "Internet Connection Sharing"
    ... Use dhcpd to set up a DHCP server on eth0. ... that subject only uses the route command. ... You just need to tell those networks where they can locate eachother. ... It's useless for packets to know where to go, ...
    (comp.os.linux.networking)
  • Re: UDPs sendto() from two IP Addresses to IP Address from small LAN
    ... Alex send from 2 adapters on different networks to peer ... > Arkady Frenkel wrote: ... The packets are correctly delivered. ... > interfaces because routing table says so, ...
    (microsoft.public.win32.programmer.networks)
  • Multihomed System
    ... If I had a to multihome a system with interfaces on different networks what is ... I assume that I just a default route for the second interface ...
    (SunManagers)
  • Re: IPMP enabled serious Network Problems
    ... inet 10.xx.xx.49 netmask ffffff00 broadcast xxxxxxx.255 ... Turn off this option to track all network interfaces ... input packets with dribble condition detected ...
    (comp.unix.solaris)
  • Interface configuration - inet6 issues
    ... Having some issues getting my interfaces configured properly. ... post-up ip route add table 100 to default via 10.0.4.1 dev eth1 ...
    (Debian-User)