sockbuf: retain backward compatibility with userland after d59bc188d652

Add spare fields to xsockbuf in place of sb_mcnt / sb_ccnt to avoid
 rebuilding userland binaries like sockstat(1).

Reviewed by:	glebius
This commit is contained in:
Alexander V. Chernikov 2022-05-30 14:56:25 +00:00
parent 4be6358704
commit 8c0d1eca78

View File

@ -577,6 +577,8 @@ struct xsocket {
uint32_t sb_cc;
uint32_t sb_hiwat;
uint32_t sb_mbcnt;
uint32_t sb_spare0; /* was sb_mcnt */
uint32_t sb_spare1; /* was sb_ccnt */
uint32_t sb_mbmax;
int32_t sb_lowat;
int32_t sb_timeo;