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:[EMAIL PROTECTED]]
> Sent: Friday, March 29, 2002 9:44 PM
> To: Chris Ptacek
> Cc: '[EMAIL PROTECTED]'
> 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 [EMAIL PROTECTED]
> > with "unsubscribe freebsd-hackers" in the body of the message
> > 
> 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to