Messages in this thread | | | From | (Alan Cox) | Subject | Re: Why does struct sock have saddr and daddr? | Date | Sat, 22 Aug 1998 03:04:07 +0100 (BST) |
| |
> Is this true only for UDP, or does TCP also use the interface addr instead of > the bound addr? Well, thinking about it, the only way we could receive a packet > that didn't have an interface listening on that IP, was if someone force routed
In the TCP case you cant have TCP broadcast or multicast so they would be the same.
> I know Sol 2.6 has a bug WRT using random interface addrs when responding via > UDP (they call it load balancing, but it breaks NFS).
I've heard it called many things, mostly impolite. Linux always uses a consistent address by the following order
o Address computed you did a bind() from [bound address or iface addr if broadcast/multicast]
o Address of interface that the route specifies
Thats pretty much identical across most tcp stacks
Alan
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html
| |