Date: Mon, 24 Feb 2003 12:07:02 -0500 From: Craig Rodrigues <rodrigc@attbi.com> To: freebsd-current@freebsd.org Subject: Problem with M_COPY_PACKET Message-ID: <20030224170702.GA1059@attbi.com>
next in thread | raw e-mail | index | archive | help
Hi,
I did a cvsup today, and when I tried to compile the Netgraph ATM drivers,
I got this error:
~rodrigc/ngatm/ngatmbase-1.2b/fatm/if_fatm.c
cc1: warnings being treated as errors
/usr/home/rodrigc/ngatm/ngatmbase-1.2b/fatm/if_fatm.c: In function `copy_mbuf':
/usr/home/rodrigc/ngatm/ngatmbase-1.2b/fatm/if_fatm.c:1625: warning: implicit declaration of function `M_COPY_PKTHDR'
The code in question looks like:
=========================================================================
struct mbuf *
copy_mbuf(struct mbuf *m)
{
struct mbuf *new;
MGET(new, M_DONTWAIT, MT_DATA);
if(new == NULL)
return NULL;
if(m->m_flags & M_PKTHDR)
M_COPY_PKTHDR(new, m);
if(m->m_flags & M_EXT) {
MCLGET(new, M_DONTWAIT);
if(!(m->m_flags & M_EXT)) {
m_free(new);
return NULL;
}
}
bcopy(m->m_data, new->m_data, m->m_len);
new->m_len = m->m_len;
new->m_flags &= ~M_RDONLY;
=========================================================================
I am not familiar with all the changes that have occurred to the M_*
macros. What should I do to correct this?
Thanks.
--
Craig Rodrigues
http://home.attbi.com/~rodrigc
rodrigc@attbi.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030224170702.GA1059>
