Changeset 40283 in vbox
- Timestamp:
- Feb 29, 2012 2:21:42 AM (13 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/ctl.h
r40279 r40283 25 25 #define CTL_BROADCAST 255 26 26 27 #define CTL_CHECK(x, ctl) (( (x) & ~pData->netmask) == (ctl) \27 #define CTL_CHECK(x, ctl) ((RT_N2H_U32((x)) & ~pData->netmask) == (ctl) \ 28 28 && (((x) & ~pData->netmask) == (pData->special_addr.s_addr & ~pData->netmask))) -
trunk/src/VBox/Devices/Network/slirp/udp.c
r39894 r40283 182 182 if ( pData->fUseHostResolver 183 183 && uh->uh_dport == RT_H2N_U16_C(53) 184 && CTL_CHECK( RT_N2H_U32(ip->ip_dst.s_addr), CTL_DNS))184 && CTL_CHECK(ip->ip_dst.s_addr, CTL_DNS)) 185 185 { 186 186 struct sockaddr_in dst, src; … … 202 202 */ 203 203 if ( uh->uh_dport == RT_H2N_U16_C(TFTP_SERVER) 204 && CTL_CHECK( RT_N2H_U32(ip->ip_dst.s_addr), CTL_TFTP))204 && CTL_CHECK(ip->ip_dst.s_addr, CTL_TFTP)) 205 205 { 206 206 tftp_input(pData, m); … … 413 413 m->m_flags |= M_SKIP_FIREWALL; 414 414 /** 415 * udp/137 port is used for NetBIOS lookup. for some reasons Windows guest rejects415 * udp/137 port is Name Service in NetBIOS protocol. for some reasons Windows guest rejects 416 416 * accept data from non-aliased server. 417 417 */
Note:
See TracChangeset
for help on using the changeset viewer.