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

Functions

struct fdscreate_fds (void)
 
void destroy_fds (struct fds *fds)
 
int register_fd (int fd, void(*cb)(void *data), void *data, struct fds *fds)
 
int unregister_fd (int fd, struct fds *fds)
 
void __attribute__ ((noreturn))
 

Function Documentation

void __attribute__ ( (noreturn)  )

References do_alarm_run(), do_gettimeofday(), get_next_alarm_run(), NULL, and STATE.

Here is the call graph for this function:

struct fds* create_fds ( void  )

References INIT_LIST_HEAD, fds::list, and NULL.

Referenced by init().

Here is the caller graph for this function:

void destroy_fds ( struct fds fds)

References fds_item::fd, fds_item::head, fds::list, list_for_each_entry_safe, and fds::readfds.

Referenced by killer().

Here is the caller graph for this function:

int register_fd ( int  fd,
void(*)(void *data cb,
void *  data,
struct fds fds 
)

References fds_item::cb, fds_item::data, data, fds_item::fd, fds_item::head, fds::list, fds::maxfd, NULL, and fds::readfds.

Referenced by cthelper_init(), ctnl_init(), and init().

Here is the caller graph for this function:

int unregister_fd ( int  fd,
struct fds fds 
)

References fds_item::fd, fds_item::head, fds::list, list_for_each_entry, list_for_each_entry_safe, fds::maxfd, and fds::readfds.

Referenced by tcp_accept(), and tcp_recv().

Here is the caller graph for this function: