Lines Matching defs:xb
908 struct xfrm_buffer *xb = (struct xfrm_buffer *)arg;
909 struct rtnl_handle *rth = xb->rth;
930 if (xb->offset > xb->size) {
935 new_n = (struct nlmsghdr *)(xb->buf + xb->offset);
947 addattr_l(new_n, xb->size, XFRMA_SRCADDR, &xsinfo->saddr,
950 xb->offset += new_n->nlmsg_len;
951 xb->nlmsg_count ++;
1002 struct xfrm_buffer xb;
1006 xb.buf = buf;
1007 xb.size = sizeof(buf);
1008 xb.rth = &rth;
1011 xb.offset = 0;
1012 xb.nlmsg_count = 0;
1022 if (rtnl_dump_filter(&rth, xfrm_state_keep, &xb) < 0) {
1026 if (xb.nlmsg_count == 0) {
1032 if (rtnl_send_check(&rth, xb.buf, xb.offset) < 0) {
1037 fprintf(stderr, "Delete-all nlmsg count = %d\n", xb.nlmsg_count);
1039 xb.offset = 0;
1040 xb.nlmsg_count = 0;