summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>1999-05-04 16:20:33 +0000
committerluigi <luigi@FreeBSD.org>1999-05-04 16:20:33 +0000
commit2085d1a0500e60ec06a7ca2ded31bde3fe581bd6 (patch)
tree295f2aed2025bfbb8b59b5ac9fb1d8855ac01336 /sys/net
parentaa335447efab0773117fd11c822ab38333c62be6 (diff)
downloadFreeBSD-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/net')
-rw-r--r--sys/net/bridge.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/bridge.c b/sys/net/bridge.c
index f7bc63e..9878788 100644
--- a/sys/net/bridge.c
+++ b/sys/net/bridge.c
@@ -508,9 +508,7 @@ bdg_forward (struct mbuf **m0, struct ifnet *dst)
* processing was already done, and we need to go down.
*/
rule = (struct ip_fw_chain *)(m->m_data) ;
- (*m0) = m->m_next ;
- FREE(m, M_IPFW);
- m = *m0 ;
+ (*m0) = m = m->m_next ;
src = m->m_pkthdr.rcvif; /* could be NULL in output */
eh = mtod(m, struct ether_header *); /* XXX */
OpenPOWER on IntegriCloud