diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-05-03 19:58:17 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-05-03 19:58:17 +0000 |
commit | 299cfa9449aa90a2ac9639a583ec4b13cba1a85a (patch) | |
tree | 477f3f9ef4db9f587c28097fa8c578181678a323 /slirp.c | |
parent | eacc9a9a94dba8540c4d126a27fd0b229521a9f5 (diff) | |
download | slirp-0.8.1.zip slirp-0.8.1.tar.gz slirp-0.8.1.tar.bz2 |
separate alias_addr (10.0.2.2) from our_addr (Ed Swierk)v0.8.1release_0_8_1
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1895 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp.c')
-rw-r--r-- | slirp.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -9,6 +9,8 @@ struct in_addr loopback_addr; /* address for slirp virtual addresses */ struct in_addr special_addr; +/* virtual address alias for host */ +struct in_addr alias_addr; const uint8_t special_ethaddr[6] = { 0x52, 0x54, 0x00, 0x12, 0x35, 0x00 }; @@ -152,6 +154,7 @@ void slirp_init(void) } inet_aton(CTL_SPECIAL, &special_addr); + alias_addr.s_addr = special_addr.s_addr | htonl(CTL_ALIAS); getouraddr(); } |