From 71f036e379e29d52810f39a7ae320ea932e39f32 Mon Sep 17 00:00:00 2001 From: andre Date: Mon, 29 Aug 2005 19:45:39 +0000 Subject: Add m_demote(struct mbuf *m, int all) to 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. This function is used before an mbuf, that arrived as packet with m->flags & M_PKTHDR, is appended to an mbuf chain using m->m_next (not m->m_nextpkt). Reviewed by: glebius --- sys/sys/mbuf.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/sys/mbuf.h') diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index a07b685..7f2b540 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -577,6 +577,7 @@ struct mbuf *m_copypacket(struct mbuf *, int); void m_copy_pkthdr(struct mbuf *, struct mbuf *); struct mbuf *m_copyup(struct mbuf *n, int len, int dstoff); struct mbuf *m_defrag(struct mbuf *, int); +void m_demote(struct mbuf *, int); struct mbuf *m_devget(char *, int, int, struct ifnet *, void (*)(char *, caddr_t, u_int)); struct mbuf *m_dup(struct mbuf *, int); -- cgit v1.1