Home | History | Annotate | Download | only in ip

Lines Matching refs:xb

652 	struct xfrm_buffer *xb = (struct xfrm_buffer *)arg;
653 struct rtnl_handle *rth = xb->rth;
689 if (xb->offset > xb->size) {
694 new_n = (struct nlmsghdr *)(xb->buf + xb->offset);
705 xb->offset += new_n->nlmsg_len;
706 xb->nlmsg_count ++;
783 struct xfrm_buffer xb;
787 xb.buf = buf;
788 xb.size = sizeof(buf);
789 xb.rth = &rth;
792 xb.offset = 0;
793 xb.nlmsg_count = 0;
803 if (rtnl_dump_filter(&rth, xfrm_policy_keep, &xb, NULL, NULL) < 0) {
807 if (xb.nlmsg_count == 0) {
813 if (rtnl_send_check(&rth, xb.buf, xb.offset) < 0) {
818 fprintf(stderr, "Delete-all nlmsg count = %d\n", xb.nlmsg_count);
820 xb.offset = 0;
821 xb.nlmsg_count = 0;