25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: net.c,v 1.10 2007/06/15 17:02:39 debug Exp $ |
* $Id: net.c,v 1.12 2007/08/25 22:27:28 debug Exp $ |
29 |
* |
* |
30 |
* Emulated network. |
* Emulated network. |
31 |
* |
* |
658 |
int iadd = DEBUG_INDENTATION; |
int iadd = DEBUG_INDENTATION; |
659 |
struct remote_net *rnp; |
struct remote_net *rnp; |
660 |
|
|
661 |
debug("net: simulating "); |
debug("net:\n"); |
662 |
|
|
663 |
|
debug_indentation(iadd); |
664 |
|
|
665 |
|
debug("simulated network: "); |
666 |
net_debugaddr(&net->netmask_ipv4, NET_ADDR_IPV4); |
net_debugaddr(&net->netmask_ipv4, NET_ADDR_IPV4); |
667 |
debug("/%i", net->netmask_ipv4_len); |
debug("/%i", net->netmask_ipv4_len); |
668 |
|
|
669 |
debug(" (max outgoing: TCP=%i, UDP=%i)\n", |
debug(" (max outgoing: TCP=%i, UDP=%i)\n", |
670 |
MAX_TCP_CONNECTIONS, MAX_UDP_CONNECTIONS); |
MAX_TCP_CONNECTIONS, MAX_UDP_CONNECTIONS); |
671 |
|
|
672 |
debug_indentation(iadd); |
debug("simulated gateway+nameserver: "); |
|
|
|
|
debug("simulated gateway: "); |
|
673 |
net_debugaddr(&net->gateway_ipv4_addr, NET_ADDR_IPV4); |
net_debugaddr(&net->gateway_ipv4_addr, NET_ADDR_IPV4); |
674 |
debug(" ("); |
debug(" ("); |
675 |
net_debugaddr(&net->gateway_ethernet_addr, NET_ADDR_ETHERNET); |
net_debugaddr(&net->gateway_ethernet_addr, NET_ADDR_ETHERNET); |
676 |
debug(")\n"); |
debug(")\n"); |
677 |
|
|
|
debug_indentation(iadd); |
|
678 |
if (!net->nameserver_known) { |
if (!net->nameserver_known) { |
679 |
debug("(could not determine nameserver)"); |
debug("(could not determine nameserver)\n"); |
680 |
} else { |
} else { |
681 |
debug("using nameserver "); |
debug("simulated nameserver uses real nameserver "); |
682 |
net_debugaddr(&net->nameserver_ipv4, NET_ADDR_IPV4); |
net_debugaddr(&net->nameserver_ipv4, NET_ADDR_IPV4); |
683 |
|
debug("\n"); |
684 |
} |
} |
685 |
|
|
686 |
if (net->domain_name != NULL && net->domain_name[0]) |
if (net->domain_name != NULL && net->domain_name[0]) |
687 |
debug(", domain \"%s\"", net->domain_name); |
debug("domain: %s\n", net->domain_name); |
|
debug("\n"); |
|
|
debug_indentation(-iadd); |
|
688 |
|
|
689 |
rnp = net->remote_nets; |
rnp = net->remote_nets; |
690 |
if (net->local_port != 0) |
if (net->local_port != 0) |