Re: sys_bind question

Andi Kleen (ak@muc.de)
03 Jan 2000 13:35:06 +0100


kernel@mluwis17.wiwi.uni-halle.de (karsten) writes:
>
> Now my question, the next aim is to translate such a bind(0.0.0.0) to more
> than only one ip-addresses. I think this mofication can't be done in
> sys_bind. Maybe in some of the ipv4 Lowlevel-binds, but i don't know how.

It is rather hard, because the low level protocols all only support one
bound address or 0. Particularly the input hash multiplexing depends on
this, you would need to modify the hash search function in udp.c/tcp_ipv4.c/
ip_input.c(for raw sockets) and extend the struct sock to contain a list of
addresses.

-Andi

-- 
This is like TV. I don't like TV.

- 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.tux.org/lkml/