Ignore:
Timestamp:
Feb 10, 2009, 7:14:41 PM (13 years ago)
Author:
charles
Message:

(1.5x) update to Jan 2009 versions of libnatpmp and miniupnpc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5x/third-party/miniupnp/upnpcommands.c

    r5094 r7869  
    1 /* $Id: upnpcommands.c,v 1.19 2008/02/18 13:27:23 nanard Exp $ */
     1/* $Id: upnpcommands.c,v 1.22 2008/12/18 17:45:18 nanard Exp $ */
    22/* Project : miniupnp
    33 * Author : Thomas Bernard
    4  * Copyright (c) 2005 Thomas Bernard
     4 * Copyright (c) 2005-2008 Thomas Bernard
    55 * This software is subject to the conditions detailed in the
    66 * LICENCE file provided in this distribution.
     
    304304                                        const char * inClient,
    305305                                        const char * desc,
    306                                         const char * proto)
     306                                        const char * proto,
     307                    const char * remoteHost)
    307308{
    308309        struct UPNParg * AddPortMappingArgs;
     
    318319        AddPortMappingArgs = calloc(9, sizeof(struct UPNParg));
    319320        AddPortMappingArgs[0].elt = "NewRemoteHost";
     321        AddPortMappingArgs[0].val = remoteHost;
    320322        AddPortMappingArgs[1].elt = "NewExternalPort";
    321323        AddPortMappingArgs[1].val = extPort;
     
    352354int
    353355UPNP_DeletePortMapping(const char * controlURL, const char * servicetype,
    354                        const char * extPort, const char * proto)
     356                       const char * extPort, const char * proto,
     357                       const char * remoteHost)
    355358{
    356359        /*struct NameValueParserData pdata;*/
     
    367370        DeletePortMappingArgs = calloc(4, sizeof(struct UPNParg));
    368371        DeletePortMappingArgs[0].elt = "NewRemoteHost";
     372        DeletePortMappingArgs[0].val = remoteHost;
    369373        DeletePortMappingArgs[1].elt = "NewExternalPort";
    370374        DeletePortMappingArgs[1].val = extPort;
     
    485489        int ret = UPNPCOMMAND_UNKNOWN_ERROR;
    486490        simpleUPnPcommand(-1, controlURL, servicetype, "GetPortMappingNumberOfEntries", 0, buffer, &bufsize);
    487 #ifndef NDEBUG
     491#ifdef DEBUG
    488492        DisplayNameValueList(buffer, bufsize);
    489493#endif
Note: See TracChangeset for help on using the changeset viewer.