* 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:
parent
8cc146385f
commit
619780e1be
@ -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>
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user