Lines Matching defs:xb
1047 struct xfrm_buffer *xb = (struct xfrm_buffer *)arg;
1048 struct rtnl_handle *rth = xb->rth;
1069 if (xb->offset > xb->size) {
1074 new_n = (struct nlmsghdr *)(xb->buf + xb->offset);
1086 addattr_l(new_n, xb->size, XFRMA_SRCADDR, &xsinfo->saddr,
1089 xb->offset += new_n->nlmsg_len;
1090 xb->nlmsg_count ++;
1141 struct xfrm_buffer xb;
1145 xb.buf = buf;
1146 xb.size = sizeof(buf);
1147 xb.rth = &rth;
1160 xb.offset = 0;
1161 xb.nlmsg_count = 0;
1171 if (rtnl_dump_filter(&rth, xfrm_state_keep, &xb) < 0) {
1175 if (xb.nlmsg_count == 0) {
1181 if (rtnl_send_check(&rth, xb.buf, xb.offset) < 0) {
1186 fprintf(stderr, "Delete-all nlmsg count = %d\n", xb.nlmsg_count);
1188 xb.offset = 0;
1189 xb.nlmsg_count = 0;