FreeBSD kernel IPv4 code
alias_mod.c File Reference
#include <sys/cdefs.h>
#include <sys/libkern.h>
#include <sys/param.h>
#include <sys/lock.h>
#include <sys/rwlock.h>
#include <netinet/in_systm.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/libalias/alias_local.h>
#include <netinet/libalias/alias_mod.h>
Include dependency graph for alias_mod.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
static TAILQ_HEAD (handler_chain, proto_handler)
 
int LibAliasAttachHandlers (struct proto_handler *p)
 
int LibAliasDetachHandlers (struct proto_handler *p)
 
int find_handler (int8_t dir, int8_t proto, struct libalias *la, struct ip *ip, struct alias_data *ad)
 
struct proto_handlerfirst_handler (void)
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ find_handler()

int find_handler ( int8_t  dir,
int8_t  proto,
struct libalias la,
struct ip ip,
struct alias_data ad 
)

Definition at line 109 of file alias_mod.c.

References proto_handler::dir, proto_handler::fingerprint, proto_handler::proto, and proto_handler::protohandler.

Referenced by LibAliasInLocked(), LibAliasOutLocked(), TcpAliasIn(), TcpAliasOut(), UdpAliasIn(), and UdpAliasOut().

Here is the caller graph for this function:

◆ first_handler()

struct proto_handler * first_handler ( void  )

Definition at line 123 of file alias_mod.c.

◆ LibAliasAttachHandlers()

int LibAliasAttachHandlers ( struct proto_handler p)

Definition at line 82 of file alias_mod.c.

References proto_handler::dir, and NODIR.

Referenced by mod_handler().

Here is the caller graph for this function:

◆ LibAliasDetachHandlers()

int LibAliasDetachHandlers ( struct proto_handler p)

Definition at line 98 of file alias_mod.c.

References proto_handler::dir, and NODIR.

Referenced by mod_handler().

Here is the caller graph for this function:

◆ TAILQ_HEAD()

static TAILQ_HEAD ( handler_chain  ,
proto_handler   
)
static

Definition at line 57 of file alias_mod.c.

Referenced by tcp_hptsi().

Here is the caller graph for this function: