freebsd-dev/sys/netpfil/ipfw
Sean Bruno 488c0a7ca8 Fix NULL pointer deref in ipfw when using dummynet at layer 2.
Drop packet if pkg->ifp is NULL, which is the case here.

ref. https://github.com/HardenedBSD/hardenedBSD
commit 4eef3881c64f6e3aa38eebbeaf27a947a5d47dd7

PR 193861 --  DUMMYNET LAYER2: kernel panic

in this case a kernel panic occurs. Hence, when we do not get an interface,
we just drop the packet in question.

PR:		193681
Submitted by:	David Carlier <david.carlier@hardenedbsd.org>
Obtained from:	Hardened BSD
MFC after:	2 weeks
Relnotes:	yes
2014-09-25 02:26:05 +00:00
..
test
dn_heap.c
dn_heap.h
dn_sched_fifo.c
dn_sched_prio.c
dn_sched_qfq.c
dn_sched_rr.c
dn_sched_wf2q.c
dn_sched.h add a counter on the struct mq (a queue of mbufs), 2013-11-22 05:02:37 +00:00
dummynet.txt Summary: Two quick edits to the implementation notes as they're no 2014-02-15 18:36:31 +00:00
ip_dn_glue.c DNOLD_IS_ECN introduced by r266941 is not required. 2014-06-01 20:19:17 +00:00
ip_dn_io.c Fix NULL pointer deref in ipfw when using dummynet at layer 2. 2014-09-25 02:26:05 +00:00
ip_dn_private.h add a counter on the struct mq (a queue of mbufs), 2013-11-22 05:02:37 +00:00
ip_dummynet.c ECN marking implenetation for dummynet. 2014-06-01 07:28:24 +00:00
ip_fw2.c Whitespace/style changes merged from projects/ipfw. 2014-08-23 17:57:06 +00:00
ip_fw_dynamic.c Under sys/netpfil/ipfw, surround two IPv6-specific static functions with 2014-02-15 12:25:01 +00:00
ip_fw_log.c make this code compile in userspace on OSX 2013-11-22 05:00:18 +00:00
ip_fw_nat.c Since ipfw nat configures all options in one step, we should set all bits 2014-05-18 14:25:19 +00:00
ip_fw_pfil.c Set oif only for outgoing packets. 2014-04-16 14:37:11 +00:00
ip_fw_private.h Reorder struct ip_fw_chain: 2014-01-24 09:13:30 +00:00
ip_fw_sockopt.c Whitespace/style changes merged from projects/ipfw. 2014-08-23 17:57:06 +00:00
ip_fw_table.c Fix wrong formatting of 0.0.0.0/X table records in ipfw(8). 2014-05-17 13:45:03 +00:00