netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
stack.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "stack.h"
Include dependency graph for stack.c:

Functions

struct stack_itemstack_item_alloc (int type, size_t data_len)
 
void stack_item_free (struct stack_item *e)
 
void stack_item_push (struct stack *s, struct stack_item *e)
 
struct stack_itemstack_item_pop (struct stack *s, int type)
 

Function Documentation

struct stack_item* stack_item_alloc ( int  type,
size_t  data_len 
)
void stack_item_free ( struct stack_item e)
struct stack_item* stack_item_pop ( struct stack s,
int  type 
)
void stack_item_push ( struct stack s,
struct stack_item e 
)

References stack_item::head, and stack::list.