]> git.proxmox.com Git - qemu.git/blobdiff - slirp/misc.c
slirp: Factor out one-time initialization
[qemu.git] / slirp / misc.c
index ae6f2114907e09a8a8009c62d7c7900ed8711afb..cffb3a0dac9e707526c2a7a678cc80eadfd83c2e 100644 (file)
@@ -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;