diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2005-08-02 13:42:06 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2005-08-02 13:42:06 +0000 |
commit | 036e467c67c26048b55e5d32264de43c498c6140 (patch) | |
tree | b254f6370d736a234b5736f25ac9340a75ffe804 /sys | |
parent | 29064c36d3fd1441d00dee51b3d8a79a1f2b2dba (diff) |
pass the AF in network byte order to bpf
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_loop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index b4760546e43..2bd8096208b 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_loop.c,v 1.36 2005/07/31 03:52:18 pascoe Exp $ */ +/* $OpenBSD: if_loop.c,v 1.37 2005/08/02 13:42:05 markus Exp $ */ /* $NetBSD: if_loop.c,v 1.15 1996/05/07 02:40:33 thorpej Exp $ */ /* @@ -251,7 +251,7 @@ looutput(ifp, m, dst, rt) * packets for local use. But don't dup them to bpf. */ if (ifp->if_bpf && (ifp->if_flags & IFF_LOOPBACK)) - bpf_mtap_af(ifp->if_bpf, dst->sa_family, m); + bpf_mtap_af(ifp->if_bpf, htonl(dst->sa_family), m); #endif m->m_pkthdr.rcvif = ifp; |