libpcap  1.10.1
About: libpcap is a packet filter library used by tools like tcpdump.
  Fossies Dox: libpcap-1.10.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

pcap-haiku.cpp File Reference
#include "config.h"
#include "pcap-int.h"
#include <OS.h>
#include <sys/socket.h>
#include <sys/sockio.h>
#include <net/if.h>
#include <net/if_dl.h>
#include <net/if_types.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for pcap-haiku.cpp:

Go to the source code of this file.

Data Structures

struct  pcap_haiku


bool prepare_request (struct ifreq &request, const char *name)
static int pcap_read_haiku (pcap_t *handle, int maxPackets, pcap_handler callback, u_char *userdata)
static int pcap_inject_haiku (pcap_t *handle, const void *buffer, int size)
static int pcap_stats_haiku (pcap_t *handle, struct pcap_stat *stats)
static int pcap_activate_haiku (pcap_t *handle)
pcap_tpcap_create_interface (const char *device, char *errorBuffer)
static int can_be_bound (const char *name)
static int get_if_flags (const char *name, bpf_u_int32 *flags, char *errbuf)
int pcap_platform_finddevs (pcap_if_list_t *_allDevices, char *errorBuffer)

Function Documentation

◆ can_be_bound()

static int can_be_bound ( const char *  name)

Definition at line 257 of file pcap-haiku.cpp.

◆ get_if_flags()

static int get_if_flags ( const char *  name,
bpf_u_int32 flags,
char *  errbuf 

Definition at line 263 of file pcap-haiku.cpp.


◆ pcap_activate_haiku()

◆ pcap_create_interface()

pcap_t* pcap_create_interface ( const char *  device,
char *  errorBuffer 

◆ pcap_inject_haiku()

static int pcap_inject_haiku ( pcap_t handle,
const void *  buffer,
int  size 

Definition at line 111 of file pcap-haiku.cpp.

References pcap::errbuf, and PCAP_ERRBUF_SIZE.

Referenced by pcap_activate_haiku().

◆ pcap_platform_finddevs()

int pcap_platform_finddevs ( pcap_if_list_t _allDevices,
char *  errorBuffer 

Definition at line 278 of file pcap-haiku.cpp.

◆ pcap_read_haiku()

static int pcap_read_haiku ( pcap_t handle,
int  maxPackets,
pcap_handler  callback,
u_char *  userdata 

◆ pcap_stats_haiku()

static int pcap_stats_haiku ( pcap_t handle,
struct pcap_stat stats 

◆ prepare_request()

bool prepare_request ( struct ifreq &  request,
const char *  name 

Definition at line 39 of file pcap-haiku.cpp.

References IF_NAMESIZE.

Referenced by pcap_create_interface(), and pcap_stats_haiku().