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)  

dlpisubs.c File Reference
#include <sys/types.h>
#include <sys/time.h>
#include <sys/dlpi.h>
#include <sys/stream.h>
#include <errno.h>
#include <memory.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stropts.h>
#include <unistd.h>
#include "pcap-int.h"
#include "dlpisubs.h"
Include dependency graph for dlpisubs.c:

Go to the source code of this file.

Macros

#define DL_IPATM   0x12 /* ATM Classical IP interface */
 
#define MAXDLBUF   8192
 
#define PKTBUFSIZE   (MAXDLBUF * sizeof(bpf_u_int32))
 
#define REQUIRE_ALIGNMENT
 

Functions

int pcap_stats_dlpi (pcap_t *p, struct pcap_stat *ps)
 
int pcap_process_pkts (pcap_t *p, pcap_handler callback, u_char *user, int count, u_char *bufp, int len)
 
int pcap_process_mactype (pcap_t *p, u_int mactype)
 
int pcap_alloc_databuf (pcap_t *p)
 
int strioctl (int fd, int cmd, int len, char *dp)
 

Macro Definition Documentation

◆ DL_IPATM

#define DL_IPATM   0x12 /* ATM Classical IP interface */

Definition at line 19 of file dlpisubs.c.

◆ MAXDLBUF

#define MAXDLBUF   8192

Definition at line 44 of file dlpisubs.c.

◆ PKTBUFSIZE

#define PKTBUFSIZE   (MAXDLBUF * sizeof(bpf_u_int32))

Definition at line 45 of file dlpisubs.c.

◆ REQUIRE_ALIGNMENT

#define REQUIRE_ALIGNMENT

Definition at line 127 of file dlpisubs.c.

Function Documentation

◆ pcap_alloc_databuf()

int pcap_alloc_databuf ( pcap_t p)

◆ pcap_process_mactype()

◆ pcap_process_pkts()

int pcap_process_pkts ( pcap_t p,
pcap_handler  callback,
u_char *  user,
int  count,
u_char *  bufp,
int  len 
)

◆ pcap_stats_dlpi()

int pcap_stats_dlpi ( pcap_t p,
struct pcap_stat ps 
)

Definition at line 80 of file dlpisubs.c.

References pd, pcap::priv, pcap_stat::ps_drop, and pcap_stat::ps_recv.

Referenced by pcap_activate_dlpi(), and pcap_activate_libdlpi().

◆ strioctl()

int strioctl ( int  fd,
int  cmd,
int  len,
char *  dp 
)

Definition at line 388 of file dlpisubs.c.

References ioctl().

Referenced by nit_setflags(), pcap_activate_dlpi(), pcap_activate_snit(), and pcap_platform_finddevs().