VirtualBox

Changeset 33864 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Nov 8, 2010 5:09:31 PM (14 years ago)
Author:
vboxsync
Message:

Main,NAT: Don't bother NAT back-end with rule name.

File:
1 edited

Legend:

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

    r33833 r33864  
    649649
    650650static void drvNATNotifyApplyPortForwardCommand(PDRVNAT pThis, bool fRemove,
    651                                                 const char *pNatRuleName, bool fUdp, const char *pHostIp,
     651                                                bool fUdp, const char *pHostIp,
    652652                                                uint16_t u16HostPort, const char *pGuestIp, uint16_t u16GuestPort)
    653653{
     
    674674
    675675DECLCALLBACK(int) drvNATNetworkNatConfig_RedirectRuleCommand(PPDMINETWORKNATCONFIG pInterface, bool fRemove,
    676                                                    const char *pNatRuleName, bool fUdp, const char *pHostIp,
    677                                                    uint16_t u16HostPort, const char *pGuestIp, uint16_t u16GuestPort)
    678 {
    679     LogFlow(("drvNATNetworkNatConfig_ApplyNatCommand: cRules=%s\n", (pNatRuleName ? pNatRuleName: "")));
     676                                                             bool fUdp, const char *pHostIp,
     677                                                             uint16_t u16HostPort, const char *pGuestIp, uint16_t u16GuestPort)
     678{
     679    LogFlow(("drvNATNetworkNatConfig_ApplyNatCommand: \n", (pNatRuleName ? pNatRuleName: "")));
    680680    PDRVNAT pThis = RT_FROM_MEMBER(pInterface, DRVNAT, INetworkNATCfg);
    681681    PRTREQ pReq;
    682682    int rc = RTReqCallEx(pThis->pSlirpReqQueue, &pReq, 0 /*cMillies*/, RTREQFLAGS_VOID,
    683                          (PFNRT)drvNATNotifyApplyPortForwardCommand, 8, pThis, fRemove,
    684                           pNatRuleName, fUdp, pHostIp, u16HostPort, pGuestIp, u16GuestPort);
     683                         (PFNRT)drvNATNotifyApplyPortForwardCommand, 7, pThis, fRemove,
     684                         fUdp, pHostIp, u16HostPort, pGuestIp, u16GuestPort);
    685685    if (RT_LIKELY(rc == VERR_TIMEOUT))
    686686    {
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