Only use sockoptname() to parse socket option names for SOL_SOCKET

requests.

MFC after:	3 days
Reported by:	Michiel Boland  michiel boland.org
This commit is contained in:
John Baldwin 2008-01-07 18:50:25 +00:00
parent 7a52326a0d
commit 0460d3516d

View File

@ -532,10 +532,12 @@ ktrsyscall(struct ktr_syscall *ktr)
print_number(ip,narg,c);
(void)putchar(',');
sockoptlevelname((int)*ip, decimal);
ip++;
narg--;
(void)putchar(',');
sockoptname((int)*ip);
if ((int)*ip == SOL_SOCKET) {
ip++;
narg--;
(void)putchar(',');
sockoptname((int)*ip);
}
ip++;
narg--;
#ifdef SYS_freebsd6_lseek