-/* $OpenBSD: pfvar.h,v 1.458 2017/06/26 18:33:24 bluhm Exp $ */
+/* $OpenBSD: pfvar.h,v 1.459 2017/06/28 18:31:03 mikeb Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
struct ip;
struct ip6_hdr;
+struct mbuf_list;
#define PF_TCPS_PROXY_SRC ((TCP_NSTATES)+0)
#define PF_TCPS_PROXY_DST ((TCP_NSTATES)+1)
};
struct pfq_ops {
- void *(*pfq_alloc)(struct ifnet *);
- int (*pfq_addqueue)(void *, struct pf_queuespec *);
- void (*pfq_free)(void *);
- int (*pfq_qstats)(struct pf_queuespec *, void *, int *);
+ void * (*pfq_alloc)(struct ifnet *);
+ int (*pfq_addqueue)(void *, struct pf_queuespec *);
+ void (*pfq_free)(void *);
+ int (*pfq_qstats)(struct pf_queuespec *, void *, int *);
+ /* Queue manager ops */
+ unsigned int (*pfq_qlength)(void *);
+ struct mbuf * (*pfq_enqueue)(void *, struct mbuf *);
+ struct mbuf * (*pfq_deq_begin)(void *, void **, struct mbuf_list *);
+ void (*pfq_deq_commit)(void *, struct mbuf *, void *);
+ void (*pfq_purge)(void *, struct mbuf_list *);
};
struct pf_tagname {