Home | History | Annotate | Download | only in ip

Lines Matching defs:xb

710 	struct xfrm_buffer *xb = (struct xfrm_buffer *)arg;
711 struct rtnl_handle *rth = xb->rth;
747 if (xb->offset > xb->size) {
752 new_n = (struct nlmsghdr *)(xb->buf + xb->offset);
763 xb->offset += new_n->nlmsg_len;
764 xb->nlmsg_count ++;
841 struct xfrm_buffer xb;
845 xb.buf = buf;
846 xb.size = sizeof(buf);
847 xb.rth = &rth;
860 xb.offset = 0;
861 xb.nlmsg_count = 0;
871 if (rtnl_dump_filter(&rth, xfrm_policy_keep, &xb) < 0) {
875 if (xb.nlmsg_count == 0) {
881 if (rtnl_send_check(&rth, xb.buf, xb.offset) < 0) {
886 fprintf(stderr, "Delete-all nlmsg count = %d\n", xb.nlmsg_count);
888 xb.offset = 0;
889 xb.nlmsg_count = 0;