Package: netcat-openbsd Version: 1.178-2 If I run: $ nc -l -v -n -u 127.1 4321 and then in another terminal: $ echo foo | nc -u 127.1 4321 then the listening netcat will fail with an error: nc: getnameinfo: ai_family not supported
I believe this is caused by an omission from debian/patches/verbose-numeric-port.patch and can be fixed with something like: --- netcat-openbsd-1.178/netcat.c 2017-07-31 10:04:11.000000000 +0300 +++ netcat-openbsd-1.178.fix/netcat.c 2017-07-31 09:59:19.732775365 +0300 @@ -753,7 +753,7 @@ err(1, "connect"); if (vflag) - report_connect((struct sockaddr *)&z, len, NULL); + report_connect((struct sockaddr *)&cliaddr, len, NULL); # if defined(TLS) readwrite(s, NULL);