Home | History | Annotate | Download | only in ip

Lines Matching refs:xb

714 	struct xfrm_buffer *xb = (struct xfrm_buffer *)arg;
715 struct rtnl_handle *rth = xb->rth;
751 if (xb->offset > xb->size) {
756 new_n = (struct nlmsghdr *)(xb->buf + xb->offset);
767 xb->offset += new_n->nlmsg_len;
768 xb->nlmsg_count ++;
845 struct xfrm_buffer xb;
849 xb.buf = buf;
850 xb.size = sizeof(buf);
851 xb.rth = &rth;
854 xb.offset = 0;
855 xb.nlmsg_count = 0;
865 if (rtnl_dump_filter(&rth, xfrm_policy_keep, &xb) < 0) {
869 if (xb.nlmsg_count == 0) {
875 if (rtnl_send_check(&rth, xb.buf, xb.offset) < 0) {
880 fprintf(stderr, "Delete-all nlmsg count = %d\n", xb.nlmsg_count);
882 xb.offset = 0;
883 xb.nlmsg_count = 0;