|
Data Structures |
struct | s_buf |
struct | s_data_buf |
struct | s_pkbuf |
struct | s_pkbuf::s_pk_info |
struct | s_pkbuf::s_pk_info::s_input_info |
struct | s_pkbuf::s_pk_info::s_output_info |
Defines |
#define | BF_DATA(bf, off) ((char *)bf + sizeof (struct s_buf) + off) |
#define | PK_INPUT(pk) (pk)->pk_info.pk_input_info |
#define | PK_OUTPUT(pk) (pk)->pk_info.pk_output_info |
#define | PK_DA(pk) (pk)->pk_info.pk_da |
#define | PK_SA(pk) (pk)->pk_info.pk_sa |
#define | EXTRACT_LH 0 |
#define | EXTRACT_NH 1 |
#define | EXTRACT_PH 2 |
#define | INCLUDE_DATA (1<<0) |
#define | INCLUDE_PH (1<<1) |
#define | INCLUDE_NH (1<<2) |
#define | INCLUDE_LH (1<<3) |
#define | INCLUDE_HDRS (INCLUDE_LH | INCLUDE_NH | INCLUDE_PH) |
#define | INCLUDE_ALL (INCLUDE_DATA | INCLUDE_HDRS) |
Functions |
| TAILQ_HEAD (s_pkq, s_pkbuf) |
s_data_buf * | data_buf_alloc2 (size_t buf_size) |
s_data_buf * | data_buf_alloc (struct s_buf *buf, off_t buf_off, size_t buf_size) |
s_data_buf * | data_buf_clone (struct s_data_buf *data_buf) |
void | data_buf_free (struct s_data_buf *data_buf) |
s_buf * | buf_alloc (size_t size) |
s_pkbuf * | pkbuf_alloc (size_t size) |
s_pkbuf * | pkbuf_clone (struct s_pkbuf *pkbuf) |
char * | pkbuf_extract (struct s_pkbuf *pk, int type, size_t size) |
char * | pkbuf_extand (struct s_pkbuf *pk, int type, size_t extsize) |
ssize_t | data_buf_write (struct s_data_buf *data_buf, pid_t owner, off_t offset, vaddr_t ubuf, size_t usize) |
ssize_t | pkbuf_write (struct s_pkbuf *pkbuf, pid_t owner, off_t offset, int flags, vaddr_t ubuf, size_t usize) |
void | buf_free (struct s_buf *buf) |
void | pkbuf_free (struct s_pkbuf *pk) |
u_int16_t | pkbuf_cksum (struct s_pkbuf *pk, int flags, u_int8_t *phdr, size_t phdr_size) |
Variables |
int | gl_buf_cpt |
int | gl_pkbuf_cpt |
int | gl_data_buf_cpt |