FD.io VPP  v21.01.1
Vector Packet Processing
nat_syslog.c File Reference

NAT syslog logging. More...

+ Include dependency graph for nat_syslog.c:

Go to the source code of this file.

Macros

#define NAT_FACILITY   SYSLOG_FACILITY_LOCAL0
 
#define NAT_APPNAME   "NAT"
 
#define SADD_SDEL_SEVERITY   SYSLOG_SEVERITY_INFORMATIONAL
 
#define APMADD_APMDEL_SEVERITY   SYSLOG_SEVERITY_INFORMATIONAL
 
#define SADD_MSGID   "SADD"
 
#define SDEL_MSGID   "SDEL"
 
#define APMADD_MSGID   "APMADD"
 
#define APMDEL_MSGID   "APMDEL"
 
#define NSESS_SDID   "nsess"
 
#define NAPMAP_SDID   "napmap"
 
#define SSUBIX_SDPARAM_NAME   "SSUBIX"
 
#define SVLAN_SDPARAM_NAME   "SVLAN"
 
#define IATYP_SDPARAM_NAME   "IATYP"
 
#define ISADDR_SDPARAM_NAME   "ISADDR"
 
#define ISPORT_SDPARAM_NAME   "ISPORT"
 
#define IDADDR_SDPARAM_NAME   "IDADDR"
 
#define IDPORT_SDPARAM_NAME   "IDPORT"
 
#define XATYP_SDPARAM_NAME   "XATYP"
 
#define XSADDR_SDPARAM_NAME   "XSADDR"
 
#define XSPORT_SDPARAM_NAME   "XSPORT"
 
#define XDADDR_SDPARAM_NAME   "XDADDR"
 
#define XDPORT_SDPARAM_NAME   "XDPORT"
 
#define PROTO_SDPARAM_NAME   "PROTO"
 
#define SV6ENC_SDPARAM_NAME   "SV6ENC"
 
#define IATYP_IPV4   "IPv4"
 
#define IATYP_IPV6   "IPv6"
 

Functions

static void nat_syslog_nat44_apmap (u32 ssubix, u32 sfibix, ip4_address_t *isaddr, u16 isport, ip4_address_t *xsaddr, u16 xsport, nat_protocol_t proto, u8 is_add, ip6_address_t *sv6enc)
 
void nat_syslog_nat44_apmadd (u32 ssubix, u32 sfibix, ip4_address_t *isaddr, u16 isport, ip4_address_t *xsaddr, u16 xsport, nat_protocol_t proto)
 
void nat_syslog_nat44_apmdel (u32 ssubix, u32 sfibix, ip4_address_t *isaddr, u16 isport, ip4_address_t *xsaddr, u16 xsport, nat_protocol_t proto)
 
void nat_syslog_dslite_apmadd (u32 ssubix, ip6_address_t *sv6enc, ip4_address_t *isaddr, u16 isport, ip4_address_t *xsaddr, u16 xsport, nat_protocol_t proto)
 
void nat_syslog_dslite_apmdel (u32 ssubix, ip6_address_t *sv6enc, ip4_address_t *isaddr, u16 isport, ip4_address_t *xsaddr, u16 xsport, nat_protocol_t proto)
 
static void nat_syslog_nat44_sess (u32 ssubix, u32 sfibix, ip4_address_t *isaddr, u16 isport, ip4_address_t *xsaddr, u16 xsport, ip4_address_t *idaddr, u16 idport, ip4_address_t *xdaddr, u16 xdport, nat_protocol_t proto, u8 is_add, u8 is_twicenat)
 
void nat_syslog_nat44_sadd (u32 ssubix, u32 sfibix, ip4_address_t *isaddr, u16 isport, ip4_address_t *idaddr, u16 idport, ip4_address_t *xsaddr, u16 xsport, ip4_address_t *xdaddr, u16 xdport, nat_protocol_t proto, u8 is_twicenat)
 
void nat_syslog_nat44_sdel (u32 ssubix, u32 sfibix, ip4_address_t *isaddr, u16 isport, ip4_address_t *idaddr, u16 idport, ip4_address_t *xsaddr, u16 xsport, ip4_address_t *xdaddr, u16 xdport, nat_protocol_t proto, u8 is_twicenat)
 
static void nat_syslog_nat64_sess (u32 sfibix, ip6_address_t *isaddr, u16 isport, ip4_address_t *xsaddr, u16 xsport, ip4_address_t *xdaddr, u16 xdport, nat_protocol_t proto, u8 is_add)
 
void nat_syslog_nat64_sadd (u32 sfibix, ip6_address_t *isaddr, u16 isport, ip4_address_t *xsaddr, u16 xsport, ip4_address_t *xdaddr, u16 xdport, nat_protocol_t proto)
 
void nat_syslog_nat64_sdel (u32 sfibix, ip6_address_t *isaddr, u16 isport, ip4_address_t *xsaddr, u16 xsport, ip4_address_t *xdaddr, u16 xdport, nat_protocol_t proto)
 

Detailed Description

NAT syslog logging.

Definition in file nat_syslog.c.

Macro Definition Documentation

◆ APMADD_APMDEL_SEVERITY

#define APMADD_APMDEL_SEVERITY   SYSLOG_SEVERITY_INFORMATIONAL

Definition at line 31 of file nat_syslog.c.

◆ APMADD_MSGID

#define APMADD_MSGID   "APMADD"

Definition at line 35 of file nat_syslog.c.

◆ APMDEL_MSGID

#define APMDEL_MSGID   "APMDEL"

Definition at line 36 of file nat_syslog.c.

◆ IATYP_IPV4

#define IATYP_IPV4   "IPv4"

Definition at line 56 of file nat_syslog.c.

◆ IATYP_IPV6

#define IATYP_IPV6   "IPv6"

Definition at line 57 of file nat_syslog.c.

◆ IATYP_SDPARAM_NAME

#define IATYP_SDPARAM_NAME   "IATYP"

Definition at line 43 of file nat_syslog.c.

◆ IDADDR_SDPARAM_NAME

#define IDADDR_SDPARAM_NAME   "IDADDR"

Definition at line 46 of file nat_syslog.c.

◆ IDPORT_SDPARAM_NAME

#define IDPORT_SDPARAM_NAME   "IDPORT"

Definition at line 47 of file nat_syslog.c.

◆ ISADDR_SDPARAM_NAME

#define ISADDR_SDPARAM_NAME   "ISADDR"

Definition at line 44 of file nat_syslog.c.

◆ ISPORT_SDPARAM_NAME

#define ISPORT_SDPARAM_NAME   "ISPORT"

Definition at line 45 of file nat_syslog.c.

◆ NAPMAP_SDID

#define NAPMAP_SDID   "napmap"

Definition at line 39 of file nat_syslog.c.

◆ NAT_APPNAME

#define NAT_APPNAME   "NAT"

Definition at line 28 of file nat_syslog.c.

◆ NAT_FACILITY

#define NAT_FACILITY   SYSLOG_FACILITY_LOCAL0

Definition at line 26 of file nat_syslog.c.

◆ NSESS_SDID

#define NSESS_SDID   "nsess"

Definition at line 38 of file nat_syslog.c.

◆ PROTO_SDPARAM_NAME

#define PROTO_SDPARAM_NAME   "PROTO"

Definition at line 53 of file nat_syslog.c.

◆ SADD_MSGID

#define SADD_MSGID   "SADD"

Definition at line 33 of file nat_syslog.c.

◆ SADD_SDEL_SEVERITY

#define SADD_SDEL_SEVERITY   SYSLOG_SEVERITY_INFORMATIONAL

Definition at line 30 of file nat_syslog.c.

◆ SDEL_MSGID

#define SDEL_MSGID   "SDEL"

Definition at line 34 of file nat_syslog.c.

◆ SSUBIX_SDPARAM_NAME

#define SSUBIX_SDPARAM_NAME   "SSUBIX"

Definition at line 41 of file nat_syslog.c.

◆ SV6ENC_SDPARAM_NAME

#define SV6ENC_SDPARAM_NAME   "SV6ENC"

Definition at line 54 of file nat_syslog.c.

◆ SVLAN_SDPARAM_NAME

#define SVLAN_SDPARAM_NAME   "SVLAN"

Definition at line 42 of file nat_syslog.c.

◆ XATYP_SDPARAM_NAME

#define XATYP_SDPARAM_NAME   "XATYP"

Definition at line 48 of file nat_syslog.c.

◆ XDADDR_SDPARAM_NAME

#define XDADDR_SDPARAM_NAME   "XDADDR"

Definition at line 51 of file nat_syslog.c.

◆ XDPORT_SDPARAM_NAME

#define XDPORT_SDPARAM_NAME   "XDPORT"

Definition at line 52 of file nat_syslog.c.

◆ XSADDR_SDPARAM_NAME

#define XSADDR_SDPARAM_NAME   "XSADDR"

Definition at line 49 of file nat_syslog.c.

◆ XSPORT_SDPARAM_NAME

#define XSPORT_SDPARAM_NAME   "XSPORT"

Definition at line 50 of file nat_syslog.c.

Function Documentation

◆ nat_syslog_dslite_apmadd()

void nat_syslog_dslite_apmadd ( u32  ssubix,
ip6_address_t *  sv6enc,
ip4_address_t isaddr,
u16  isport,
ip4_address_t xsaddr,
u16  xsport,
nat_protocol_t  proto 
)

Definition at line 125 of file nat_syslog.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_syslog_dslite_apmdel()

void nat_syslog_dslite_apmdel ( u32  ssubix,
ip6_address_t *  sv6enc,
ip4_address_t isaddr,
u16  isport,
ip4_address_t xsaddr,
u16  xsport,
nat_protocol_t  proto 
)

Definition at line 135 of file nat_syslog.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_syslog_nat44_apmadd()

void nat_syslog_nat44_apmadd ( u32  ssubix,
u32  sfibix,
ip4_address_t isaddr,
u16  isport,
ip4_address_t xsaddr,
u16  xsport,
nat_protocol_t  proto 
)

Definition at line 107 of file nat_syslog.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_syslog_nat44_apmap()

static void nat_syslog_nat44_apmap ( u32  ssubix,
u32  sfibix,
ip4_address_t isaddr,
u16  isport,
ip4_address_t xsaddr,
u16  xsport,
nat_protocol_t  proto,
u8  is_add,
ip6_address_t *  sv6enc 
)
inlinestatic

Definition at line 60 of file nat_syslog.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_syslog_nat44_apmdel()

void nat_syslog_nat44_apmdel ( u32  ssubix,
u32  sfibix,
ip4_address_t isaddr,
u16  isport,
ip4_address_t xsaddr,
u16  xsport,
nat_protocol_t  proto 
)

Definition at line 116 of file nat_syslog.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_syslog_nat44_sadd()

void nat_syslog_nat44_sadd ( u32  ssubix,
u32  sfibix,
ip4_address_t isaddr,
u16  isport,
ip4_address_t idaddr,
u16  idport,
ip4_address_t xsaddr,
u16  xsport,
ip4_address_t xdaddr,
u16  xdport,
nat_protocol_t  proto,
u8  is_twicenat 
)

Definition at line 197 of file nat_syslog.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_syslog_nat44_sdel()

void nat_syslog_nat44_sdel ( u32  ssubix,
u32  sfibix,
ip4_address_t isaddr,
u16  isport,
ip4_address_t idaddr,
u16  idport,
ip4_address_t xsaddr,
u16  xsport,
ip4_address_t xdaddr,
u16  xdport,
nat_protocol_t  proto,
u8  is_twicenat 
)

Definition at line 209 of file nat_syslog.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_syslog_nat44_sess()

static void nat_syslog_nat44_sess ( u32  ssubix,
u32  sfibix,
ip4_address_t isaddr,
u16  isport,
ip4_address_t xsaddr,
u16  xsport,
ip4_address_t idaddr,
u16  idport,
ip4_address_t xdaddr,
u16  xdport,
nat_protocol_t  proto,
u8  is_add,
u8  is_twicenat 
)
inlinestatic

Definition at line 145 of file nat_syslog.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_syslog_nat64_sadd()

void nat_syslog_nat64_sadd ( u32  sfibix,
ip6_address_t *  isaddr,
u16  isport,
ip4_address_t xsaddr,
u16  xsport,
ip4_address_t xdaddr,
u16  xdport,
nat_protocol_t  proto 
)

Definition at line 263 of file nat_syslog.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_syslog_nat64_sdel()

void nat_syslog_nat64_sdel ( u32  sfibix,
ip6_address_t *  isaddr,
u16  isport,
ip4_address_t xsaddr,
u16  xsport,
ip4_address_t xdaddr,
u16  xdport,
nat_protocol_t  proto 
)

Definition at line 273 of file nat_syslog.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nat_syslog_nat64_sess()

static void nat_syslog_nat64_sess ( u32  sfibix,
ip6_address_t *  isaddr,
u16  isport,
ip4_address_t xsaddr,
u16  xsport,
ip4_address_t xdaddr,
u16  xdport,
nat_protocol_t  proto,
u8  is_add 
)
inlinestatic

Definition at line 221 of file nat_syslog.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: