Changes between Initial Version and Version 1 of Ticket #2910, comment 12


Ignore:
Timestamp:
May 9, 2012, 9:33:13 PM (9 years ago)
Author:
gvdl
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2910, comment 12

    initial v1  
    11Actually we can use the tr_pex structure for this, the modifications seems to be in and around the getExistingHandshake and the tr_compare_address function. This function is only used in 5 places:
    22
    3 libtransmission/peer-mgr.c|290| <<handshakeCompareToAddr>> return tr_address_compare( tr_handshakeGetAddr( a, NULL ), vb );
    4 libtransmission/peer-mgr.c|313| <<comparePeerAtomToAddress>> return tr_address_compare( &a->addr, vb );
    5 libtransmission/peer-mgr.c|348| <<peerCompare>> return tr_address_compare( tr_peerAddress( a ), tr_peerAddress( b ) );
    6 libtransmission/peer-mgr.c|2254| <<tr_pexCompare>> if(( i = tr_address_compare( &a->addr, &b->addr )))
     3libtransmission/peer-mgr.c|290| <<handshakeCompareToAddr>> return tr_address_compare( tr_handshakeGetAddr( a, NULL ), vb );[[BR]]
     4libtransmission/peer-mgr.c|313| <<comparePeerAtomToAddress>> return tr_address_compare( &a->addr, vb );[[BR]]
     5libtransmission/peer-mgr.c|348| <<peerCompare>> return tr_address_compare( tr_peerAddress( a ), tr_peerAddress( b ) );[[BR]]
     6libtransmission/peer-mgr.c|2254| <<tr_pexCompare>> if(( i = tr_address_compare( &a->addr, &b->addr )))[[BR]]
    77libtransmission/peer-mgr.c|3626| <<compareAtomPtrsByAddress>> return tr_address_compare( &a->addr, &b->addr );
     8
     9[gvdl edited to reformat the uses of tr_address_compare in peer-mgr.c]