From owner-freebsd-current Mon Feb 24 9: 6: 4 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D24B237B405 for ; Mon, 24 Feb 2003 09:06:02 -0800 (PST) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [24.61.43.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id C84AC43FA3 for ; Mon, 24 Feb 2003 09:06:01 -0800 (PST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: from h00609772adf0.ne.client2.attbi.com (localhost.ne.attbi.com [127.0.0.1]) by h00609772adf0.ne.client2.attbi.com (8.12.7/8.12.7) with ESMTP id h1OH73OF001149 for ; Mon, 24 Feb 2003 12:07:03 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by h00609772adf0.ne.client2.attbi.com (8.12.7/8.12.7/Submit) id h1OH73h9001148 for freebsd-current@freebsd.org; Mon, 24 Feb 2003 12:07:03 -0500 (EST) Date: Mon, 24 Feb 2003 12:07:02 -0500 From: Craig Rodrigues To: freebsd-current@freebsd.org Subject: Problem with M_COPY_PACKET Message-ID: <20030224170702.GA1059@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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