Show
Ignore:
Timestamp:
04/14/06 13:26:50 (4 years ago)
Author:
ahu
Message:

implement stunningly cool spoofing protection, plus spoofer in dnspbench

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/syncres.hh

    r697 r699  
    318318struct PacketID 
    319319{ 
    320   PacketID() : sock(0), inNeeded(0), outPos(0) 
     320  PacketID() : sock(0), inNeeded(0), outPos(0), nearMisses(0) 
    321321  {} 
    322322 
     
    330330  string outMSG; // the outgoing message that needs to be sent 
    331331  string::size_type outPos;    // how far we are along in the outMSG 
     332 
     333  mutable uint32_t nearMisses; // number of near misses - host correct, id wrong 
    332334 
    333335  bool operator<(const PacketID& b) const