And then rebuild and install a new kernel:
KK=`sysctl -n kern.osversion | cut -d# -f1`
cd /usr/src/sys/arch/`machine`/compile/$KK
make obj
make config
make
make install
Index: sys/netinet/ip_output.c
===================================================================
RCS file: /cvs/src/sys/netinet/ip_output.c,v
retrieving revision 1.348
diff -u -p -r1.348 ip_output.c
--- sys/netinet/ip_output.c 28 Aug 2018 15:15:02 -0000 1.348
+++ sys/netinet/ip_output.c 20 Dec 2018 12:39:51 -0000
@@ -1255,7 +1255,7 @@ ip_pcbopts(struct mbuf **pcbopt, struct
* actual options; move other options back
* and clear it when none present.
*/
- if (m->m_data + m->m_len + sizeof(struct in_addr) >= &m->m_dat[MLEN])
+ if (m_trailingspace(m) < sizeof(struct in_addr))
return (EINVAL);
cnt = m->m_len;
m->m_len += sizeof(struct in_addr);