FreeBSD kernel IPv4 code
alias_mod.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  alias_data
 
struct  proto_handler
 

Macros

#define IN   0x0001
 
#define OUT   0x0002
 
#define NODIR   0x4000
 
#define IP   0x01
 
#define TCP   0x02
 
#define UDP   0x04
 
#define EOH   .dir = NODIR
 

Functions

 MALLOC_DECLARE (M_ALIAS)
 
int LibAliasAttachHandlers (struct proto_handler *)
 
int LibAliasDetachHandlers (struct proto_handler *)
 
int find_handler (int8_t, int8_t, struct libalias *, struct ip *, struct alias_data *)
 
struct proto_handlerfirst_handler (void)
 

Macro Definition Documentation

◆ EOH

#define EOH   .dir = NODIR

Definition at line 92 of file alias_mod.h.

◆ IN

#define IN   0x0001

Definition at line 52 of file alias_mod.h.

◆ IP

#define IP   0x01

Definition at line 57 of file alias_mod.h.

◆ NODIR

#define NODIR   0x4000

Definition at line 54 of file alias_mod.h.

◆ OUT

#define OUT   0x0002

Definition at line 53 of file alias_mod.h.

◆ TCP

#define TCP   0x02

Definition at line 58 of file alias_mod.h.

◆ UDP

#define UDP   0x04

Definition at line 59 of file alias_mod.h.

Function Documentation

◆ 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:

◆ MALLOC_DECLARE()

MALLOC_DECLARE ( M_ALIAS  )