freebsd-dev/sys/dev/cxgb
Ian Lepore 1eafc07856 Set the SBUF_INCLUDENUL flag in sbuf_new_for_sysctl() so that sysctl
strings returned to userland include the nulterm byte.

Some uses of sbuf_new_for_sysctl() write binary data rather than strings;
clear the SBUF_INCLUDENUL flag after calling sbuf_new_for_sysctl() in
those cases.  (Note that the sbuf code still automatically adds a nulterm
byte in sbuf_finish(), but since it's not included in the length it won't
get copied to userland along with the binary data.)

Remove explicit adding of a nulterm byte in a couple places now that it
gets done automatically by the sbuf drain code.

PR:		195668
2015-03-14 17:08:28 +00:00
..
common
sys Provide a set of inline functions to manage simple mbuf(9) queues, based 2015-02-19 01:19:42 +00:00
ulp Provide a set of inline functions to manage simple mbuf(9) queues, based 2015-02-19 01:19:42 +00:00
bin2h.pl
cxgb_adapter.h Provide a set of inline functions to manage simple mbuf(9) queues, based 2015-02-19 01:19:42 +00:00
cxgb_include.h
cxgb_ioctl.h
cxgb_main.c
cxgb_offload.h
cxgb_osdep.h Remove kdb_backtrace extern; get the definition for kdb_backtrace from 2015-02-07 21:29:17 +00:00
cxgb_sge.c Set the SBUF_INCLUDENUL flag in sbuf_new_for_sysctl() so that sysctl 2015-03-14 17:08:28 +00:00
cxgb_t3fw.c
cxgb_t3fw.h
t3b_protocol_sram.h
t3b_tp_eeprom.h
t3c_protocol_sram.h
t3c_tp_eeprom.h