diff options
author | 2016-03-03 00:25:09 +0000 | |
---|---|---|
committer | 2016-03-03 00:25:09 +0000 | |
commit | 7c36199730ef5bd851ff2524d369e062e11a86d2 (patch) | |
tree | 3db65e17eaba72478ace3cc81b93b922b2cdc27b /sys | |
parent | set armv7 callbacks for cortex a53/a52/a72 (diff) | |
download | wireguard-openbsd-7c36199730ef5bd851ff2524d369e062e11a86d2.tar.xz wireguard-openbsd-7c36199730ef5bd851ff2524d369e062e11a86d2.zip |
bump link_maxhdr up from 16 to 64
link_maxhdr is best explained as the space reserved before an ip
packet payload for link headers, the most common of which is ethernet.
16 was a good choice when the only traffic we really did was ip
over ethernet, but now there are commonly used transports that are
bigger, specifically 802.11 traffic and vlan/vlan encapsulations,
that justify bumping it up.
i chose 64 because it would also allow enough space for encapsulations
like etherip or gif.
this reduces the size of the smallest packet that can fit into an
mbuf before more storage needs to be suffixed, but because most
traffic is either full sized (ie, already bigger than a single mbuf)
or tiny packets (think tcp ACKS, keystrokes over ssh, or dns requests)
the impact is negligible.
ok stsp@ mpi@ sthen@ mikeb@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/uipc_domain.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c index 28915420c4b..5686d17de2e 100644 --- a/sys/kern/uipc_domain.c +++ b/sys/kern/uipc_domain.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_domain.c,v 1.43 2015/09/04 08:43:39 mpi Exp $ */ +/* $OpenBSD: uipc_domain.c,v 1.44 2016/03/03 00:25:09 dlg Exp $ */ /* $NetBSD: uipc_domain.c,v 1.14 1996/02/09 19:00:44 christos Exp $ */ /* @@ -89,8 +89,8 @@ domaininit(void) (*pr->pr_init)(); } - if (max_linkhdr < 16) /* XXX */ - max_linkhdr = 16; + if (max_linkhdr < 64) /* XXX */ + max_linkhdr = 64; max_hdr = max_linkhdr + max_protohdr; timeout_set(&pffast_timeout, pffasttimo, &pffast_timeout); timeout_set(&pfslow_timeout, pfslowtimo, &pfslow_timeout); |