make ipfw_check_packet() and ipfw_check_frame() public,
so they can be used in the userspace version of ipfw/dummynet (normally using netmap for the I/O path). This is the first of a few commits to ease compiling the ipfw kernel code in userspace.
This commit is contained in:
parent
62d9fef816
commit
b0b354e495
@ -82,9 +82,9 @@ int ipfw_chg_hook(SYSCTL_HANDLER_ARGS);
|
||||
|
||||
/* Forward declarations. */
|
||||
static int ipfw_divert(struct mbuf **, int, struct ipfw_rule_ref *, int);
|
||||
static int ipfw_check_packet(void *, struct mbuf **, struct ifnet *, int,
|
||||
int ipfw_check_packet(void *, struct mbuf **, struct ifnet *, int,
|
||||
struct inpcb *);
|
||||
static int ipfw_check_frame(void *, struct mbuf **, struct ifnet *, int,
|
||||
int ipfw_check_frame(void *, struct mbuf **, struct ifnet *, int,
|
||||
struct inpcb *);
|
||||
|
||||
#ifdef SYSCTL_NODE
|
||||
@ -116,7 +116,7 @@ SYSEND
|
||||
* dummynet, divert, netgraph or other modules.
|
||||
* The packet may be consumed.
|
||||
*/
|
||||
static int
|
||||
int
|
||||
ipfw_check_packet(void *arg, struct mbuf **m0, struct ifnet *ifp, int dir,
|
||||
struct inpcb *inp)
|
||||
{
|
||||
@ -292,7 +292,7 @@ again:
|
||||
* Inteface is NULL from ether_demux, and ifp from
|
||||
* ether_output_frame.
|
||||
*/
|
||||
static int
|
||||
int
|
||||
ipfw_check_frame(void *arg, struct mbuf **m0, struct ifnet *dst, int dir,
|
||||
struct inpcb *inp)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user