VirtualBox

Changeset 22495 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Aug 27, 2009 6:18:37 AM (15 years ago)
Author:
vboxsync
Message:

NAT: nuked whitespaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r22494 r22495  
    14221422    m->m_len = pkt_len ;
    14231423    memcpy(m->m_data, pkt, pkt_len);
    1424    
     1424
    14251425    if (pData->port_forwarding_activated == 0)
    14261426        acivate_port_forwarding(pData, mtod(m, struct ethhdr *));
     
    15171517}
    15181518
    1519 /** 
     1519/**
    15201520 * 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
    15221522 * service mode
    15231523 * @todo finish this for service case
     
    15261526{
    15271527    struct port_forward_rule *rule = NULL;
    1528    
     1528
    15291529    pData->port_forwarding_activated = 1;
    1530     /* check mac here */ 
     1530    /* check mac here */
    15311531    LIST_FOREACH(rule, &pData->port_forward_rule_head, list)
    15321532    {
     
    15531553        guest_addr = find_guest_ip(pData, ethdr->h_source);
    15541554#endif
    1555         if (guest_addr == INADDR_ANY) 
     1555        if (guest_addr == INADDR_ANY)
    15561556        {
    15571557            /* the address wasn't granted */
     
    15761576        }
    15771577        if (so == NULL)
    1578         {   
     1578        {
    15791579            LogRel(("NAT: failed redirect %s hp:%d gp:%d\n", (rule->proto == IPPROTO_UDP?"UDP":"TCP"),
    15801580                rule->host_port, rule->guest_port));
     
    16311631 *  3. guest port
    16321632 *  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
    16361636 * corresponding port-forwarding
    16371637 */
     
    18041804    m = m_get(pData);
    18051805    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"));
    18081808        return;
    18091809    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette