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-septel.c File Reference
#include <sys/param.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "pcap-int.h"
#include <netinet/in.h>
#include <sys/mman.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <msg.h>
#include <ss7_inc.h>
#include <sysgct.h>
#include <pack.h>
#include <system.h>
#include "pcap-septel.h"
Include dependency graph for pcap-septel.c:

Go to the source code of this file.

Data Structures

struct  pcap_septel
 

Functions

static int septel_stats (pcap_t *p, struct pcap_stat *ps)
 
static int septel_getnonblock (pcap_t *p)
 
static int septel_setnonblock (pcap_t *p, int nonblock)
 
struct pcap_septel septel_read (pcap_t *p, int cnt, pcap_handler callback, u_char *user)
 
static int septel_inject (pcap_t *handle, const void *buf, int size)
 
static pcap_tseptel_activate (pcap_t *handle)
 
pcap_tseptel_create (const char *device, char *ebuf, int *is_ours)
 
int septel_findalldevs (pcap_if_list_t *devlistp, char *errbuf)
 

Variables

struct pcap_stat stat
 

Function Documentation

◆ septel_activate()

◆ septel_create()

pcap_t* septel_create ( const char *  device,
char *  ebuf,
int *  is_ours 
)

◆ septel_findalldevs()

int septel_findalldevs ( pcap_if_list_t devlistp,
char *  errbuf 
)

Definition at line 265 of file pcap-septel.c.

References add_dev().

◆ septel_getnonblock()

static int septel_getnonblock ( pcap_t p)
static

Definition at line 283 of file pcap-septel.c.

References pcap::errbuf, and PCAP_ERRBUF_SIZE.

Referenced by septel_activate(), and septel_create().

◆ septel_inject()

static int septel_inject ( pcap_t handle,
const void *  buf,
int  size 
)
static

Definition at line 172 of file pcap-septel.c.

References pcap::errbuf, PCAP_ERRBUF_SIZE, and pcap_strlcpy().

Referenced by septel_activate().

◆ septel_read()

struct pcap_septel septel_read ( pcap_t p,
int  cnt,
pcap_handler  callback,
u_char *  user 
)

Definition at line 36 of file pcap-septel.c.

Referenced by septel_activate().

◆ septel_setnonblock()

static int septel_setnonblock ( pcap_t p,
int  nonblock 
)
static

Definition at line 290 of file pcap-septel.c.

Referenced by septel_activate(), and septel_create().

◆ septel_stats()

static int septel_stats ( pcap_t p,
struct pcap_stat ps 
)
static

Definition at line 253 of file pcap-septel.c.

References pcap::priv, and pcap_septel::stat.

Referenced by septel_activate().

Variable Documentation

◆ stat

struct pcap_stat stat

Definition at line 290 of file pcap-septel.c.

Referenced by is_wifi(), linux_get_stat(), rdmasniff_stats(), and read_infile().