Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/ipfw/ip_fw_private.h
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | |||||
#define IPFW_ARGS_NH6 0x00040000 /* IPv6 next hop in hopstore */ | #define IPFW_ARGS_NH6 0x00040000 /* IPv6 next hop in hopstore */ | ||||
#define IPFW_ARGS_NH4PTR 0x00080000 /* IPv4 next hop in next_hop */ | #define IPFW_ARGS_NH4PTR 0x00080000 /* IPv4 next hop in next_hop */ | ||||
#define IPFW_ARGS_NH6PTR 0x00100000 /* IPv6 next hop in next_hop6 */ | #define IPFW_ARGS_NH6PTR 0x00100000 /* IPv6 next hop in next_hop6 */ | ||||
#define IPFW_ARGS_REF 0x00200000 /* valid ipfw_rule_ref */ | #define IPFW_ARGS_REF 0x00200000 /* valid ipfw_rule_ref */ | ||||
#define IPFW_ARGS_IN 0x00400000 /* called on input */ | #define IPFW_ARGS_IN 0x00400000 /* called on input */ | ||||
#define IPFW_ARGS_OUT 0x00800000 /* called on output */ | #define IPFW_ARGS_OUT 0x00800000 /* called on output */ | ||||
#define IPFW_ARGS_IP4 0x01000000 /* belongs to v4 ISR */ | #define IPFW_ARGS_IP4 0x01000000 /* belongs to v4 ISR */ | ||||
#define IPFW_ARGS_IP6 0x02000000 /* belongs to v6 ISR */ | #define IPFW_ARGS_IP6 0x02000000 /* belongs to v6 ISR */ | ||||
#define IPFW_ARGS_DROP 0x04000000 /* drop it (dummynet) */ | #define IPFW_ARGS_FWD 0x04000000 /* called on forwarding */ | ||||
#define IPFW_ARGS_LENMASK 0x0000ffff /* length of data in *mem */ | #define IPFW_ARGS_LENMASK 0x0000ffff /* length of data in *mem */ | ||||
#define IPFW_ARGS_LENGTH(f) ((f) & IPFW_ARGS_LENMASK) | #define IPFW_ARGS_LENGTH(f) ((f) & IPFW_ARGS_LENMASK) | ||||
/* | /* | ||||
* On return, it points to the matching rule. | * On return, it points to the matching rule. | ||||
* On entry, rule.slot > 0 means the info is valid and | * On entry, rule.slot > 0 means the info is valid and | ||||
* contains the starting rule for an ipfw search. | * contains the starting rule for an ipfw search. | ||||
* If chain_id == chain->id && slot >0 then jump to that slot. | * If chain_id == chain->id && slot >0 then jump to that slot. | ||||
* Otherwise, we locate the first rule >= rulenum:rule_id | * Otherwise, we locate the first rule >= rulenum:rule_id | ||||
▲ Show 20 Lines • Show All 724 Lines • Show Last 20 Lines |