Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/ip_fw.h
Show First 20 Lines • Show All 682 Lines • ▼ Show 20 Lines | struct _ipfw_dyn_rule { | ||||
u_int32_t state; /* state of this rule (typically a | u_int32_t state; /* state of this rule (typically a | ||||
* combination of TCP flags) | * combination of TCP flags) | ||||
*/ | */ | ||||
u_int32_t ack_fwd; /* most recent ACKs in forward */ | u_int32_t ack_fwd; /* most recent ACKs in forward */ | ||||
u_int32_t ack_rev; /* and reverse directions (used */ | u_int32_t ack_rev; /* and reverse directions (used */ | ||||
/* to generate keepalives) */ | /* to generate keepalives) */ | ||||
u_int16_t dyn_type; /* rule type */ | u_int16_t dyn_type; /* rule type */ | ||||
u_int16_t count; /* refcount */ | u_int16_t count; /* refcount */ | ||||
}; | u_int16_t kidx; /* index of named object */ | ||||
} __packed __aligned(8); | |||||
/* | /* | ||||
* Definitions for IP option names. | * Definitions for IP option names. | ||||
*/ | */ | ||||
#define IP_FW_IPOPT_LSRR 0x01 | #define IP_FW_IPOPT_LSRR 0x01 | ||||
#define IP_FW_IPOPT_SSRR 0x02 | #define IP_FW_IPOPT_SSRR 0x02 | ||||
#define IP_FW_IPOPT_RR 0x04 | #define IP_FW_IPOPT_RR 0x04 | ||||
#define IP_FW_IPOPT_TS 0x08 | #define IP_FW_IPOPT_TS 0x08 | ||||
▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
#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_COUNTERS 11 | ||||
#define IPFW_TLV_STATE_NAME 14 | |||||
#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 |