Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jul 2007 17:21:16 +0200 (MEST)
From:      Michiel Boland <michiel@boland.org>
To:        freebsd-current@freebsd.org
Subject:   confusing kdump output
Message-ID:  <Pine.GSO.4.64.0707081716270.13175@neerbosch.nijmegen.internl.net>

next in thread | raw e-mail | index | archive | help
Hi. If a program does something like

setsockopt(sock, IPPROTO_TCP, TCP_NOPUSH, &onoff, sizeof onoff)

this is reported by kdump as

setsockopt(0x2a,0x6,SO_REUSEADDR,0x7fffffffe32c,0x4)

Note that it reports SO_REUSEADDR rather than TCP_NOPUSH. This is 
confusing.

It's probably a bit useless to compile all possible printable socket 
options into kdump, but at least it could be made to not print a symbolic 
name if the level is, say, not SOL_SOCKET.

Cheers
Michiel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.0707081716270.13175>