Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jan 2016 21:15:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-net@FreeBSD.org
Subject:   [Bug 203922] The kern.ipc.acceptqueue limit is too low
Message-ID:  <bug-203922-2472-cSZI1aQuZz@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-203922-2472@https.bugs.freebsd.org/bugzilla/>
References:  <bug-203922-2472@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D203922

--- Comment #6 from Alfred Perlstein <alfred@FreeBSD.org> ---
The correct way would be to retain the field as-is but rename it to "_old".

Then add a field with the correct width.

Then when exporting the field make sure to continue to export the _old stru=
ct
but carefully assign it using code as follows:
xpcb->qlen =3D newval
xpcb->qlen_old =3D qlen->qlen > (uint32_t)MAX_ISHORT ? MAX_USHORT : qlen->q=
len

Then possibly mark the old field for deprecation, but still really shouldn't
deprecate if we intend to be forever backwards compatible.

To _really_ fix it, there really should be an accessor library written so t=
hat
no one has to even know the size of xpcb other than the library.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-203922-2472-cSZI1aQuZz>