VirtualBox

Ignore:
Timestamp:
Jul 29, 2014 4:36:34 PM (10 years ago)
Author:
vboxsync
Message:

NAT: Log port-forwarding using address:port notation, including host's
(bind_ip) address.

File:
1 edited

Legend:

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

    r52088 r52229  
    15061506#endif
    15071507
    1508         LogRel(("NAT: set redirect %s host port %d => guest port %d @ %RTnaipv4\n",
    1509                rule->proto == IPPROTO_UDP ? "UDP" : "TCP", rule->host_port, rule->guest_port, guest_addr));
     1508        LogRel(("NAT: set redirect %s host %RTnaipv4:%d => guest %RTnaipv4:%d\n",
     1509                rule->proto == IPPROTO_UDP ? "UDP" : "TCP",
     1510                rule->bind_ip, rule->host_port,
     1511                guest_addr, rule->guest_port));
    15101512
    15111513        if (rule->proto == IPPROTO_UDP)
     
    15521554
    15531555    remove_port_forwarding:
    1554         LogRel(("NAT: failed to redirect %s %d => %d\n",
    1555                 (rule->proto == IPPROTO_UDP?"UDP":"TCP"), rule->host_port, rule->guest_port));
     1556        LogRel(("NAT: failed to redirect %s %RTnaipv4:%d => %RTnaipv4:%d\n",
     1557                (rule->proto == IPPROTO_UDP ? "UDP" : "TCP"),
     1558                rule->bind_ip, rule->host_port,
     1559                guest_addr, rule->guest_port));
    15561560        LIST_REMOVE(rule, list);
    15571561        pData->cRedirectionsStored--;
     
    16211625            && rule->activated)
    16221626        {
    1623             LogRel(("NAT: remove redirect %s host port %d => guest port %d @ %RTnaipv4\n",
    1624                    rule->proto == IPPROTO_UDP ? "UDP" : "TCP", rule->host_port, rule->guest_port, guest_addr.s_addr));
     1627            LogRel(("NAT: remove redirect %s host %RTnaipv4:%d => guest %RTnaipv4:%d\n",
     1628                    rule->proto == IPPROTO_UDP ? "UDP" : "TCP",
     1629                    rule->bind_ip, rule->host_port,
     1630                    guest_addr.s_addr, rule->guest_port));
    16251631
    16261632            LibAliasUninit(rule->so->so_la);
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