Changeset 862

Show
Ignore:
Timestamp:
06/25/06 21:34:49 (7 years ago)
Author:
ahu
Message:

make dnswasher compile again

Location:
trunk/pdns/pdns
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/dnspcap.cc

    r840 r862  
    7373    d_ip=reinterpret_cast<struct ip*>(d_buffer + d_skipMediaHeader); 
    7474 
    75     uint16_t contentCode; 
     75    uint16_t contentCode=0; 
    7676    if(d_pfh.linktype==1)  
    7777      contentCode=ntohs(d_ether->ether_type); 
  • trunk/pdns/pdns/dnswasher.cc

    r527 r862  
    1515#include "statbag.hh" 
    1616#include "dnspcap.hh" 
    17 #include <arpa/nameser.h> 
    1817 
    1918using namespace boost; 
     
    5352 
    5453  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; 
    5756 
    5857      if(dh->rd) {