FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
lib.h File Reference

NAT port/address allocation lib. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define foreach_nat_error
 
#define foreach_nat_protocol
 

Enumerations

enum  nat_error_t { foreach_nat_error }
 
enum  nat_protocol_t { foreach_nat_protocol }
 

Detailed Description

NAT port/address allocation lib.

Definition in file lib.h.

Macro Definition Documentation

◆ foreach_nat_error

#define foreach_nat_error
Value:
_ (VALUE_EXIST, -1, "Value already exists") \
_ (NO_SUCH_ENTRY, -2, "No such entry") \
_ (UNKNOWN_PROTOCOL, -3, "Unknown protocol") \
_ (OUT_OF_TRANSLATIONS, -4, "Out of translations")

Definition at line 22 of file lib.h.

◆ foreach_nat_protocol

#define foreach_nat_protocol
Value:
_ (OTHER, 0, other, "other") \
_ (UDP, 1, udp, "udp") \
_ (TCP, 2, tcp, "tcp") \
_ (ICMP, 3, icmp, "icmp")

Definition at line 35 of file lib.h.

Enumeration Type Documentation

◆ nat_error_t

Enumerator
foreach_nat_error 

Definition at line 28 of file lib.h.

◆ nat_protocol_t

Enumerator
foreach_nat_protocol 

Definition at line 41 of file lib.h.