VirtualBox

Changeset 51691 in vbox for trunk/src


Ignore:
Timestamp:
Jun 23, 2014 3:01:41 PM (11 years ago)
Author:
vboxsync
Message:

NAT/Net: pxping_pcb_rtstrfmt: for mapped addresses print both original
and mapped destianations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/pxping.c

    r51690 r51691  
    778778        cb += RTStrFormat(pfnOutput, pvArgOutput, NULL, NULL,
    779779                          "%RTnaipv6 -> %RTnaipv6", &pcb->src, &pcb->dst);
     780        if (pcb->is_mapped) {
     781            cb += RTStrFormat(pfnOutput, pvArgOutput, NULL, NULL,
     782                              " (%RTnaipv6)", &pcb->peer.sin6.sin6_addr);
     783        }
    780784    }
    781785    else {
     
    784788                          ip4_addr_get_u32(ipX_2_ip(&pcb->src)),
    785789                          ip4_addr_get_u32(ipX_2_ip(&pcb->dst)));
     790        if (pcb->is_mapped) {
     791            cb += RTStrFormat(pfnOutput, pvArgOutput, NULL, NULL,
     792                              " (%RTnaipv4)", pcb->peer.sin.sin_addr.s_addr);
     793        }
    786794    }
    787795                     
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