VirtualBox

Changeset 39174 in vbox


Ignore:
Timestamp:
Nov 2, 2011 12:16:09 PM (13 years ago)
Author:
vboxsync
Message:

NAT: fix lookup of rpc servers (e.g. NIS for BSD guests).

File:
1 edited

Legend:

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

    r38345 r39174  
    343343    int mlen = 0;
    344344
    345     LogFlowFunc(("ENTER: so = %R[natsock], m = %lx, saddr = %lx, daddr = %lx\n",
    346                  so, (long)m, (long)saddr->sin_addr.s_addr, (long)daddr->sin_addr.s_addr));
     345    LogFlowFunc(("ENTER: so = %R[natsock], m = %p, saddr = %RTnaipv4, daddr = %RTnaipv4\n",
     346                 so, m, saddr->sin_addr.s_addr, daddr->sin_addr.s_addr));
    347347
    348348    /*
     
    395395{
    396396    struct sockaddr_in saddr, daddr;
     397    LogFlowFunc(("ENTER: so = %R[natsock], m = %p, saddr = %RTnaipv4\n",
     398                 so, (long)m, addr->sin_addr.s_addr));
    397399
    398400    saddr = *addr;
     
    401403        saddr.sin_addr.s_addr = so->so_faddr.s_addr;
    402404        if ((so->so_faddr.s_addr & RT_H2N_U32(~pData->netmask)) == RT_H2N_U32(~pData->netmask))
    403             saddr.sin_addr.s_addr = alias_addr.s_addr;
     405        {
     406            saddr.sin_addr.s_addr = addr->sin_addr.s_addr;
     407            so->so_faddr.s_addr = addr->sin_addr.s_addr;
     408        }
    404409    }
    405410
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