Package: netcat-openbsd
Version: 1.130-3
Severity: normal
Tags: ipv6

Dear Maintainer,

The man page for nc(1) says the -4 or -6 switch forces ipv4 or ipv6
only, respectively.  This suggests that using neither switch enables
both.  But this isn't what I found.

Below is a table where going down the first column is nc listening and
going along the first row is nc as a client, with various combinations
of the switch.  "Yes" means the client and server communicated, "no"
means they didn't.

| Server/Client | nc -4 127.0.0.1 4321 | nc -6 ::1 4321 |
|---------------+----------------------+----------------|
| nc -lkv 4321  | yes                  | no*            |
| nc -4lkv 4321 | yes                  | no             |
| nc -6lkv 4321 | yes*                 | yes            |
|---------------+----------------------+----------------|

* these are the inverse of what I expected.

I hope that makes sense.

Thanks

-- System Information:
Debian Release: 9.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages netcat-openbsd depends on:
ii  libbsd0  0.8.3-1
ii  libc6    2.24-11+deb9u3

netcat-openbsd recommends no packages.

netcat-openbsd suggests no packages.

-- debconf-show failed

Reply via email to