IO: Workaround for broken FreeBSD behavior

FreeBSD silently changes TTL to 1 when MSG_DONTROUTE is used, even when
it is explicitly set to another value. That breaks TTL security sockets,
including BFD which always uses TTL 255. Bad FreeBSD!
32 jobs from int-new in 4 minutes and 29 seconds (queued for 7 seconds)
Status Job ID Name Coverage
  Image
passed #209786
dind allowed to fail
docker_centos-6-amd64

00:00:25

passed #209787
dind allowed to fail
docker_centos-7-amd64

00:00:25

passed #209776
dind allowed to fail
docker_debian-7-amd64

00:00:26

passed #209780
dind allowed to fail
docker_debian-7-i386

00:00:26

passed #209777
dind allowed to fail
docker_debian-8-amd64

00:00:25

passed #209781
dind allowed to fail
docker_debian-8-i386

00:00:25

passed #209778
dind allowed to fail
docker_debian-9-amd64

00:00:26

passed #209782
dind allowed to fail
docker_debian-9-i386

00:00:26

passed #209779
dind allowed to fail
docker_debian-testing-amd64

00:00:26

passed #209783
dind allowed to fail
docker_debian-testing-i386

00:00:26

passed #209784
dind allowed to fail
docker_fedora-25-amd64

00:00:28

passed #209785
dind allowed to fail
docker_fedora-26-amd64

00:00:28

passed #209788
dind allowed to fail
docker_opensuse-42_3-amd64

00:00:26

passed #209789
dind allowed to fail
docker_ubuntu-14_04-amd64

00:00:27

passed #209790
dind allowed to fail
docker_ubuntu-16_04-amd64

00:00:28

 
  Build
passed #209797
docker linux amd64
build-centos-6-amd64

00:00:56

passed #209798
docker linux amd64
build-centos-7-amd64

00:00:59

passed #209791
docker linux amd64
build-debian-7-amd64

00:01:31

passed #209802
docker linux amd64
build-debian-7-i386

00:00:59

passed #209792
docker linux amd64
build-debian-8-amd64

00:01:33

passed #209803
docker linux amd64
build-debian-8-i386

00:01:04

passed #209793
docker linux amd64
build-debian-9-amd64

00:01:39

passed #209804
docker linux amd64
build-debian-9-i386

00:00:51

passed #209794
docker linux amd64
build-debian-testing-amd64

00:01:03

passed #209805
docker linux amd64
build-debian-testing-i386

00:00:56

passed #209795
docker linux amd64
build-fedora-25-amd64

00:00:57

passed #209796
docker linux amd64
build-fedora-26-amd64

00:01:00

passed #209806
freebsd amd64
build-freebsd-11-amd64

00:01:56

passed #209807
freebsd i386
build-freebsd-11-i386

00:01:31

passed #209799
docker linux amd64
build-opensuse-42_3-amd64

00:00:55

passed #209800
docker linux amd64
build-ubuntu-14_04-amd64

00:01:00

passed #209801
docker linux amd64
build-ubuntu-16_04-amd64

00:00:58