Bug Report :: Tunnel (tunX) Selection, Maximum Value of 32-bit Integer Appears In Log Output Consistently

Darren Tucker dtucker at zip.com.au
Wed Nov 13 05:56:35 EST 2013


On Tue, Nov 12, 2013 at 12:06:57AM -0500, SkipM wrote:
> - What's "scary" is the presence of the maximum value of a 32-bit integer consistently in a line of debug log (see below)
[...]
> debug1: Requesting tun unit 2147483647 in mode 2         <<<---- here it is.

That's a constant meaning "any tunnel device".  It's defined in misc.h:

$ grep SSH_TUNID_ANY misc.h
#define SSH_TUNID_ANY		0x7fffffff

and specified in the PROTOCOL file containing the vendor extensions
implemented by OpenSSH (look for "tunnel unit number"):
http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/PROTOCOL?rev=HEAD;content-type=text/plain

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


More information about the openssh-unix-dev mailing list