Functions | Variables
ll_com.c File Reference
#include "config/compiler.h"
#include <sys/types.h>
#include <sys/time.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <linux/if.h>
#include <netpacket/packet.h>
#include <net/ethernet.h>
#include <asm/types.h>
#include <time.h>
#include <pcap.h>
#include <netinet/if_ether.h>
#include "core/include/ml_com.h"
#include "core/include/definitions.h"
#include "core/interface/wmp_interface.h"
#include "core/include/wmp_misc.h"
#include "core/include/frames.h"
#include "core/include/ll_com.h"
#include "radiotap/radiotap.h"
#include "radiotap/radiotap_iter.h"
Include dependency graph for linux_us/hwi/raw/ll_com.c:

Go to the source code of this file.

Functions

void closeLowLevelCom ()
static int eth_raw_init (char *DEVICE)
char getSimulatedRssiRX (char *f)
int initLowLevelCom ()
static int llpsend (char *f, int size, int proto)
rxInfo llreceive (char *f, int timeout)
int llsend (char *f, int size)
static void parse_radiotap (struct ieee80211_radiotap_header *buf, int *rate, char *rssi, char *noise)
static int pcap_init (char *dev, int promisc)
static rxInfo pcap_sniff_packet (char *data, int delay_ms)
static int readllcfg ()

Variables

static unsigned char bcast_mac [6]
static char buffer [2500]
static char DEV [20]
static int dl
static struct ethhdr * eh
static char ESSID [32]
static char * eth_data
static char * eth_head
static int freq
static pcap_t * handle
static struct pcap_pkthdr header
static char param [20]
static int pfd [2]
static int rx
static int s
static struct sockaddr_ll socket_address
static unsigned char src_mac [6]
static int txpower
static int use_lo = 0
static int use_mon = 1
static char val [20]

Function Documentation

void closeLowLevelCom ( void  )

Definition at line 325 of file linux_us/hwi/raw/ll_com.c.

static int eth_raw_init ( char *  DEVICE) [static]

Definition at line 269 of file linux_us/hwi/raw/ll_com.c.

char getSimulatedRssiRX ( char *  f)

Definition at line 464 of file linux_us/hwi/raw/ll_com.c.

int initLowLevelCom ( void  )

Definition at line 329 of file linux_us/hwi/raw/ll_com.c.

static int llpsend ( char *  f,
int  size,
int  proto 
) [static]

Definition at line 445 of file linux_us/hwi/raw/ll_com.c.

rxInfo llreceive ( char *  f,
int  timeout 
)

Definition at line 484 of file linux_us/hwi/raw/ll_com.c.

int llsend ( char *  f,
int  size 
)

Definition at line 459 of file linux_us/hwi/raw/ll_com.c.

static void parse_radiotap ( struct ieee80211_radiotap_header buf,
int *  rate,
char *  rssi,
char *  noise 
) [static]

Definition at line 132 of file linux_us/hwi/raw/ll_com.c.

static int pcap_init ( char *  dev,
int  promisc 
) [static]

Definition at line 184 of file linux_us/hwi/raw/ll_com.c.

static rxInfo pcap_sniff_packet ( char *  data,
int  delay_ms 
) [static]

Definition at line 197 of file linux_us/hwi/raw/ll_com.c.

static int readllcfg ( void  ) [static]

Definition at line 83 of file linux_us/hwi/raw/ll_com.c.


Variable Documentation

unsigned char bcast_mac[6] [static]
Initial value:
 { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
                0xFF }

Definition at line 77 of file linux_us/hwi/raw/ll_com.c.

char buffer[2500] [static]

Definition at line 75 of file linux_us/hwi/raw/ll_com.c.

char DEV[20] [static]

Definition at line 75 of file linux_us/hwi/raw/ll_com.c.

int dl [static]

Definition at line 72 of file linux_us/hwi/raw/ll_com.c.

struct ethhdr* eh [static]

Definition at line 73 of file linux_us/hwi/raw/ll_com.c.

char ESSID[32] [static]

Definition at line 75 of file linux_us/hwi/raw/ll_com.c.

char * eth_data [static]

Definition at line 75 of file linux_us/hwi/raw/ll_com.c.

char * eth_head [static]

Definition at line 75 of file linux_us/hwi/raw/ll_com.c.

int freq [static]

Definition at line 72 of file linux_us/hwi/raw/ll_com.c.

pcap_t* handle [static]

Definition at line 80 of file linux_us/hwi/raw/ll_com.c.

struct pcap_pkthdr header [static]

Definition at line 79 of file linux_us/hwi/raw/ll_com.c.

char param[20] [static]

Definition at line 75 of file linux_us/hwi/raw/ll_com.c.

int pfd[2] [static]

Definition at line 72 of file linux_us/hwi/raw/ll_com.c.

int rx [static]

Definition at line 72 of file linux_us/hwi/raw/ll_com.c.

int s [static]

Definition at line 72 of file linux_us/hwi/raw/ll_com.c.

struct sockaddr_ll socket_address [static]

Definition at line 74 of file linux_us/hwi/raw/ll_com.c.

unsigned char src_mac[6] [static]

Definition at line 77 of file linux_us/hwi/raw/ll_com.c.

int txpower [static]

Definition at line 72 of file linux_us/hwi/raw/ll_com.c.

int use_lo = 0 [static]

Definition at line 81 of file linux_us/hwi/raw/ll_com.c.

int use_mon = 1 [static]

Definition at line 72 of file linux_us/hwi/raw/ll_com.c.

char val[20] [static]

Definition at line 75 of file linux_us/hwi/raw/ll_com.c.



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