BSD: Use MSG_DONTROUTE for unicast packets on FreeBSD

BSD systems cannot use SO_DONTROUTE, because it does not work properly
with multicast packets (perhaps it tries to find iface based on multicast
group address). But we can use MSG_DONTROUTE sendmsg() flag for unicast
packets. Works on FreeBSD, is ignored on OpenBSD and is broken on NetBSD
(i guess due to integrated routing table and ARP table).
32 jobs for <span class="ref-name">int-new</span> in 4 minutes and 11 seconds (queued for 11 seconds)
Status Job ID Name Coverage
  Image
passed #154676
dind allowed to fail
docker_centos-6-amd64

00:00:18

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

00:00:19

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

00:00:20

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

00:00:19

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

00:00:21

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

00:00:18

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

00:00:19

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

00:00:18

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

00:00:21

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

00:00:18

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

00:00:19

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

00:00:19

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

00:00:19

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

00:00:19

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

00:00:19

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

00:01:07

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

00:01:08

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

00:01:09

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

00:01:07

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

00:01:13

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

00:01:12

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

00:01:16

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

00:01:12

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

00:01:13

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

00:01:11

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

00:01:12

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

00:01:08

passed #154696
freebsd amd64
build-freebsd-11-amd64

00:03:05

passed #154697
freebsd i386
build-freebsd-11-i386

00:03:08

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

00:01:11

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

00:01:14

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

00:01:12