From 6418b7b14188d66689d9d1c003b328c83f21d761 Mon Sep 17 00:00:00 2001 From: andre Date: Tue, 30 Aug 2005 21:14:30 +0000 Subject: Unbreak m_demote() and put back the 'all' flag. Without it we cannot correctly test for m_nextpkt in an mbuf chain. --- sys/kern/uipc_mbuf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/kern/uipc_mbuf.c') diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 4f66fe3..dea90e7 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -271,9 +271,11 @@ mb_free_ext(struct mbuf *m) /* * Clean up mbuf (chain) from any tags and packet headers. + * If "all" is set then the first mbuf in the chain will be + * cleaned too. */ void -m_demote(struct mbuf *m0) +m_demote(struct mbuf *m0, int all) { struct mbuf *m; -- cgit v1.1