VirtualBox

Changeset 59948 in vbox for trunk


Ignore:
Timestamp:
Mar 7, 2016 9:33:34 PM (9 years ago)
Author:
vboxsync
Message:

NAT: log the reason if port redirection fails (I know, it's almost always EADDRINUSE)

File:
1 edited

Legend:

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

    r59219 r59948  
    15711571    if (rule->so == NULL)
    15721572    {
    1573         LogRel(("NAT: Failed to redirect %s %RTnaipv4:%d -> %RTnaipv4:%d\n",
     1573        LogRel(("NAT: Failed to redirect %s %RTnaipv4:%d -> %RTnaipv4:%d (%s)\n",
    15741574                rule->proto == IPPROTO_UDP ? "UDP" : "TCP",
    15751575                rule->bind_ip.s_addr, rule->host_port,
    1576                 guest_addr, rule->guest_port));
     1576                guest_addr, rule->guest_port, strerror(errno)));
    15771577        RTMemFree(rule);
    15781578        return 1;
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