Lines Matching defs:xb
697 struct xfrm_buffer *xb = (struct xfrm_buffer *)arg;
698 struct rtnl_handle *rth = xb->rth;
719 if (xb->offset > xb->size) {
724 new_n = (struct nlmsghdr *)(xb->buf + xb->offset);
736 xb->offset += new_n->nlmsg_len;
737 xb->nlmsg_count ++;
788 struct xfrm_buffer xb;
792 xb.buf = buf;
793 xb.size = sizeof(buf);
794 xb.rth = &rth;
797 xb.offset = 0;
798 xb.nlmsg_count = 0;
808 if (rtnl_dump_filter(&rth, xfrm_state_keep, &xb, NULL, NULL) < 0) {
812 if (xb.nlmsg_count == 0) {
818 if (rtnl_send(&rth, xb.buf, xb.offset) < 0) {
823 fprintf(stderr, "Delete-all nlmsg count = %d\n", xb.nlmsg_count);
825 xb.offset = 0;
826 xb.nlmsg_count = 0;