VirtualBox

Changeset 33833 in vbox for trunk/src


Ignore:
Timestamp:
Nov 8, 2010 12:35:27 PM (14 years ago)
Author:
vboxsync
Message:

NAT: log as well when a port forwarding rule is removed

Location:
trunk/src/VBox/Devices/Network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r33826 r33833  
    648648}
    649649
    650 static void drvNATNotifyApplyPortForwardCommand(PDRVNAT pThis,bool fRemove,
     650static void drvNATNotifyApplyPortForwardCommand(PDRVNAT pThis, bool fRemove,
    651651                                                const char *pNatRuleName, bool fUdp, const char *pHostIp,
    652652                                                uint16_t u16HostPort, const char *pGuestIp, uint16_t u16GuestPort)
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r33825 r33833  
    16651665
    16661666        LogRel(("NAT: set redirect %s host port %d => guest port %d @ %R[IP4]\n",
    1667                (rule->proto == IPPROTO_UDP?"UDP":"TCP"),
    1668                rule->host_port, rule->guest_port, &guest_addr));
     1667               rule->proto == IPPROTO_UDP ? "UDP" : "TCP", rule->host_port, rule->guest_port, &guest_addr));
    16691668
    16701669        if (rule->proto == IPPROTO_UDP)
     
    17851784            && rule->activated)
    17861785        {
     1786            LogRel(("NAT: remove redirect %s host port %d => guest port %d @ %R[IP4]\n",
     1787                   rule->proto == IPPROTO_UDP ? "UDP" : "TCP", rule->host_port, rule->guest_port, &guest_addr));
     1788
    17871789            LibAliasUninit(rule->so->so_la);
    17881790            if (is_udp)
    1789             {
    17901791                udp_detach(pData, rule->so);
    1791             }
    17921792            else
    1793             {
    17941793                tcp_close(pData, sototcpcb(rule->so));
    1795             }
    17961794            LIST_REMOVE(rule, list);
    17971795            RTMemFree(rule);
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