diff options
author | luigi <luigi@FreeBSD.org> | 1999-05-04 16:20:33 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 1999-05-04 16:20:33 +0000 |
commit | 2085d1a0500e60ec06a7ca2ded31bde3fe581bd6 (patch) | |
tree | 295f2aed2025bfbb8b59b5ac9fb1d8855ac01336 /sys/netinet/ip_input.c | |
parent | aa335447efab0773117fd11c822ab38333c62be6 (diff) | |
download | FreeBSD-src-2085d1a0500e60ec06a7ca2ded31bde3fe581bd6.zip FreeBSD-src-2085d1a0500e60ec06a7ca2ded31bde3fe581bd6.tar.gz |
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
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r-- | sys/netinet/ip_input.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 1d72f8a..e8cb192 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 ; |