VirtualBox

Changeset 52230 in vbox


Ignore:
Timestamp:
Jul 29, 2014 4:52:44 PM (11 years ago)
Author:
vboxsync
Message:

NAT: Fix previous, pass bind_ip.s_addr, not bind_ip to %RTnaipv4.
That worked by accident because of struct passing ABI.

File:
1 edited

Legend:

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

    r52229 r52230  
    15081508        LogRel(("NAT: set redirect %s host %RTnaipv4:%d => guest %RTnaipv4:%d\n",
    15091509                rule->proto == IPPROTO_UDP ? "UDP" : "TCP",
    1510                 rule->bind_ip, rule->host_port,
     1510                rule->bind_ip.s_addr, rule->host_port,
    15111511                guest_addr, rule->guest_port));
    15121512
     
    15561556        LogRel(("NAT: failed to redirect %s %RTnaipv4:%d => %RTnaipv4:%d\n",
    15571557                (rule->proto == IPPROTO_UDP ? "UDP" : "TCP"),
    1558                 rule->bind_ip, rule->host_port,
     1558                rule->bind_ip.s_addr, rule->host_port,
    15591559                guest_addr, rule->guest_port));
    15601560        LIST_REMOVE(rule, list);
     
    16271627            LogRel(("NAT: remove redirect %s host %RTnaipv4:%d => guest %RTnaipv4:%d\n",
    16281628                    rule->proto == IPPROTO_UDP ? "UDP" : "TCP",
    1629                     rule->bind_ip, rule->host_port,
     1629                    rule->bind_ip.s_addr, rule->host_port,
    16301630                    guest_addr.s_addr, rule->guest_port));
    16311631
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