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

Go to the source code of this file.

Macros

#define ECN_ALLOWED   1 /* ECN allowed */
 
#define ECN_FORBIDDEN   0 /* ECN forbidden */
 
#define ECN_NOCARE   (-1) /* no consideration to ECN */
 

Functions

void ip_ecn_ingress (int, u_int8_t *, const u_int8_t *)
 
int ip_ecn_egress (int, const u_int8_t *, u_int8_t *)
 

Macro Definition Documentation

◆ ECN_ALLOWED

#define ECN_ALLOWED   1 /* ECN allowed */

Definition at line 43 of file ip_ecn.h.

◆ ECN_FORBIDDEN

#define ECN_FORBIDDEN   0 /* ECN forbidden */

Definition at line 44 of file ip_ecn.h.

◆ ECN_NOCARE

#define ECN_NOCARE   (-1) /* no consideration to ECN */

Definition at line 45 of file ip_ecn.h.

Function Documentation

◆ ip_ecn_egress()

int ip_ecn_egress ( int  mode,
const u_int8_t *  outer,
u_int8_t *  inner 
)

Definition at line 129 of file ip_ecn.c.

References ECN_ALLOWED, ECN_FORBIDDEN, ECN_NOCARE, IPTOS_ECN_CE, IPTOS_ECN_MASK, and IPTOS_ECN_NOTECT.

◆ ip_ecn_ingress()

void ip_ecn_ingress ( int  mode,
u_int8_t *  outer,
const u_int8_t *  inner 
)

Definition at line 97 of file ip_ecn.c.

References ECN_ALLOWED, ECN_FORBIDDEN, ECN_NOCARE, IPTOS_ECN_CE, and IPTOS_ECN_MASK.