Lines Matching refs:ub
370 } ub; in bl_send() local
378 iov.iov_base = ub.buf; in bl_send()
380 ub.bl.bl_len = (uint32_t)iov.iov_len; in bl_send()
381 ub.bl.bl_version = BL_VERSION; in bl_send()
382 ub.bl.bl_type = (uint32_t)e; in bl_send()
384 if (bl_getsock(b, &ub.bl.bl_ss, sa, slen, ctx) == -1) in bl_send()
388 ub.bl.bl_salen = slen; in bl_send()
389 memcpy(ub.bl.bl_data, ctx, ctxlen); in bl_send()
434 } ub; in bl_recv() local
443 iov.iov_base = ub.buf; in bl_recv()
444 iov.iov_len = sizeof(ub); in bl_recv()
508 if (rem < sizeof(ub.bl)) { in bl_recv()
512 rem -= sizeof(ub.bl); in bl_recv()
514 if (ub.bl.bl_version != BL_VERSION) { in bl_recv()
515 bl_log(b->b_fun, LOG_ERR, "bad version %d", ub.bl.bl_version); in bl_recv()
519 bi->bi_type = ub.bl.bl_type; in bl_recv()
520 bi->bi_slen = ub.bl.bl_salen; in bl_recv()
521 bi->bi_ss = ub.bl.bl_ss; in bl_recv()
530 strlcpy(bi->bi_msg, ub.bl.bl_data, rem); in bl_recv()