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
[EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message