On Thu, Sep 21, 2006 at 08:54:27AM -0700, Matthew Dillon wrote: > What we really need to do here is, well, two things. First, both Jeff > and I have been wanting to get rid of all the ntoh and hton conversions > being done inside the mbuf itself... there are so many layers that it > has just become too confusing to figure out when a packet's IP header > is in host order and when it is in network order. It just needs to > stay in network order. Second, we need to abstract the m_sharecount() > function so it works with non-cluster extensions.
I was thinking about that as well. What about copying (!) the interesting fields into the mbuf header itself and really making mbufs append/prepend only? Joerg