Unbreak m_demote() and put back the 'all' flag. Without it we cannot

correctly test for m_nextpkt in an mbuf chain.
This commit is contained in:
Andre Oppermann 2005-08-30 21:14:30 +00:00
parent a6c222c739
commit e0068c3a69
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -579,7 +579,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 *);
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);