Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/ipfw/ip_dn_private.h
Show First 20 Lines • Show All 381 Lines • ▼ Show 20 Lines | struct dn_pkt_tag { | ||||
int dn_dir; /* action when packet comes out.*/ | int dn_dir; /* action when packet comes out.*/ | ||||
/* see ip_fw_private.h */ | /* see ip_fw_private.h */ | ||||
uint64_t output_time; /* when the pkt is due for delivery*/ | uint64_t output_time; /* when the pkt is due for delivery*/ | ||||
struct ifnet *ifp; /* interface, for ip_output */ | struct ifnet *ifp; /* interface, for ip_output */ | ||||
struct _ip6dn_args ip6opt; /* XXX ipv6 options */ | struct _ip6dn_args ip6opt; /* XXX ipv6 options */ | ||||
uint16_t iphdr_off; /* IP header offset for mtodo() */ | uint16_t iphdr_off; /* IP header offset for mtodo() */ | ||||
}; | }; | ||||
/* | |||||
* Possible values for dn_dir. XXXGL: this needs to be reviewed | |||||
* and converted to same values ip_fw_args.flags use. | |||||
*/ | |||||
enum { | |||||
DIR_OUT = 0, | |||||
DIR_IN = 1, | |||||
DIR_FWD = 2, | |||||
DIR_DROP = 3, | |||||
PROTO_LAYER2 = 0x4, /* set for layer 2 */ | |||||
PROTO_IPV4 = 0x08, | |||||
PROTO_IPV6 = 0x10, | |||||
PROTO_IFB = 0x0c, /* layer2 + ifbridge */ | |||||
}; | |||||
extern struct dn_parms dn_cfg; | extern struct dn_parms dn_cfg; | ||||
//VNET_DECLARE(struct dn_parms, _base_dn_cfg); | //VNET_DECLARE(struct dn_parms, _base_dn_cfg); | ||||
//#define dn_cfg VNET(_base_dn_cfg) | //#define dn_cfg VNET(_base_dn_cfg) | ||||
int dummynet_io(struct mbuf **, int , struct ip_fw_args *); | int dummynet_io(struct mbuf **, struct ip_fw_args *); | ||||
void dummynet_task(void *context, int pending); | void dummynet_task(void *context, int pending); | ||||
void dn_reschedule(void); | void dn_reschedule(void); | ||||
struct dn_pkt_tag * dn_tag_get(struct mbuf *m); | struct dn_pkt_tag * dn_tag_get(struct mbuf *m); | ||||
struct dn_queue *ipdn_q_find(struct dn_fsk *, struct dn_sch_inst *, | struct dn_queue *ipdn_q_find(struct dn_fsk *, struct dn_sch_inst *, | ||||
struct ipfw_flow_id *); | struct ipfw_flow_id *); | ||||
struct dn_sch_inst *ipdn_si_find(struct dn_schk *, struct ipfw_flow_id *); | struct dn_sch_inst *ipdn_si_find(struct dn_schk *, struct ipfw_flow_id *); | ||||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |