Changeset 22495 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Aug 27, 2009 6:18:37 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r22494 r22495 1422 1422 m->m_len = pkt_len ; 1423 1423 memcpy(m->m_data, pkt, pkt_len); 1424 1424 1425 1425 if (pData->port_forwarding_activated == 0) 1426 1426 acivate_port_forwarding(pData, mtod(m, struct ethhdr *)); … … 1517 1517 } 1518 1518 1519 /** 1519 /** 1520 1520 * We need check if we've activated port forwarding 1521 * for specific machine ... that of course relates to 1521 * for specific machine ... that of course relates to 1522 1522 * service mode 1523 1523 * @todo finish this for service case … … 1526 1526 { 1527 1527 struct port_forward_rule *rule = NULL; 1528 1528 1529 1529 pData->port_forwarding_activated = 1; 1530 /* check mac here */ 1530 /* check mac here */ 1531 1531 LIST_FOREACH(rule, &pData->port_forward_rule_head, list) 1532 1532 { … … 1553 1553 guest_addr = find_guest_ip(pData, ethdr->h_source); 1554 1554 #endif 1555 if (guest_addr == INADDR_ANY) 1555 if (guest_addr == INADDR_ANY) 1556 1556 { 1557 1557 /* the address wasn't granted */ … … 1576 1576 } 1577 1577 if (so == NULL) 1578 { 1578 { 1579 1579 LogRel(("NAT: failed redirect %s hp:%d gp:%d\n", (rule->proto == IPPROTO_UDP?"UDP":"TCP"), 1580 1580 rule->host_port, rule->guest_port)); … … 1631 1631 * 3. guest port 1632 1632 * 4. proto 1633 * 5. guest MAC address 1634 * the guest's MAC address is rather important for service, but we easily 1635 * could get it from VM configuration in DrvNAT or Service, the idea is activating 1633 * 5. guest MAC address 1634 * the guest's MAC address is rather important for service, but we easily 1635 * could get it from VM configuration in DrvNAT or Service, the idea is activating 1636 1636 * corresponding port-forwarding 1637 1637 */ … … 1804 1804 m = m_get(pData); 1805 1805 if (m == NULL) 1806 { 1807 LogRel(("NAT: Can't alloc mbuf for ARP request\n")); 1806 { 1807 LogRel(("NAT: Can't alloc mbuf for ARP request\n")); 1808 1808 return; 1809 1809 }
Note:
See TracChangeset
for help on using the changeset viewer.