| /freebsd/sys/dev/qlxgb/ |
| H A D | qla_dbg.c | 53 uint32_t *buf; in qla_dump_buf32() local 56 buf = dbuf32; in qla_dump_buf32() 62 i, buf[0], buf[1], buf[2], buf[3]); in qla_dump_buf32() 65 buf += 4; in qla_dump_buf32() 69 device_printf(dev,"0x%08x: 0x%08x\n", i, buf[0]); in qla_dump_buf32() 72 device_printf(dev,"0x%08x: 0x%08x 0x%08x\n", i, buf[0], buf[1]); in qla_dump_buf32() 76 i, buf[0], buf[1], buf[2]); in qla_dump_buf32() 92 uint16_t *buf; in qla_dump_buf16() local 95 buf = dbuf16; in qla_dump_buf16() 101 " 0x%04x 0x%04x 0x%04x 0x%04x\n", i, buf[0], in qla_dump_buf16() [all …]
|
| /freebsd/sys/dev/qlxgbe/ |
| H A D | ql_dbg.c | 50 uint32_t *buf; in ql_dump_buf32() local 53 buf = dbuf32; in ql_dump_buf32() 59 i, buf[0], buf[1], buf[2], buf[3]); in ql_dump_buf32() 62 buf += 4; in ql_dump_buf32() 66 device_printf(dev,"0x%08x: 0x%08x\n", i, buf[0]); in ql_dump_buf32() 69 device_printf(dev,"0x%08x: 0x%08x 0x%08x\n", i, buf[0], buf[1]); in ql_dump_buf32() 73 i, buf[0], buf[1], buf[2]); in ql_dump_buf32() 89 uint16_t *buf; in ql_dump_buf16() local 92 buf = dbuf16; in ql_dump_buf16() 98 " 0x%04x 0x%04x 0x%04x 0x%04x\n", i, buf[0], in ql_dump_buf16() [all …]
|
| /freebsd/sys/dev/qlxge/ |
| H A D | qls_dbg.c | 52 uint32_t *buf; in qls_dump_buf32() local 55 buf = dbuf32; in qls_dump_buf32() 61 i, buf[0], buf[1], buf[2], buf[3]); in qls_dump_buf32() 64 buf += 4; in qls_dump_buf32() 68 device_printf(dev,"0x%08x: 0x%08x\n", i, buf[0]); in qls_dump_buf32() 71 device_printf(dev,"0x%08x: 0x%08x 0x%08x\n", i, buf[0], buf[1]); in qls_dump_buf32() 75 i, buf[0], buf[1], buf[2]); in qls_dump_buf32() 94 uint16_t *buf; in qls_dump_buf16() local 97 buf = dbuf16; in qls_dump_buf16() 103 " 0x%04x 0x%04x 0x%04x 0x%04x\n", i, buf[0], in qls_dump_buf16() [all …]
|
| /freebsd/crypto/krb5/src/util/support/ |
| H A D | t_k5buf.c | 43 check_buf(struct k5buf *buf, const char *name) in check_buf() argument 45 fail_if(buf->buftype != K5BUF_FIXED && buf->buftype != K5BUF_DYNAMIC && in check_buf() 46 buf->buftype != K5BUF_ERROR, name); in check_buf() 47 if (buf->buftype == K5BUF_ERROR) { in check_buf() 48 fail_if(buf->data != NULL, name); in check_buf() 49 fail_if(buf->space != 0 || buf->len != 0, name); in check_buf() 51 fail_if(buf->space == 0, name); in check_buf() 52 fail_if(buf->len >= buf->space, name); in check_buf() 59 struct k5buf buf; in test_basic() local 62 k5_buf_init_fixed(&buf, storage, sizeof(storage)); in test_basic() [all …]
|
| H A D | k5buf.c | 50 endptr(struct k5buf *buf) in endptr() argument 52 return (char *)buf->data + buf->len; in endptr() 56 set_error(struct k5buf *buf) in set_error() argument 58 buf->buftype = K5BUF_ERROR; in set_error() 59 buf->data = NULL; in set_error() 60 buf->space = buf->len = 0; in set_error() 69 ensure_space(struct k5buf *buf, size_t len) in ensure_space() argument 74 if (buf->buftype == K5BUF_ERROR) in ensure_space() 76 if (buf->space - buf->len >= len) /* Enough room already. */ in ensure_space() 78 if (buf->buftype == K5BUF_FIXED) /* Can't resize a fixed buffer. */ in ensure_space() [all …]
|
| /freebsd/crypto/openssh/ |
| H A D | sshbuf.c | 35 buf->size, buf->alloc, buf->off, buf->max_size); \ 45 size_t off; /* First available byte is buf->d + buf->off */ 46 size_t size; /* Last byte is buf->d + buf->size - 1 */ 48 size_t alloc; /* Total bytes allocated to buf->d */ 55 sshbuf_check_sanity(const struct sshbuf *buf) in sshbuf_check_sanity() argument 77 sshbuf_maybe_pack(struct sshbuf * buf,int force) sshbuf_maybe_pack() argument 145 sshbuf_fromb(struct sshbuf * buf) sshbuf_fromb() argument 161 sshbuf_free(struct sshbuf * buf) sshbuf_free() argument 196 sshbuf_reset(struct sshbuf * buf) sshbuf_reset() argument 219 sshbuf_max_size(const struct sshbuf * buf) sshbuf_max_size() argument 225 sshbuf_alloc(const struct sshbuf * buf) sshbuf_alloc() argument 231 sshbuf_parent(const struct sshbuf * buf) sshbuf_parent() argument 237 sshbuf_refcount(const struct sshbuf * buf) sshbuf_refcount() argument 243 sshbuf_set_max_size(struct sshbuf * buf,size_t max_size) sshbuf_set_max_size() argument 281 sshbuf_len(const struct sshbuf * buf) sshbuf_len() argument 289 sshbuf_avail(const struct sshbuf * buf) sshbuf_avail() argument 297 sshbuf_ptr(const struct sshbuf * buf) sshbuf_ptr() argument 305 sshbuf_mutable_ptr(const struct sshbuf * buf) sshbuf_mutable_ptr() argument 313 sshbuf_check_reserve(const struct sshbuf * buf,size_t len) sshbuf_check_reserve() argument 329 sshbuf_allocate(struct sshbuf * buf,size_t len) sshbuf_allocate() argument 372 sshbuf_reserve(struct sshbuf * buf,size_t len,u_char ** dpp) sshbuf_reserve() argument 392 sshbuf_consume(struct sshbuf * buf,size_t len) sshbuf_consume() argument 412 sshbuf_consume_end(struct sshbuf * buf,size_t len) sshbuf_consume_end() argument [all...] |
| /freebsd/lib/libopenbsd/ |
| H A D | imsg-buffer.c | 39 struct ibuf *buf; in ibuf_open() local 41 if ((buf = calloc(1, sizeof(struct ibuf))) == NULL) in ibuf_open() 43 if ((buf->buf = malloc(len)) == NULL) { in ibuf_open() 44 free(buf); in ibuf_open() 47 buf->size = buf->max = len; in ibuf_open() 48 buf->fd = -1; in ibuf_open() 50 return (buf); in ibuf_open() 56 struct ibuf *buf; in ibuf_dynamic() local 61 if ((buf = ibuf_open(len)) == NULL) in ibuf_dynamic() 65 buf->max = max; in ibuf_dynamic() [all …]
|
| /freebsd/sys/contrib/libb2/ |
| H A D | blake2s-load-sse2.h | 17 #define LOAD_MSG_0_1(buf) buf = _mm_set_epi32(m6,m4,m2,m0) argument 18 #define LOAD_MSG_0_2(buf) buf = _mm_set_epi32(m7,m5,m3,m1) argument 19 #define LOAD_MSG_0_3(buf) buf = _mm_set_epi32(m14,m12,m10,m8) argument 20 #define LOAD_MSG_0_4(buf) buf = _mm_set_epi32(m15,m13,m11,m9) argument 21 #define LOAD_MSG_1_1(buf) buf = _mm_set_epi32(m13,m9,m4,m14) argument 22 #define LOAD_MSG_1_2(buf) buf = _mm_set_epi32(m6,m15,m8,m10) argument 23 #define LOAD_MSG_1_3(buf) buf = _mm_set_epi32(m5,m11,m0,m1) argument 24 #define LOAD_MSG_1_4(buf) buf = _mm_set_epi32(m3,m7,m2,m12) argument 25 #define LOAD_MSG_2_1(buf) buf = _mm_set_epi32(m15,m5,m12,m11) argument 26 #define LOAD_MSG_2_2(buf) buf = _mm_set_epi32(m13,m2,m0,m8) argument [all …]
|
| /freebsd/contrib/wpa/src/utils/ |
| H A D | wpabuf.c | 22 static struct wpabuf_trace * wpabuf_get_trace(const struct wpabuf *buf) in wpabuf_get_trace() argument 25 ((const u8 *) buf - sizeof(struct wpabuf_trace)); in wpabuf_get_trace() 30 static void wpabuf_overflow(const struct wpabuf *buf, size_t len) in wpabuf_overflow() argument 33 struct wpabuf_trace *trace = wpabuf_get_trace(buf); in wpabuf_overflow() 40 buf, (unsigned long) buf->size, (unsigned long) buf->used, in wpabuf_overflow() 49 struct wpabuf *buf = *_buf; in wpabuf_resize() local 54 if (buf == NULL) { in wpabuf_resize() 60 trace = wpabuf_get_trace(buf); in wpabuf_resize() 69 if (buf->used + add_len > buf->size) { in wpabuf_resize() 71 if (buf->flags & WPABUF_FLAG_EXT_DATA) { in wpabuf_resize() [all …]
|
| H A D | wpabuf.h | 23 u8 *buf; /* pointer to the head of the buffer */ member 29 int wpabuf_resize(struct wpabuf **buf, size_t add_len); 34 void wpabuf_free(struct wpabuf *buf); 35 void wpabuf_clear_free(struct wpabuf *buf); 36 void * wpabuf_put(struct wpabuf *buf, size_t len); 38 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len); 39 void wpabuf_printf(struct wpabuf *buf, char *fmt, ...) PRINTF_FORMAT(2, 3); 40 struct wpabuf * wpabuf_parse_bin(const char *buf); 48 static inline size_t wpabuf_size(const struct wpabuf *buf) in wpabuf_size() argument 50 return buf->size; in wpabuf_size() [all …]
|
| /freebsd/contrib/wpa/src/p2p/ |
| H A D | p2p_build.c | 19 void p2p_buf_add_action_hdr(struct wpabuf *buf, u8 subtype, u8 dialog_token) in p2p_buf_add_action_hdr() argument 21 wpabuf_put_u8(buf, WLAN_ACTION_VENDOR_SPECIFIC); in p2p_buf_add_action_hdr() 22 wpabuf_put_be32(buf, P2P_IE_VENDOR_TYPE); in p2p_buf_add_action_hdr() 24 wpabuf_put_u8(buf, subtype); /* OUI Subtype */ in p2p_buf_add_action_hdr() 25 wpabuf_put_u8(buf, dialog_token); in p2p_buf_add_action_hdr() 30 void p2p_buf_add_public_action_hdr(struct wpabuf *buf, u8 subtype, in p2p_buf_add_public_action_hdr() argument 33 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC); in p2p_buf_add_public_action_hdr() 34 wpabuf_put_u8(buf, WLAN_PA_VENDOR_SPECIFIC); in p2p_buf_add_public_action_hdr() 35 wpabuf_put_be32(buf, P2P_IE_VENDOR_TYPE); in p2p_buf_add_public_action_hdr() 37 wpabuf_put_u8(buf, subtype); /* OUI Subtype */ in p2p_buf_add_public_action_hdr() [all …]
|
| /freebsd/contrib/ofed/libibmad/ |
| H A D | dump.c | 47 void mad_dump_int(char *buf, int bufsz, void *val, int valsz) in mad_dump_int() argument 51 snprintf(buf, bufsz, "%d", *(uint32_t *) val & 0xff); in mad_dump_int() 54 snprintf(buf, bufsz, "%d", *(uint32_t *) val & 0xffff); in mad_dump_int() 58 snprintf(buf, bufsz, "%d", *(uint32_t *) val); in mad_dump_int() 64 snprintf(buf, bufsz, "%" PRIu64, *(uint64_t *) val); in mad_dump_int() 68 buf[0] = 0; in mad_dump_int() 72 void mad_dump_uint(char *buf, int bufsz, void *val, int valsz) in mad_dump_uint() argument 76 snprintf(buf, bufsz, "%u", *(uint32_t *) val & 0xff); in mad_dump_uint() 79 snprintf(buf, bufsz, "%u", *(uint32_t *) val & 0xffff); in mad_dump_uint() 83 snprintf(buf, bufsz, "%u", *(uint32_t *) val); in mad_dump_uint() [all …]
|
| /freebsd/usr.sbin/bluetooth/sdpd/ |
| H A D | profile.c | 110 uint8_t *buf, uint8_t const * const eob, in common_profile_create_service_record_handle() 113 if (buf + 5 > eob) in common_profile_create_service_record_handle() 116 SDP_PUT8(SDP_DATA_UINT32, buf); in common_profile_create_service_record_handle() 117 SDP_PUT32(((provider_p) data)->handle, buf); in common_profile_create_service_record_handle() 130 uint8_t *buf, uint8_t const * const eob, in common_profile_create_service_class_id_list() 135 if (len <= 0 || len > 0xff || buf + 2 + len > eob) in common_profile_create_service_class_id_list() 138 SDP_PUT8(SDP_DATA_SEQ8, buf); in common_profile_create_service_class_id_list() 139 SDP_PUT8(len, buf); in common_profile_create_service_class_id_list() 142 SDP_PUT8(SDP_DATA_UUID16, buf); in common_profile_create_service_class_id_list() 143 SDP_PUT16(*((uint16_t const *)data), buf); in common_profile_create_service_class_id_list() 109 common_profile_create_service_record_handle(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) common_profile_create_service_record_handle() argument 129 common_profile_create_service_class_id_list(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) common_profile_create_service_class_id_list() argument 161 common_profile_create_bluetooth_profile_descriptor_list(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) common_profile_create_bluetooth_profile_descriptor_list() argument 195 common_profile_create_language_base_attribute_id_list(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) common_profile_create_language_base_attribute_id_list() argument 235 common_profile_create_service_provider_name(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) common_profile_create_service_provider_name() argument 251 common_profile_create_string8(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) common_profile_create_string8() argument 270 common_profile_create_service_availability(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) common_profile_create_service_availability() argument 293 rfcomm_profile_create_protocol_descriptor_list(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) rfcomm_profile_create_protocol_descriptor_list() argument 330 obex_profile_create_protocol_descriptor_list(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) obex_profile_create_protocol_descriptor_list() argument 367 obex_profile_create_supported_formats_list(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) obex_profile_create_supported_formats_list() argument 434 bnep_profile_create_protocol_descriptor_list(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) bnep_profile_create_protocol_descriptor_list() argument 488 bnep_profile_create_security_description(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) bnep_profile_create_security_description() argument [all...] |
| /freebsd/contrib/bmake/ |
| H A D | buf.c | 1 /* $NetBSD: buf.c,v 1.58 2024/04/28 15:10:19 rillig Exp $ */ 77 /* "@(#)buf.c 8.1 (Berkeley) 6/6/93" */ 78 MAKE_RCSID("$NetBSD: buf.c,v 1.58 2024/04/28 15:10:19 rillig Exp $"); 82 Buf_Expand(Buffer *buf) in Buf_Expand() argument 84 buf->cap += buf->cap > 16 ? buf->cap : 16; in Buf_Expand() 85 buf->data = bmake_realloc(buf->data, buf in Buf_Expand() 90 Buf_AddBytes(Buffer * buf,const char * bytes,size_t bytes_len) Buf_AddBytes() argument 109 Buf_AddRange(Buffer * buf,const char * start,const char * end) Buf_AddRange() argument 116 Buf_AddStr(Buffer * buf,const char * str) Buf_AddStr() argument 123 Buf_AddInt(Buffer * buf,int n) Buf_AddInt() argument 132 Buf_AddFlag(Buffer * buf,bool flag,const char * name) Buf_AddFlag() argument 143 Buf_InitSize(Buffer * buf,size_t cap) Buf_InitSize() argument 152 Buf_Init(Buffer * buf) Buf_Init() argument 162 Buf_Done(Buffer * buf) Buf_Done() argument 178 Buf_DoneData(Buffer * buf) Buf_DoneData() argument 203 Buf_DoneDataCompact(Buffer * buf) Buf_DoneDataCompact() argument [all...] |
| /freebsd/contrib/xz/src/common/ |
| H A D | tuklib_integer.h | 329 read16ne(const uint8_t *buf) in read16ne() argument 332 return *(const uint16_t *)buf; in read16ne() 335 memcpy(&num, buf, sizeof(num)); in read16ne() 342 read32ne(const uint8_t *buf) in read32ne() argument 345 return *(const uint32_t *)buf; in read32ne() 348 memcpy(&num, buf, sizeof(num)); in read32ne() 355 read64ne(const uint8_t *buf) in read64ne() argument 358 return *(const uint64_t *)buf; in read64ne() 361 memcpy(&num, buf, sizeof(num)); in read64ne() 368 write16ne(uint8_t *buf, uint16_t num) in write16ne() argument [all …]
|
| /freebsd/contrib/flex/src/ |
| H A D | buf.c | 55 struct Buf *buf_print_strings(struct Buf * buf, FILE* out) in buf_print_strings() argument 59 if(!buf || !out) in buf_print_strings() 60 return buf; in buf_print_strings() 62 for (i=0; i < buf->nelts; i++){ in buf_print_strings() 63 const char * s = ((char**)buf->elts)[i]; in buf_print_strings() 67 return buf; in buf_print_strings() 71 struct Buf *buf_prints (struct Buf *buf, const char *fmt, const char *s) in buf_prints() argument 81 buf = buf_strappend (buf, t); in buf_prints() 83 return buf; in buf_prints() 92 struct Buf *buf_linedir (struct Buf *buf, const char* filename, int lineno) in buf_linedir() argument [all …]
|
| /freebsd/sys/contrib/dev/athk/ath11k/ |
| H A D | debugfs_htt_stats.c | 44 u8 *buf = stats_req->buf; in htt_print_stats_string_tlv() local 51 len += scnprintf(buf + len, buf_len - len, "HTT_STATS_STRING_TLV:\n"); in htt_print_stats_string_tlv() 53 len += scnprintf(buf + len, buf_len - len, in htt_print_stats_string_tlv() 56 len += scnprintf(buf + len, in htt_print_stats_string_tlv() 61 len += scnprintf(buf + len, buf_len - len, "\n\n"); in htt_print_stats_string_tlv() 64 buf[buf_len - 1] = 0; in htt_print_stats_string_tlv() 66 buf[len] = 0; in htt_print_stats_string_tlv() 75 u8 *buf = stats_req->buf; in htt_print_tx_pdev_stats_cmn_tlv() local 79 len += scnprintf(buf + len, buf_len - len, "HTT_TX_PDEV_STATS_CMN_TLV:\n"); in htt_print_tx_pdev_stats_cmn_tlv() 80 len += scnprintf(buf + len, buf_len - len, "mac_id = %lu\n", in htt_print_tx_pdev_stats_cmn_tlv() [all …]
|
| /freebsd/contrib/wpa/src/common/ |
| H A D | gas.c | 20 struct wpabuf *buf; in gas_build_req() local 22 buf = wpabuf_alloc(100 + size); in gas_build_req() 23 if (buf == NULL) in gas_build_req() 26 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC); in gas_build_req() 27 wpabuf_put_u8(buf, action); in gas_build_req() 28 wpabuf_put_u8(buf, dialog_token); in gas_build_req() 30 return buf; in gas_build_req() 51 struct wpabuf *buf; in gas_build_resp() local 53 buf = wpabuf_alloc(100 + size); in gas_build_resp() 54 if (buf == NULL) in gas_build_resp() [all …]
|
| /freebsd/lib/libc/stdtime/ |
| H A D | strptime.c | 78 _strptime(const char *buf, const char *fmt, struct tm *tm, int *GMTp, in _strptime() argument 105 while (*buf != 0 && in _strptime() 106 isspace_l((unsigned char)*buf, locale)) in _strptime() 107 buf++; in _strptime() 108 else if (c != *buf++) in _strptime() 119 if (*buf++ != '%') in _strptime() 124 buf = _strptime(buf, tptr->date_fmt, tm, GMTp, locale); in _strptime() 125 if (buf == NULL) in _strptime() 131 if (!isdigit_l((unsigned char)*buf, locale)) in _strptime() 136 for (i = 0; len && *buf != 0 && in _strptime() [all …]
|
| /freebsd/sys/contrib/dev/athk/ath12k/ |
| H A D | debugfs_htt_stats.c | 15 print_array_to_buf_index(u8 *buf, u32 offset, const char *header, u32 stats_index, in print_array_to_buf_index() argument 22 index += scnprintf(buf + offset, in print_array_to_buf_index() 27 index += scnprintf(buf + offset + index, in print_array_to_buf_index() 34 *(buf + offset + index) = '\0'; in print_array_to_buf_index() 38 index += scnprintf(buf + offset + index, in print_array_to_buf_index() 46 print_array_to_buf(u8 *buf, u32 offset, const char *header, in print_array_to_buf() argument 49 return print_array_to_buf_index(buf, offset, header, 0, array, array_len, in print_array_to_buf() 54 print_array_to_buf_s8(u8 *buf, u32 offset, const char *header, u32 stats_index, in print_array_to_buf_s8() argument 62 index += scnprintf(buf + offset, buf_len - offset, "%s = ", header); in print_array_to_buf_s8() 65 index += scnprintf(buf + offset + index, (buf_len - offset) - index, in print_array_to_buf_s8() [all …]
|
| /freebsd/lib/libc/tests/string/ |
| H A D | strcspn_test.c | 51 testcase(char *buf, size_t buflen, char *set, size_t setlen, int want_match) in testcase() argument 59 buf[i] = UCHAR_MAX - i % (setlen > 0 ? setlen : 1); in testcase() 61 buf[i] = 1 + i % (UCHAR_MAX - setlen - 1); in testcase() 64 buf[i] = '\0'; in testcase() 75 buf[buflen - 1] = 1; in testcase() 81 buf[buflen - 1] = UCHAR_MAX; in testcase() 87 outcome = STRXSPN(buf, set); in testcase() 89 __XSTRING(STRXSPN), buf, buflen, set, setlen, outcome, expected); in testcase() 96 char buf[MAXALIGN + MAXBUF + 1]; in test_buf_alignments() local 101 testcase(buf + i, j, set, setlen, want_match); in test_buf_alignments() [all …]
|
| /freebsd/contrib/netcat/ |
| H A D | socks.c | 91 proxy_read_line(int fd, char *buf, size_t bufsz) in proxy_read_line() argument 98 if (atomicio(read, fd, buf + off, 1) != 1) in proxy_read_line() 101 if (buf[off] == '\r') in proxy_read_line() 103 if (buf[off] == '\n') { in proxy_read_line() 104 buf[off] = '\0'; in proxy_read_line() 133 unsigned char buf[1024]; in socks_connect() local 165 buf[0] = SOCKS_V5; in socks_connect() 166 buf[1] = 1; in socks_connect() 167 buf[2] = SOCKS_NOAUTH; in socks_connect() 168 cnt = atomicio(vwrite, proxyfd, buf, 3); in socks_connect() [all …]
|
| /freebsd/contrib/pf/libevent/ |
| H A D | buffer.c | 129 evbuffer_add_vprintf(struct evbuffer *buf, const char *fmt, va_list ap) in evbuffer_add_vprintf() argument 133 size_t oldoff = buf->off; in evbuffer_add_vprintf() 138 buffer = (char *)buf->buffer + buf->off; in evbuffer_add_vprintf() 139 space = buf->totallen - buf->misalign - buf->off; in evbuffer_add_vprintf() 158 buf->off += sz; in evbuffer_add_vprintf() 159 if (buf->cb != NULL) in evbuffer_add_vprintf() 160 (*buf->cb)(buf, oldoff, buf->off, buf->cbarg); in evbuffer_add_vprintf() 163 if (evbuffer_expand(buf, sz + 1) == -1) in evbuffer_add_vprintf() 171 evbuffer_add_printf(struct evbuffer *buf, const char *fmt, ...) in evbuffer_add_printf() argument 177 res = evbuffer_add_vprintf(buf, fmt, ap); in evbuffer_add_printf() [all …]
|
| /freebsd/contrib/tcpdump/ |
| H A D | smbutil.c | 182 const u_char *buf, u_int ofs, const u_char *maxbuf) in name_ptr() argument 187 p = buf + ofs; in name_ptr() 205 p = buf + l; in name_ptr() 221 const u_char *buf, u_int ofs, const u_char *maxbuf, char *name) in name_extract() argument 223 const u_char *p = name_ptr(ndo, buf, ofs, maxbuf); in name_extract() 260 const u_char *buf, u_int len) in print_asc() argument 264 fn_print_char(ndo, GET_U_1(buf + i)); in print_asc() 285 smb_data_print(netdissect_options *ndo, const u_char *buf, u_int len) in smb_data_print() argument 293 ND_PRINT("%02X ", GET_U_1(buf + i) & 0xff); in smb_data_print() 298 print_asc(ndo, buf + i - 16, 8); in smb_data_print() [all …]
|
| /freebsd/contrib/wpa/src/ap/ |
| H A D | gas_serv.c | 25 static void gas_serv_write_dpp_adv_proto(struct wpabuf *buf) in gas_serv_write_dpp_adv_proto() argument 27 wpabuf_put_u8(buf, WLAN_EID_ADV_PROTO); in gas_serv_write_dpp_adv_proto() 28 wpabuf_put_u8(buf, 8); /* Length */ in gas_serv_write_dpp_adv_proto() 29 wpabuf_put_u8(buf, 0x7f); in gas_serv_write_dpp_adv_proto() 30 wpabuf_put_u8(buf, WLAN_EID_VENDOR_SPECIFIC); in gas_serv_write_dpp_adv_proto() 31 wpabuf_put_u8(buf, 5); in gas_serv_write_dpp_adv_proto() 32 wpabuf_put_be24(buf, OUI_WFA); in gas_serv_write_dpp_adv_proto() 33 wpabuf_put_u8(buf, DPP_OUI_TYPE); in gas_serv_write_dpp_adv_proto() 34 wpabuf_put_u8(buf, 0x01); in gas_serv_write_dpp_adv_proto() 162 struct wpabuf *buf) in anqp_add_hs_capab_list() argument [all …]
|