Changeset 862
- Timestamp:
- 06/25/06 21:34:49 (7 years ago)
- Location:
- trunk/pdns/pdns
- Files:
-
- 2 modified
-
dnspcap.cc (modified) (1 diff)
-
dnswasher.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/dnspcap.cc
r840 r862 73 73 d_ip=reinterpret_cast<struct ip*>(d_buffer + d_skipMediaHeader); 74 74 75 uint16_t contentCode ;75 uint16_t contentCode=0; 76 76 if(d_pfh.linktype==1) 77 77 contentCode=ntohs(d_ether->ether_type); -
trunk/pdns/pdns/dnswasher.cc
r527 r862 15 15 #include "statbag.hh" 16 16 #include "dnspcap.hh" 17 #include <arpa/nameser.h>18 17 19 18 using namespace boost; … … 53 52 54 53 while(pr.getUDPPacket()) { 55 if(ntohs(pr.d_udp->uh_dport)==53 || ntohs(pr.d_udp->uh_sport)==53 && pr.d_len > sizeof( HEADER)) {56 HEADER* dh=(HEADER*)pr.d_payload;54 if(ntohs(pr.d_udp->uh_dport)==53 || ntohs(pr.d_udp->uh_sport)==53 && pr.d_len > sizeof(dnsheader)) { 55 dnsheader* dh=(dnsheader*)pr.d_payload; 57 56 58 57 if(dh->rd) {