This diffs corrects the check for the header length size: instead of looking
for MINCLSIZE (which is the cluster mbuf space size) we should use MHLEN (the
header mbuf space size).
ok?
Index: net/switchofp.c
===================================================================
RCS file: /home/obsdcvs/src/sys/net/switchofp.c,v
retrieving revision 1.10
diff -u -p -r1.10 switchofp.c
--- net/switchofp.c 4 Oct 2016 17:58:09 -0000 1.10
+++ net/switchofp.c 8 Oct 2016 21:42:47 -0000
@@ -4510,7 +4510,7 @@ swofp_send_flow_removed(struct switch_so
MGETHDR(m, M_WAITOK, MT_DATA);
if (m == NULL)
return (ENOBUFS);
- if ((sizeof(*ofr) + match_len) >= MINCLSIZE) {
+ if ((sizeof(*ofr) + match_len) >= MHLEN) {
MCLGET(m, M_WAITOK);
if (m == NULL)
return (ENOBUFS);