diff options
author | andre <andre@FreeBSD.org> | 2005-08-30 21:14:30 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2005-08-30 21:14:30 +0000 |
commit | 6418b7b14188d66689d9d1c003b328c83f21d761 (patch) | |
tree | 1875a7e47081e91b45bbd595a24004e2486c77a5 /sys/kern | |
parent | 010cdcf6428d9edaf7865b1d1ea858f10646d733 (diff) | |
download | FreeBSD-src-6418b7b14188d66689d9d1c003b328c83f21d761.zip FreeBSD-src-6418b7b14188d66689d9d1c003b328c83f21d761.tar.gz |
Unbreak m_demote() and put back the 'all' flag. Without it we cannot
correctly test for m_nextpkt in an mbuf chain.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |