Changeset 40284 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Feb 29, 2012 2:35:55 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r39949 r40284 1506 1506 mr->m_len = sizeof(struct arphdr); 1507 1507 memcpy(reh->h_source, eh->h_source, ETH_ALEN); /* XXX: if_encap will swap src and dst*/ 1508 if ( ((htip & pData->netmask) == RT_N2H_U32(pData->special_addr.s_addr)) 1509 && ( CTL_CHECK(htip, CTL_DNS) 1510 || CTL_CHECK(htip, CTL_ALIAS) 1511 || CTL_CHECK(htip, CTL_TFTP))) 1508 if ( CTL_CHECK(tip, CTL_DNS) 1509 || CTL_CHECK(tip, CTL_ALIAS) 1510 || CTL_CHECK(tip, CTL_TFTP)) 1512 1511 { 1513 1512 rah->ar_hrd = RT_H2N_U16_C(1); … … 1518 1517 memcpy(rah->ar_sha, special_ethaddr, ETH_ALEN); 1519 1518 1520 switch (htip & ~pData->netmask)1519 if (!slirpMbufTagService(pData, mr, (uint8_t)(htip & ~pData->netmask))) 1521 1520 { 1522 case CTL_DNS: 1523 case CTL_ALIAS: 1524 case CTL_TFTP: 1525 if (!slirpMbufTagService(pData, mr, (uint8_t)(htip & ~pData->netmask))) 1526 { 1527 static bool fTagErrorReported; 1528 if (!fTagErrorReported) 1529 { 1530 LogRel(("NAT: couldn't add the tag(PACKET_SERVICE:%d) to mbuf:%p\n", 1531 (uint8_t)(htip & ~pData->netmask), m)); 1532 fTagErrorReported = true; 1533 } 1534 } 1535 rah->ar_sha[5] = (uint8_t)(htip & ~pData->netmask); 1536 break; 1537 default:; 1521 static bool fTagErrorReported; 1522 if (!fTagErrorReported) 1523 { 1524 LogRel(("NAT: couldn't add the tag(PACKET_SERVICE:%d) to mbuf:%p\n", 1525 (uint8_t)(htip & ~pData->netmask), m)); 1526 fTagErrorReported = true; 1527 } 1538 1528 } 1529 rah->ar_sha[5] = (uint8_t)(htip & ~pData->netmask); 1539 1530 1540 1531 memcpy(rah->ar_sip, ah->ar_tip, 4);
Note:
See TracChangeset
for help on using the changeset viewer.