diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-10-18 11:27:34 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-10-18 11:27:34 +0000 |
commit | 066984a67bf026974c93b93a50b195ad3e8a6c7d (patch) | |
tree | 17204c6e0f40d67adff121f475f087016e9314f9 | |
parent | 8fb21c7ec5ef06393eee5fd329035976a62340d0 (diff) | |
download | FreeBSD-src-066984a67bf026974c93b93a50b195ad3e8a6c7d.zip FreeBSD-src-066984a67bf026974c93b93a50b195ad3e8a6c7d.tar.gz |
Line-wrap pfil.c so that it prints more nicely.
MFC after: 3 days
-rw-r--r-- | sys/net/pfil.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/sys/net/pfil.c b/sys/net/pfil.c index 76ed664..78c3ca9 100644 --- a/sys/net/pfil.c +++ b/sys/net/pfil.c @@ -49,12 +49,14 @@ static struct mtx pfil_global_lock; -MTX_SYSINIT(pfil_heads_lock, &pfil_global_lock, "pfil_head_list lock", MTX_DEF); +MTX_SYSINIT(pfil_heads_lock, &pfil_global_lock, "pfil_head_list lock", + MTX_DEF); static int pfil_list_add(pfil_list_t *, struct packet_filter_hook *, int); static int pfil_list_remove(pfil_list_t *, - int (*)(void *, struct mbuf **, struct ifnet *, int, struct inpcb *), void *); + int (*)(void *, struct mbuf **, struct ifnet *, int, struct inpcb *), + void *); LIST_HEAD(pfilheadhead, pfil_head); VNET_DEFINE(struct pfilheadhead, pfil_head_list); @@ -77,7 +79,8 @@ pfil_run_hooks(struct pfil_head *ph, struct mbuf **mp, struct ifnet *ifp, for (pfh = pfil_hook_get(dir, ph); pfh != NULL; pfh = TAILQ_NEXT(pfh, pfil_link)) { if (pfh->pfil_func != NULL) { - rv = (*pfh->pfil_func)(pfh->pfil_arg, &m, ifp, dir, inp); + rv = (*pfh->pfil_func)(pfh->pfil_arg, &m, ifp, dir, + inp); if (rv != 0 || m == NULL) break; } @@ -221,8 +224,8 @@ error: * hook list. */ int -pfil_remove_hook(int (*func)(void *, struct mbuf **, struct ifnet *, int, struct inpcb *), - void *arg, int flags, struct pfil_head *ph) +pfil_remove_hook(int (*func)(void *, struct mbuf **, struct ifnet *, int, + struct inpcb *), void *arg, int flags, struct pfil_head *ph) { int err = 0; @@ -273,7 +276,8 @@ pfil_list_add(pfil_list_t *list, struct packet_filter_hook *pfh1, int flags) */ static int pfil_list_remove(pfil_list_t *list, - int (*func)(void *, struct mbuf **, struct ifnet *, int, struct inpcb *), void *arg) + int (*func)(void *, struct mbuf **, struct ifnet *, int, struct inpcb *), + void *arg) { struct packet_filter_hook *pfh; |