Changeset 22543 in vbox
- Timestamp:
- Aug 28, 2009 7:05:42 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r22542 r22543 1391 1391 } 1392 1392 slirp_arp_cache_add(pData, *(uint32_t *)ah->ar_tip, &eh->h_dest[0]); 1393 /* good opportunity to activate port-forwarding on address (self)asignment*/ 1394 activate_port_forwarding(pData, eh); 1393 1395 } 1394 1396 break; … … 1401 1403 } 1402 1404 slirp_arp_cache_add(pData, *(uint32_t *)ah->ar_sip, ah->ar_sha); 1405 /*after/save restore we need up port forwarding again*/ 1406 if (pData->port_forwarding_activated == 0) 1407 activate_port_forwarding(pData, eh); 1403 1408 m_free(pData, m); 1404 1409 } … … 1447 1452 memcpy(m->m_data, pkt, pkt_len); 1448 1453 1454 #if 0 1449 1455 if (pData->port_forwarding_activated == 0) 1450 1456 activate_port_forwarding(pData, mtod(m, struct ethhdr *)); 1457 #endif 1451 1458 1452 1459 proto = ntohs(*(uint16_t *)(pkt + 12));
Note:
See TracChangeset
for help on using the changeset viewer.