diff options
Diffstat (limited to 'slirp/misc.c')
-rw-r--r-- | slirp/misc.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/slirp/misc.c b/slirp/misc.c index ae6f211490..cffb3a0dac 100644 --- a/slirp/misc.c +++ b/slirp/misc.c @@ -16,23 +16,6 @@ int slirp_debug = DBG_CALL|DBG_MISC|DBG_ERROR; u_int curtime, time_fasttimo, last_slowtimo; -/* - * Get our IP address and put it in our_addr - */ -void -getouraddr(void) -{ - char buff[256]; - struct hostent *he = NULL; - - if (gethostname(buff,256) == 0) - he = gethostbyname(buff); - if (he) - our_addr = *(struct in_addr *)he->h_addr; - if (our_addr.s_addr == 0) - our_addr.s_addr = loopback_addr.s_addr; -} - struct quehead { struct quehead *qh_link; struct quehead *qh_rlink; |