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_output.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_output.c')
-rw-r--r-- | sys/netinet/ip_output.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 2e5d824..e0d8de3 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_output.c 8.3 (Berkeley) 1/21/94 - * $Id: ip_output.c,v 1.88 1999/04/20 13:32:06 peter Exp $ + * $Id: ip_output.c,v 1.89 1999/05/04 09:26:12 luigi Exp $ */ #define _IP_VHL @@ -139,7 +139,6 @@ ip_output(m0, opt, ro, flags, imo) * rule. */ if (m->m_type == MT_DUMMYNET) { - struct mbuf *tmp_m = m ; /* * the packet was already tagged, so part of the * processing was already done, and we need to go down. @@ -148,7 +147,6 @@ ip_output(m0, opt, ro, flags, imo) */ rule = (struct ip_fw_chain *)(m->m_data) ; m0 = m = m->m_next ; - free(tmp_m, M_IPFW); ip = mtod(m, struct ip *); dst = (struct sockaddr_in *)flags ; ifp = (struct ifnet *)opt; |