VirtualBox

Ignore:
Timestamp:
Feb 10, 2010 10:32:37 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57500
Message:

NAT: applied patch from xtracker 3993 (use BSD mbufs)

File:
1 edited

Legend:

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

    r25265 r26404  
    100100    ++removed_queries;
    101101}
    102 #else
     102#else /* VBOX */
    103103static void
    104104timeout(PNATState pData, struct socket *so, void *arg)
     
    154154        m->m_len += req->nbyte;
    155155        ip->ip_src.s_addr = so->so_laddr.s_addr;
    156         ip->ip_dst.s_addr = htonl(ntohl(pData->special_addr.s_addr) | CTL_DNS);
     156        ip->ip_dst.s_addr = RT_H2N_U32(RT_N2H_U32(pData->special_addr.s_addr) | CTL_DNS);
    157157        udp->uh_dport = ntohs(53);
    158158        udp->uh_sport = so->so_lport;
     
    169169    }
    170170}
    171 #endif
     171#endif /* VBOX */
    172172
    173173/* do_query -- Called by the event loop when a packet arrives at our
Note: See TracChangeset for help on using the changeset viewer.

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