From owner-freebsd-hackers Mon Apr 1 17:32:58 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from apollo.sitaranetworks.com (apollo.sitaranetworks.com [199.103.141.105]) by hub.freebsd.org (Postfix) with ESMTP id AA17E37B400 for ; Mon, 1 Apr 2002 17:32:41 -0800 (PST) Received: from rios.sitaranetworks.com (rios.sitaranetworks.com [199.103.141.78]) by apollo.sitaranetworks.com (8.10.2+Sun/8.9.3) with ESMTP id g321Vw825918; Mon, 1 Apr 2002 20:31:59 -0500 (EST) Received: by rios.sitaranetworks.com with Internet Mail Service (5.5.2653.19) id <2BQMSXN8>; Mon, 1 Apr 2002 20:32:26 -0500 Message-ID: <31269226357BD211979E00A0C9866DAB02BB9866@rios.sitaranetworks.com> From: Chris Ptacek To: "'Julian Elischer'" , Chris Ptacek Cc: "'freebsd-hackers@FreeBSD.ORG'" Subject: RE: Adding to the mbuf header... Date: Mon, 1 Apr 2002 20:32:25 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Here are the diffs for the mbuf changes I am trying... #diff -c mbuf.h mbuf.h.new *** mbuf.h Mon Apr 1 17:27:33 2002 --- mbuf.h.new Mon Apr 1 17:27:17 2002 *************** *** 79,84 **** --- 79,87 ---- struct ifnet *rcvif; /* rcv interface */ int len; /* total packet length */ + /* Add field to track flow information */ + void *flow_info; + /* variables for ip and tcp reassembly */ void *header; /* pointer to packet header */ }; *************** *** 114,119 **** --- 117,123 ---- #define m_nextpkt m_hdr.mh_nextpkt #define m_act m_nextpkt #define m_pkthdr M_dat.MH.MH_pkthdr + #define m_flow_info M_dat.MH.MH_pkthdr.flow_info #define m_ext M_dat.MH.MH_dat.MH_ext #define m_pktdat M_dat.MH.MH_dat.MH_databuf #define m_dat M_dat.M_databuf - Chris > -----Original Message----- > From: Julian Elischer [mailto:julian@elischer.org] > Sent: Friday, March 29, 2002 9:44 PM > To: Chris Ptacek > Cc: 'freebsd-hackers@FreeBSD.ORG' > Subject: Re: Adding to the mbuf header... > > > send your diff to mbuf.h > > > On Fri, 29 Mar 2002, Chris Ptacek wrote: > > > I am working on a project using FreeBSD 3.2 (part of the > requirements). > > As part of this project I would like to add a field to the > mbuf header to > > store some information. I have added the field, however I > get an occasional > > core when trying to free an mbuf. It appears that the next > field is getting > > overwritten with some garbage and a free, etc that tries to > access this > > field is coring. I noticed that in FreeBSD 4.X this some > fields were added > > to the mbuf header. I was hoping someone would be able to > point me in the > > direction of the files/functions I should look at to solve > my problem. > > > > - Chris > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message