diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-09-15 16:47:08 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-09-15 16:47:08 +0000 |
commit | 0af4527d0c179ab8228c959129941de8b99024a3 (patch) | |
tree | 5c115ea99fb6283b87801243d23a98f67a81a732 /sys/net/pfvar.h | |
parent | 14ac48495e52c08d3be7f39e376f967ffd490618 (diff) |
Don't use m_pkthdr.rcvif in pflog_packet(), it doesn't work for outgoing
packets and is obviously invalid (and not NULL) for IPv6 packets (hence
crashed). Pass ifp down instead.
sizeof(ih) instead of sizeof(&ih) for pf_pull_hdr() from pf_test6().
Diffstat (limited to 'sys/net/pfvar.h')
-rw-r--r-- | sys/net/pfvar.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index 2aa6f33118f..15ac11dbf05 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pfvar.h,v 1.51 2001/09/15 03:54:40 frantzen Exp $ */ +/* $OpenBSD: pfvar.h,v 1.52 2001/09/15 16:47:07 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -558,7 +558,8 @@ int pf_tree_insert(struct pf_tree_node **, struct pf_tree_node *, int pf_tree_remove(struct pf_tree_node **, struct pf_tree_node *, struct pf_tree_key *); -int pflog_packet(struct mbuf *, int, u_short, u_short, struct pf_rule *); +int pflog_packet(struct ifnet *, struct mbuf *, int, u_short, u_short, + struct pf_rule *); int pf_match_addr(u_int8_t, struct pf_addr *, struct pf_addr *, struct pf_addr *, int); int pf_match_port(u_int8_t, u_int16_t, u_int16_t, u_int16_t); |