Compare Revisions

The credentials to download the source code are:
 Username: svnusers
 Password: svnusers

Ignore whitespace Rev 3319 → Rev 3320

/branches/STF525/ccsrc/Protocols/Pcap/pcap_offline_layer.cc
134,8 → 134,8
}
 
void* pcap_offline_layer::thread() {
struct pcap_o_pkthdr *pkt_header;
struct pcap_o_pkthdr lh;
pcap_o_pkthdr *pkt_header;
pcap_o_pkthdr lh;
const u_char *pkt_data;
unsigned char pkt_count = 0;
 
/branches/STF525/ccsrc/Protocols/Pcap/pcap_offline_layer.hh
16,7 → 16,7
#include "t_layer.hh"
#include "params.hh"
 
#include <OctetString.hh>
#include <Octetstring.hh>
 
class PORT; //! Forward declaration of TITAN class
 
/branches/STF525/ccsrc/Protocols/UDP/udp_layer.cc
90,7 → 90,7
 
unsigned char buffer[2048] = {0};
struct sockaddr_in from = {0};
socklen_t len = 0; // Length of sender's address
socklen_t len = sizeof(struct sockaddr_in); // Length of sender's address
params params;
int result = ::recvfrom(_fd, buffer, 1024, 0, (struct sockaddr *)&from, &len); // FIXME Add support of EAGAIN
loggers::get_instance().log("udp_layer::receive_data: src_port = %s:%d, payload length = %d", ::inet_ntoa(from.sin_addr), ntohs(from.sin_port), result);