Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/ip_fw.h
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | |||||
#define IP_FW_NAT44_DESTROY 112 /* Destroys NAT44 instance */ | #define IP_FW_NAT44_DESTROY 112 /* Destroys NAT44 instance */ | ||||
#define IP_FW_NAT44_XGETCONFIG 113 /* Get NAT44 instance config */ | #define IP_FW_NAT44_XGETCONFIG 113 /* Get NAT44 instance config */ | ||||
#define IP_FW_NAT44_LIST_NAT 114 /* List all NAT44 instances */ | #define IP_FW_NAT44_LIST_NAT 114 /* List all NAT44 instances */ | ||||
#define IP_FW_NAT44_XGETLOG 115 /* Get log from NAT44 instance */ | #define IP_FW_NAT44_XGETLOG 115 /* Get log from NAT44 instance */ | ||||
#define IP_FW_DUMP_SOPTCODES 116 /* Dump available sopts/versions */ | #define IP_FW_DUMP_SOPTCODES 116 /* Dump available sopts/versions */ | ||||
#define IP_FW_DUMP_SRVOBJECTS 117 /* Dump existing named objects */ | #define IP_FW_DUMP_SRVOBJECTS 117 /* Dump existing named objects */ | ||||
#define IP_FW_NPTV6_CREATE 150 /* Create NPTv6 instance */ | |||||
#define IP_FW_NPTV6_DESTROY 151 /* Destroy NPTv6 instance */ | |||||
#define IP_FW_NPTV6_CONFIG 152 /* Modify NPTv6 instance */ | |||||
#define IP_FW_NPTV6_LIST 153 /* List NPTv6 instances */ | |||||
#define IP_FW_NPTV6_STATS 154 /* Get NPTv6 instance statistics */ | |||||
/* | /* | ||||
* The kernel representation of ipfw rules is made of a list of | * The kernel representation of ipfw rules is made of a list of | ||||
* 'instructions' (for all practical purposes equivalent to BPF | * 'instructions' (for all practical purposes equivalent to BPF | ||||
* instructions), which specify which fields of the packet | * instructions), which specify which fields of the packet | ||||
* (or its metadata) should be analysed. | * (or its metadata) should be analysed. | ||||
* | * | ||||
* Each instruction is stored in a structure which begins with | * Each instruction is stored in a structure which begins with | ||||
* "ipfw_insn", and can contain extra fields depending on the | * "ipfw_insn", and can contain extra fields depending on the | ||||
▲ Show 20 Lines • Show All 658 Lines • ▼ Show 20 Lines | |||||
#define IPFW_TLV_RULE_LIST 3 | #define IPFW_TLV_RULE_LIST 3 | ||||
#define IPFW_TLV_DYNSTATE_LIST 4 | #define IPFW_TLV_DYNSTATE_LIST 4 | ||||
#define IPFW_TLV_TBL_ENT 5 | #define IPFW_TLV_TBL_ENT 5 | ||||
#define IPFW_TLV_DYN_ENT 6 | #define IPFW_TLV_DYN_ENT 6 | ||||
#define IPFW_TLV_RULE_ENT 7 | #define IPFW_TLV_RULE_ENT 7 | ||||
#define IPFW_TLV_TBLENT_LIST 8 | #define IPFW_TLV_TBLENT_LIST 8 | ||||
#define IPFW_TLV_RANGE 9 | #define IPFW_TLV_RANGE 9 | ||||
#define IPFW_TLV_EACTION 10 | #define IPFW_TLV_EACTION 10 | ||||
#define IPFW_TLV_COUNTERS 11 | |||||
#define IPFW_TLV_EACTION_BASE 1000 | #define IPFW_TLV_EACTION_BASE 1000 | ||||
#define IPFW_TLV_EACTION_NAME(arg) (IPFW_TLV_EACTION_BASE + (arg)) | #define IPFW_TLV_EACTION_NAME(arg) (IPFW_TLV_EACTION_BASE + (arg)) | ||||
/* Object name TLV */ | /* Object name TLV */ | ||||
typedef struct _ipfw_obj_ntlv { | typedef struct _ipfw_obj_ntlv { | ||||
ipfw_obj_tlv head; /* TLV header */ | ipfw_obj_tlv head; /* TLV header */ | ||||
uint16_t idx; /* Name index */ | uint16_t idx; /* Name index */ | ||||
▲ Show 20 Lines • Show All 225 Lines • Show Last 20 Lines |