ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/slirp/slirp.c
(Generate patch)

Comparing BasiliskII/src/slirp/slirp.c (file contents):
Revision 1.7 by gbeauche, 2006-05-14T17:27:38Z vs.
Revision 1.8 by gbeauche, 2007-11-03T11:11:42Z

# Line 9 | Line 9 | struct in_addr loopback_addr;
9  
10   /* address for slirp virtual addresses */
11   struct in_addr special_addr;
12 + /* virtual address alias for host */
13 + struct in_addr alias_addr;
14  
15   const uint8_t special_ethaddr[6] = {
16      0x52, 0x54, 0x00, 0x12, 0x35, 0x00
# Line 25 | Line 27 | struct ex_list *exec_list;
27   /* XXX: suppress those select globals */
28   fd_set *global_readfds, *global_writefds, *global_xfds;
29  
30 + char slirp_hostname[33];
31 +
32   #ifdef _WIN32
33  
34   static int get_dns_addr(struct in_addr *pdns_addr)
# Line 144 | Line 148 | int slirp_init(void)
148      m_init();
149  
150      /* set default addresses */
147    getouraddr();
151      inet_aton("127.0.0.1", &loopback_addr);
152  
153      if (get_dns_addr(&dns_addr) < 0)
154          return -1;
155  
156      inet_aton(CTL_SPECIAL, &special_addr);
157 +        alias_addr.s_addr = special_addr.s_addr | htonl(CTL_ALIAS);
158 +        getouraddr();
159      return 0;
160   }
161  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines