Date: Mon, 1 Apr 2002 20:32:25 -0500 From: Chris Ptacek <cptacek@sitaranetworks.com> To: "'Julian Elischer'" <julian@elischer.org>, Chris Ptacek <cptacek@sitaranetworks.com> Cc: "'freebsd-hackers@FreeBSD.ORG'" <freebsd-hackers@FreeBSD.ORG> Subject: RE: Adding to the mbuf header... Message-ID: <31269226357BD211979E00A0C9866DAB02BB9866@rios.sitaranetworks.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31269226357BD211979E00A0C9866DAB02BB9866>
