Created attachment 153197 [details] my version of the patch Once vpnc set up a tunnel and went into the main loop, no esp could be sent, with the following error message: vpnc[2405]: esp sendto: Invalid argument A strange thing is that vpnc seems to work OK on a bhyve guest built around the same time, as my host system: $ uname -a FreeBSD mkushnir.mooo.com 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r278973: Thu Feb 19 05:56:13 EET 2015 root@vm0.mkushnir.mooo.com:/work/obj/work/src.svn/sys/MAREK amd64 After some digging, I could fix it by defining NEED_IPLEN_FIX in the port patch file. I'm attaching my version of patch-sysdep.h below. I found it quite a while ago (a couple of months), but only got to it now.
Fix Summary and assign.
Can you narrow this this down to a specific __FreeBSD_version? https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/versions.html I feel reluctant to implement this patch on a global scope.
I haven't seen it in 10-STABLE (on my laptop in the office). And barely recall it started to be an issue on my home setup since November or so. Where I run 11-CURRENT with periodically source-upgrading it. I would suggest __FreeBSD_version >= 1100000.
(In reply to markiyan.kushnir from comment #3) well, not 1100000, sorry. So let it be __FreeBSD_version >= 1100042 which corresponds to the last Nov.
(In reply to Emanuel Haupt from comment #2) Patch attached fixes the bug on 1100059. FreeBSD mx12.chaot.net 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r278452: Mon Feb 9 13:40:37 UTC 2015 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
A commit references this bug: Author: ehaupt Date: Tue Mar 3 20:50:54 UTC 2015 New revision: 380395 URL: https://svnweb.freebsd.org/changeset/ports/380395 Log: Fix bug on __FreeBSD_version >= 1100042 where once vpnc set up a tunnel and went into the main loop, no esp could be sent. PR: 197835 (based on) Submitted by: markiyan.kushnir@gmail.com Fix confirmed: xmj Changes: head/security/vpnc/Makefile head/security/vpnc/files/patch-sysdep.h
Patch committed, thanks.