Functions | Variables
pcap_layer.cc File Reference
#include <pcap.h>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <iostream>
#include <sstream>
#include <zlib.h>
#include <ctime>
#include <netinet/if_ether.h>
#include <netinet/udp.h>
#include <netinet/ip.h>
#include "pcap_layer.h"
#include "wmp_config.h"
#include "core/include/frames.h"
#include <stdlib.h>
#include "misc.h"
Include dependency graph for pcap_layer.cc:

Go to the source code of this file.

Functions

int decompress (char *buf, int *size)
double int2Rate (unsigned char val)
int pcap_init (char *dev, int num_nodes)
void pcap_layer_close ()
int pcap_sniff_packet (char *data, simData_Hdr &sd, unsigned long long &time_us, std::map< int, robo_pose_t > &poses)

Variables

static pcap_t * handle
static struct pcap_pkthdr header
std::map< int, int > mac_ip
static int offset
static bool pcap_keep_running
static int pfd [2]
static int serial = 100

Function Documentation

int decompress ( char *  buf,
int *  size 
)

Definition at line 109 of file pcap_layer.cc.

double int2Rate ( unsigned char  val)

Definition at line 82 of file pcap_layer.cc.

int pcap_init ( char *  dev,
int  num_nodes 
)

Definition at line 65 of file pcap_layer.cc.

void pcap_layer_close ( )

Definition at line 301 of file pcap_layer.cc.

int pcap_sniff_packet ( char *  data,
simData_Hdr sd,
unsigned long long &  time_us,
std::map< int, robo_pose_t > &  poses 
)

Definition at line 124 of file pcap_layer.cc.


Variable Documentation

pcap_t* handle [static]

Definition at line 57 of file pcap_layer.cc.

struct pcap_pkthdr header [static]

Definition at line 58 of file pcap_layer.cc.

std::map<int, int> mac_ip

Definition at line 63 of file pcap_layer.cc.

int offset [static]

Definition at line 59 of file pcap_layer.cc.

bool pcap_keep_running [static]

Definition at line 60 of file pcap_layer.cc.

int pfd[2] [static]

Definition at line 61 of file pcap_layer.cc.

int serial = 100 [static]

Definition at line 123 of file pcap_layer.cc.



ros_rt_wmp_sniffer
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Mon Oct 6 2014 08:27:58