* Patch by tqh from ticket #2761 that adds max_hdr, and puts some extra

parenthesis around the mtod() definition.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27719 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2008-09-24 07:33:03 +00:00
parent 8cc146385f
commit 619780e1be
2 changed files with 4 additions and 1 deletions

View File

@ -129,7 +129,7 @@ void m_extadd(struct mbuf *m, caddr_t buffer, u_int size,
void (*freeHook)(void *, void *), void *args, int flags, int type);
#define mtod(m, type) (type)((m)->m_data)
#define mtod(m, type) ((type)((m)->m_data))
#define m_tag_delete(mb, tag) \
panic("m_tag_delete unsupported.");
@ -144,6 +144,7 @@ void m_extadd(struct mbuf *m, caddr_t buffer, u_int size,
extern int max_linkhdr;
extern int max_protohdr;
extern int max_hdr;
#include <sys/mbuf-fbsd.h>

View File

@ -25,6 +25,8 @@ static object_cache *sChunkCache;
int max_linkhdr = 16;
int max_protohdr = 40 + 20; /* ip6 + tcp */
/* max_linkhdr + max_protohdr, but that's not allowed by gcc. */
int max_hdr = 16 + 40 + 20;
static int
m_to_oc_flags(int how)