Patch to support multiple interfaces...
Secure chat and conferencing protocol
Brought to you by:
priikone
From: Jochen E. <joc...@gm...> - 2002-05-27 21:12:33
|
Hi, here we go... a patch to support multiple interfaces (both IPv4 and IPv6). Server & Router work here on my local net... thou I tested not extensivly. Some details about the patch: * in silcutil I added support for an fd parameter for the host_lookup callback * in serverconfig I added the config stuff described in my last mail * in server(_backup) - fixed config interface to use the new primary{} and secondary{} - using fd instead of server->sock in accept_new_connection - using passed throu fd in accept_new_connection_lookup - added function silc_server_init_secondary which adds all secondary listeners and what does it do? Well you can define several secondary interfaces on which the server listens. The server ID will be always the one of the primary interface, the server adds itself only once to the ID cache, all server connections are established using the primary interface (incoming server connections can also use the secondary interfaces) Oh, and why? Well, if this works, I hope somebody will setup an server which listens also on an IPv6 interface... :) regards -- jochen ps: comments are welcome! -- "I'd rather die before using Micro$oft Word" -- Donald E. Knuth (asked whether he'd reinvent TeX in the light of M$ Word) GnuGP public key for joc...@gm...: http://penguin-breeder.org/?page=sigs (0x8AEB7AE3) |