netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
local.h File Reference
This graph shows which files directly or indirectly include this file:

Data Structures

struct  local_conf
 
struct  local_server
 

Macros

#define UNIX_PATH_MAX   108
 
#define LOCAL_RET_ERROR   -1
 
#define LOCAL_RET_OK   0
 
#define LOCAL_RET_STOLEN   1
 

Functions

int local_server_create (struct local_server *server, struct local_conf *conf)
 
void local_server_destroy (struct local_server *server)
 
int do_local_server_step (struct local_server *server, void *data, int(*process)(int fd, void *data))
 
int local_client_create (struct local_conf *conf)
 
void local_client_destroy (int fd)
 
int do_local_client_step (int fd, void(*process)(char *buf))
 
int do_local_request (int, struct local_conf *, void(*step)(char *buf))
 
void local_step (char *buf)
 

Macro Definition Documentation

#define LOCAL_RET_ERROR   -1

Referenced by ctnl_local().

#define LOCAL_RET_OK   0

Referenced by cthelper_local(), and ctnl_local().

#define LOCAL_RET_STOLEN   1

Referenced by do_local_server_step().

#define UNIX_PATH_MAX   108

Function Documentation

int do_local_client_step ( int  fd,
void(*)(char *buf process 
)

References buf.

Referenced by do_local_request().

Here is the caller graph for this function:

int do_local_request ( int  ,
struct local_conf ,
void(*)(char *buf step 
)

References do_local_client_step(), local_client_create(), and local_client_destroy().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int do_local_server_step ( struct local_server server,
void *  data,
int(*)(int fd, void *data process 
)
int local_client_create ( struct local_conf conf)

References len, and local_conf::path.

Referenced by do_local_request().

Here is the caller graph for this function:

void local_client_destroy ( int  fd)

Referenced by do_local_request().

Here is the caller graph for this function:

int local_server_create ( struct local_server server,
struct local_conf conf 
)

References local_conf::backlog, local_server::fd, len, local_conf::path, local_server::path, and local_conf::reuseaddr.

Referenced by init().

Here is the caller graph for this function:

void local_server_destroy ( struct local_server server)

References local_server::fd, and local_server::path.

Referenced by killer().

Here is the caller graph for this function:

void local_step ( char *  buf)

Referenced by main().

Here is the caller graph for this function: