qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] -redir revisited
@ 2006-06-05 12:47 René Korthaus
  2006-06-14 13:57 ` Fabrice Bellard
  2006-06-14 19:53 ` Ed Swierk
  0 siblings, 2 replies; 6+ messages in thread
From: René Korthaus @ 2006-06-05 12:47 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 712 bytes --]

Hello list,

i am recently working on integrating the -redir option into [Kju:]  
for Mac OS X and tested Apache access in debian guest from Mac OS X  
host which not worked for me. I discovered a discussion on the list  
in November 2005 where a patch was submitted against this (http:// 
lists.gnu.org/archive/html/qemu-devel/2005-11/msg00419.html).

I researched current qemu cvs and found out that the patch was  
integrated not complete but to 95%. There are two lines in slirp/ 
misc.c that need a change (patch attached). Tested to work with Mac  
OS X host and debian guest i could reach the Apache running inside  
the guest via localhost:8080 with the appropriate -redir command.

Greetings, cordney*


[-- Attachment #2: localhost-connect-062006.patch --]
[-- Type: application/octet-stream, Size: 498 bytes --]

--- misc.c.orig 2006-06-05 14:12:10.000000000 +0200
+++ misc.c      2006-06-05 14:17:25.000000000 +0200
@@ -94,8 +94,8 @@
             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;
+        if (our_addr.s_addr == 0 || our_addr.s_addr == loopback_addr.s_addr)
+            our_addr.s_addr = special_addr.s_addr | htonl(CTL_ALIAS);
 }
 
 #if SIZEOF_CHAR_P == 8

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-06-15  9:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-05 12:47 [Qemu-devel] [PATCH] -redir revisited René Korthaus
2006-06-14 13:57 ` Fabrice Bellard
2006-06-14 16:26   ` René Korthaus
2006-06-14 17:08     ` Fabrice Bellard
2006-06-14 19:53 ` Ed Swierk
2006-06-15  9:32   ` René Korthaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).