Lines Matching refs:hdr
493 struct dgram_hdr hdr; in dgram_pair_ctrl_pending() local
510 l = dgram_pair_read_inner(readb, (uint8_t *)&hdr, sizeof(hdr)); in dgram_pair_ctrl_pending()
517 if (!ossl_assert(l == 0 || l == sizeof(hdr))) in dgram_pair_ctrl_pending()
520 return l > 0 ? hdr.len : 0; in dgram_pair_ctrl_pending()
880 struct dgram_hdr hdr; in dgram_pair_read_actual() local
908 l = dgram_pair_read_inner(readb, (uint8_t *)&hdr, sizeof(hdr)); in dgram_pair_read_actual()
916 if (!ossl_assert(l == sizeof(hdr))) in dgram_pair_read_actual()
923 if (sz > hdr.len) { in dgram_pair_read_actual()
924 sz = hdr.len; in dgram_pair_read_actual()
925 } else if (sz < hdr.len) { in dgram_pair_read_actual()
927 trunc = hdr.len - sz; in dgram_pair_read_actual()
950 *local = hdr.dst_addr; in dgram_pair_read_actual()
952 *peer = hdr.src_addr; in dgram_pair_read_actual()
1207 struct dgram_hdr hdr = {0}; in dgram_pair_write_actual() local
1231 hdr.len = sz; in dgram_pair_write_actual()
1232 hdr.dst_addr = (peer != NULL ? *peer : zero_addr); in dgram_pair_write_actual()
1233 hdr.src_addr = (local != NULL ? *local : zero_addr); in dgram_pair_write_actual()
1237 if (dgram_pair_write_inner(b, (const uint8_t *)&hdr, sizeof(hdr)) != sizeof(hdr) in dgram_pair_write_actual()