--- cci/sys/h/socketvar.h 2019/07/28 12:24:19 1.1 +++ cci/sys/h/socketvar.h 2019/07/28 12:29:42 1.1.1.2 @@ -34,12 +34,21 @@ struct socket { * Variables for socket buffering. */ struct sockbuf { +#ifdef KPRF + unsigned long sb_cc; /* actual chars in buffer */ + unsigned long sb_hiwat; /* max actual char count */ + unsigned long sb_mbcnt; /* chars of mbufs used */ + unsigned long sb_mbmax; /* max chars of mbufs to use */ + unsigned long sb_lowat; /* low water mark (not used yet) */ + unsigned long sb_timeo; /* timeout (not used yet) */ +#else short sb_cc; /* actual chars in buffer */ short sb_hiwat; /* max actual char count */ short sb_mbcnt; /* chars of mbufs used */ short sb_mbmax; /* max chars of mbufs to use */ short sb_lowat; /* low water mark (not used yet) */ short sb_timeo; /* timeout (not used yet) */ +#endif KPRF struct mbuf *sb_mb; /* the mbuf chain */ struct proc *sb_sel; /* process selecting read/write */ short sb_flags; /* flags, see below */