interfaces: skip unhandled interface families early

We handle interfaces of type AF_INET or AF_INET6 only, so discard other
families before calling sockaddr_to_string() on them, for example
PF_PACKET.
7 jobs for master in 17 minutes and 10 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #6168813
build

00:00:29

passed #6168815
docker windows 1809
build msvc amd64

00:02:49

passed #6168816
docker windows 1809
build msvc x86

00:02:50

passed #6168814
docker windows 1809
build msys2

00:17:10

 
  Test
passed #6168819
doc-and-install

00:00:44

passed #6168817
test

00:01:03

passed #6168818
test valgrind

00:00:56