Advertisement
eao197

Untitled

Oct 21st, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. data.erase( [=]( const data_t & d ) { d.mPktNum < 10; } );
  2.  
  3. data.update
  4.   .where( [=]( const data_t & d ) { d.mCat1 == ""; } )
  5.   .set( [=]( data_t & d ) { d.mCat1 = "none"; } );
  6.  
  7. data.update
  8.   .where( [=]( const data_t & d ) { d.mCat2 == ""; })
  9.   .set( [=]( data_t & d ) { d.mCat2 = "none"; } );
  10.  
  11. data.update
  12.   .where( [=]( const data_t & d ) { d.mPort == 53 && d.mProto == "udp"; } )
  13.   .set( [=]( data_t & d ) { d.mCat2 = "none"; d.mCat1 = "dns"; } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement