Searched refs:msg_sz (Results 1 – 2 of 2) sorted by relevance
| /netbsd/src/external/bsd/ntp/dist/tests/libntp/ |
| D | digests.c | 49 size_t msg_sz; in setUp() local 80 msg_sz = msg_stat.st_size; in setUp() 82 pad_sz = sizeof(u_int32) - (msg_sz % sizeof(u_int32)); in setUp() 87 msg = emalloc_zero(msg_sz + pad_sz + MAX_MAC_LEN); in setUp() 88 octets = read(msgf, msg, msg_sz); in setUp() 89 if (octets != msg_sz) { in setUp() 91 msg_fname, (u_int)octets, (u_int)msg_sz); in setUp() 94 zero_mem(msg + msg_sz, pad_sz); in setUp() 95 pkt_sz = msg_sz + pad_sz; in setUp()
|
| /netbsd/src/sys/dev/ppbus/ |
| D | ppbus_1284.c | 408 u_int16_t msg_sz; in ppbus_1284_read_id() local 455 msg_sz = length_field; in ppbus_1284_read_id() 462 msg_sz <<= 8; in ppbus_1284_read_id() 463 msg_sz |= length_field; in ppbus_1284_read_id() 464 msg_sz -= 2; in ppbus_1284_read_id() 465 if(msg_sz <= 0) { in ppbus_1284_read_id() 470 *buffer = malloc(msg_sz, M_DEVBUF, M_WAITOK); in ppbus_1284_read_id() 471 *size = msg_sz; in ppbus_1284_read_id() 472 error = ppbus_read(dev, *buffer, msg_sz, 0, read); in ppbus_1284_read_id()
|