diff options
author | dg <dg@FreeBSD.org> | 1995-07-09 14:29:46 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-07-09 14:29:46 +0000 |
commit | de86e245161ba3d1d28dd8cbabd4daaf5813b06c (patch) | |
tree | ebc6ee77d76238d51062644bc81b80bc531bcc11 /sys/netinet/ip_fwdef.c | |
parent | 873428202f4d1c10ed4e2d3587a6fcfc3dc33ba1 (diff) | |
download | FreeBSD-src-de86e245161ba3d1d28dd8cbabd4daaf5813b06c.zip FreeBSD-src-de86e245161ba3d1d28dd8cbabd4daaf5813b06c.tar.gz |
Fixed panic that occurs on certain firewall rejected packets that was
caused by dtom() being used on an mbuf cluster. The fix involves passing
around the mbuf pointer.
Submitted by: Bill Fenner
Diffstat (limited to 'sys/netinet/ip_fwdef.c')
-rw-r--r-- | sys/netinet/ip_fwdef.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_fwdef.c b/sys/netinet/ip_fwdef.c index 249a7b3..d44ad57 100644 --- a/sys/netinet/ip_fwdef.c +++ b/sys/netinet/ip_fwdef.c @@ -38,10 +38,10 @@ struct ip_fw *ip_fw_chain; struct ip_fw *ip_acct_chain; #ifdef IPFIREWALL -int (*ip_fw_chk_ptr)(struct ip *, struct ifnet *, struct ip_fw *) = &ip_fw_chk; +int (*ip_fw_chk_ptr)(struct mbuf *, struct ip *, struct ifnet *, struct ip_fw *) = &ip_fw_chk; int (*ip_fw_ctl_ptr)(int, struct mbuf *) = &ip_fw_ctl; #else -int (*ip_fw_chk_ptr)(struct ip *, struct ifnet *, struct ip_fw *); +int (*ip_fw_chk_ptr)(struct mbuf *, struct ip *, struct ifnet *, struct ip_fw *); int (*ip_fw_ctl_ptr)(int, struct mbuf *); #endif |