Ignore:
Timestamp:
May 22, 2008, 12:31:47 PM (14 years ago)
Author:
charles
Message:

more janitorial cleanup on the "tr_session*" namespace. Today's victim: tr_handle_status.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/natpmp.c

    r5620 r5900  
    197197
    198198    switch( nat->state ) {
    199         case TR_NATPMP_IDLE:        ret = nat->isMapped ? TR_NAT_TRAVERSAL_MAPPED : TR_NAT_TRAVERSAL_UNMAPPED; break;
    200         case TR_NATPMP_DISCOVER:    ret = TR_NAT_TRAVERSAL_UNMAPPED; break;
     199        case TR_NATPMP_IDLE:        ret = nat->isMapped ? TR_PORT_MAPPED : TR_PORT_UNMAPPED; break;
     200        case TR_NATPMP_DISCOVER:    ret = TR_PORT_UNMAPPED; break;
    201201        case TR_NATPMP_RECV_PUB:
    202202        case TR_NATPMP_SEND_MAP:
    203         case TR_NATPMP_RECV_MAP:    ret = TR_NAT_TRAVERSAL_MAPPING; break;
     203        case TR_NATPMP_RECV_MAP:    ret = TR_PORT_MAPPING; break;
    204204        case TR_NATPMP_SEND_UNMAP:
    205         case TR_NATPMP_RECV_UNMAP:  ret = TR_NAT_TRAVERSAL_UNMAPPING; break;
    206         default:                    ret = TR_NAT_TRAVERSAL_ERROR; break;
     205        case TR_NATPMP_RECV_UNMAP:  ret = TR_PORT_UNMAPPING; break;
     206        default:                    ret = TR_PORT_ERROR; break;
    207207    }
    208208    return ret;
Note: See TracChangeset for help on using the changeset viewer.