• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/transmission-2.73/libtransmission/

Lines Matching defs:diffs

2046     PexDiffs * diffs = userData;
2049 if( diffs->addedCount < MAX_PEX_ADDED )
2051 diffs->added[diffs->addedCount++] = *pex;
2052 diffs->elements[diffs->elementCount++] = *pex;
2059 PexDiffs * diffs = userData;
2062 if( diffs->droppedCount < MAX_PEX_DROPPED )
2064 diffs->dropped[diffs->droppedCount++] = *pex;
2071 PexDiffs * diffs = userData;
2074 diffs->elements[diffs->elementCount++] = *pex;
2149 PexDiffs diffs;
2156 /* build the diffs */
2157 diffs.added = tr_new( tr_pex, newCount );
2158 diffs.addedCount = 0;
2159 diffs.dropped = tr_new( tr_pex, msgs->pexCount );
2160 diffs.droppedCount = 0;
2161 diffs.elements = tr_new( tr_pex, newCount + msgs->pexCount );
2162 diffs.elementCount = 0;
2166 pexDroppedCb, pexAddedCb, pexElementCb, &diffs );
2182 diffs.addedCount, diffs6.addedCount,
2183 diffs.droppedCount, diffs6.droppedCount );
2185 if( !diffs.addedCount && !diffs.droppedCount && !diffs6.addedCount &&
2188 tr_free( diffs.elements );
2201 msgs->pex = diffs.elements;
2202 msgs->pexCount = diffs.elementCount;
2211 if( diffs.addedCount > 0)
2214 tmp = walk = tr_new( uint8_t, diffs.addedCount * 6 );
2215 for( i = 0; i < diffs.addedCount; ++i ) {
2216 memcpy( walk, &diffs.added[i].addr.addr, 4 ); walk += 4;
2217 memcpy( walk, &diffs.added[i].port, 2 ); walk += 2;
2219 assert( ( walk - tmp ) == diffs.addedCount * 6 );
2225 tmp = walk = tr_new( uint8_t, diffs.addedCount );
2226 for( i = 0; i < diffs.addedCount; ++i )
2227 *walk++ = diffs.added[i].flags & ~ADDED_F_HOLEPUNCH;
2228 assert( ( walk - tmp ) == diffs.addedCount );
2233 if( diffs.droppedCount > 0 )
2236 tmp = walk = tr_new( uint8_t, diffs.droppedCount * 6 );
2237 for( i = 0; i < diffs.droppedCount; ++i ) {
2238 memcpy( walk, &diffs.dropped[i].addr.addr, 4 ); walk += 4;
2239 memcpy( walk, &diffs.dropped[i].port, 2 ); walk += 2;
2241 assert( ( walk - tmp ) == diffs.droppedCount * 6 );
2300 tr_free( diffs.added );
2301 tr_free( diffs.dropped );