Ticket #2761: mbuf.patch

File mbuf.patch, 1.1 KB (added by tqh, 16 years ago)

Changes to mbuf

  • src/libs/compat/freebsd_network/mbuf.c

     
    2525int max_linkhdr = 16;
    2626int max_protohdr = 40 + 20; /* ip6 + tcp */
    2727
     28/* max_linkhdr + max_protohdr, but that's not allowed by gcc. */
     29int max_hdr = 16 + 40 + 20;
    2830
    2931static int
    3032m_to_oc_flags(int how)
  • src/libs/compat/freebsd_network/compat/sys/mbuf.h

     
    129129    void (*freeHook)(void *, void *), void *args, int flags, int type);
    130130
    131131
    132 #define mtod(m, type)   (type)((m)->m_data)
     132#define mtod(m, type)   ((type)((m)->m_data))
    133133
    134134#define m_tag_delete(mb, tag) \
    135135    panic("m_tag_delete unsupported.");
     
    144144
    145145extern int max_linkhdr;
    146146extern int max_protohdr;
     147extern int max_hdr;
    147148
    148149#include <sys/mbuf-fbsd.h>
    149150