Home | History | Annotate | Download | only in lib

Lines Matching refs:ub

384 	} ub;
392 iov.iov_base = ub.buf;
394 ub.bl.bl_len = (uint32_t)iov.iov_len;
395 ub.bl.bl_version = BL_VERSION;
396 ub.bl.bl_type = (uint32_t)e;
398 if (bl_getsock(b, &ub.bl.bl_ss, sa, slen, ctx) == -1)
402 ub.bl.bl_salen = slen;
403 memcpy(ub.bl.bl_data, ctx, ctxlen);
449 } ub;
458 iov.iov_base = ub.buf;
459 iov.iov_len = sizeof(ub);
528 if (rem < sizeof(ub.bl)) {
532 rem -= sizeof(ub.bl);
534 if (ub.bl.bl_version != BL_VERSION) {
535 bl_log(b, LOG_ERR, "bad version %d", ub.bl.bl_version);
539 bi->bi_type = ub.bl.bl_type;
540 bi->bi_slen = ub.bl.bl_salen;
541 bi->bi_ss = ub.bl.bl_ss;
550 memcpy(bi->bi_msg, ub.bl.bl_data, rem);