From eaa726bed64dd3129e3ed1ca099ce802f6cbc206 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Tue, 4 May 1999 16:20:33 +0000 Subject: Free the dummynet descriptor in ip_dummynet, not in the called routines. The descriptor contains parameters which could be used within those routines (eg. ip_output() ). On passing, add IPPROTO_PGM entry to netinet/in.h --- sys/netinet/ip_input.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/netinet/ip_input.c') diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 1d72f8adde81..e8cb1927b440 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_input.c 8.2 (Berkeley) 1/4/94 - * $Id: ip_input.c,v 1.117 1999/04/20 13:32:05 peter Exp $ + * $Id: ip_input.c,v 1.118 1999/05/03 23:57:29 billf Exp $ */ #define _IP_VHL @@ -256,10 +256,8 @@ ip_input(struct mbuf *m) * rule. */ if (m->m_type == MT_DUMMYNET) { - struct mbuf *m0 = m ; rule = (struct ip_fw_chain *)(m->m_data) ; m = m->m_next ; - free(m0, M_IPFW); ip = mtod(m, struct ip *); hlen = IP_VHL_HL(ip->ip_vhl) << 2; goto iphack ; -- cgit v1.3