VirtualBox

Ignore:
Timestamp:
Jun 22, 2009 2:13:59 PM (16 years ago)
Author:
vboxsync
Message:

NAT: incorrect alias address

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r20717 r20782  
    693693    {
    694694        int flags = 0;
     695        struct in_addr proxy_addr;
    695696        pData->proxy_alias = LibAliasInit(pData, NULL);
    696697        if (pData->proxy_alias == NULL)
     
    702703        flags |= PKT_ALIAS_LOG; /* set logging */
    703704        flags = LibAliasSetMode(pData->proxy_alias, flags, ~0);
    704         LibAliasSetAddress(pData->proxy_alias, special_addr);
     705        proxy_addr.s_addr = htonl(ntohl(special_addr.s_addr) | CTL_ALIAS);
     706        LibAliasSetAddress(pData->proxy_alias, proxy_addr);
    705707        ftp_alias_load();
    706708        nbt_alias_load();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette