Changeset 10581


Ignore:
Timestamp:
May 1, 2010, 4:32:15 AM (11 years ago)
Author:
charles
Message:

(1.9x) more miniupnpc

Location:
branches/1.9x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.9x/libtransmission/upnp.c

    r9868 r10581  
    138138        tr_snprintf( portStr, sizeof( portStr ), "%d", handle->port );
    139139        i = UPNP_GetSpecificPortMappingEntry( handle->urls.controlURL,
    140                                               handle->data.servicetype, portStr,
     140                                              handle->data.first.servicetype, portStr,
    141141                                              "TCP", intClient, intPort );
    142142        if( i != UPNPCOMMAND_SUCCESS )
     
    152152        tr_snprintf( portStr, sizeof( portStr ), "%d", handle->port );
    153153        UPNP_DeletePortMapping( handle->urls.controlURL,
    154                                 handle->data.servicetype,
     154                                handle->data.first.servicetype,
    155155                                portStr, "TCP", NULL );
    156156        tr_ninf( getKey( ),
    157157                 _(
    158158                     "Stopping port forwarding through \"%s\", service \"%s\"" ),
    159                  handle->urls.controlURL, handle->data.servicetype );
     159                 handle->urls.controlURL, handle->data.first.servicetype );
    160160        handle->isMapped = 0;
    161161        handle->state = TR_UPNP_IDLE;
     
    174174        errno = 0;
    175175
    176         if( !handle->urls.controlURL || !handle->data.servicetype )
     176        if( !handle->urls.controlURL || !handle->data.first.servicetype )
    177177            handle->isMapped = 0;
    178178        else
     
    183183            tr_snprintf( desc, sizeof( desc ), "%s at %d", TR_NAME, port );
    184184            err = UPNP_AddPortMapping( handle->urls.controlURL,
    185                                        handle->data.servicetype,
     185                                       handle->data.first.servicetype,
    186186                                       portStr, portStr, handle->lanaddr,
    187187                                       desc, "TCP", NULL );
     
    191191                 _(
    192192                     "Port forwarding through \"%s\", service \"%s\".  (local address: %s:%d)" ),
    193                  handle->urls.controlURL, handle->data.servicetype,
     193                 handle->urls.controlURL, handle->data.first.servicetype,
    194194                 handle->lanaddr, port );
    195195        if( handle->isMapped )
  • branches/1.9x/third-party/miniupnp/Makefile.am

    r10286 r10581  
    44
    55libminiupnp_a_SOURCES = \
     6    connecthostport.c \
    67    igd_desc_parse.c \
    78    minisoap.c \
     
    1617    bsdqueue.h \
    1718    codelength.h \
     19    connecthostport.h \
    1820    declspec.h \
    1921    igd_desc_parse.h \
Note: See TracChangeset for help on using the changeset viewer.