Changeset 39174 in vbox
- Timestamp:
- Nov 2, 2011 12:16:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/udp.c
r38345 r39174 343 343 int mlen = 0; 344 344 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)); 347 347 348 348 /* … … 395 395 { 396 396 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)); 397 399 398 400 saddr = *addr; … … 401 403 saddr.sin_addr.s_addr = so->so_faddr.s_addr; 402 404 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 } 404 409 } 405 410
Note:
See TracChangeset
for help on using the changeset viewer.