Ticket #2761: mbuf.patch
File mbuf.patch, 1.1 KB (added by , 16 years ago) |
---|
-
src/libs/compat/freebsd_network/mbuf.c
25 25 int max_linkhdr = 16; 26 26 int max_protohdr = 40 + 20; /* ip6 + tcp */ 27 27 28 /* max_linkhdr + max_protohdr, but that's not allowed by gcc. */ 29 int max_hdr = 16 + 40 + 20; 28 30 29 31 static int 30 32 m_to_oc_flags(int how) -
src/libs/compat/freebsd_network/compat/sys/mbuf.h
129 129 void (*freeHook)(void *, void *), void *args, int flags, int type); 130 130 131 131 132 #define mtod(m, type) ( type)((m)->m_data)132 #define mtod(m, type) ((type)((m)->m_data)) 133 133 134 134 #define m_tag_delete(mb, tag) \ 135 135 panic("m_tag_delete unsupported."); … … 144 144 145 145 extern int max_linkhdr; 146 146 extern int max_protohdr; 147 extern int max_hdr; 147 148 148 149 #include <sys/mbuf-fbsd.h> 149 150