netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
local.c File Reference
#include "local.h"
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <arpa/inet.h>
#include <sys/un.h>
Include dependency graph for local.c:

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))
 
void local_step (char *buf)
 
int do_local_request (int request, struct local_conf *conf, void(*step)(char *buf))
 

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  request,
struct local_conf 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: