Home | History | Annotate | Download | only in ip

Lines Matching refs:xb

875 	struct xfrm_buffer *xb = (struct xfrm_buffer *)arg;
876 struct rtnl_handle *rth = xb->rth;
897 if (xb->offset > xb->size) {
902 new_n = (struct nlmsghdr *)(xb->buf + xb->offset);
914 addattr_l(new_n, xb->size, XFRMA_SRCADDR, &xsinfo->saddr,
917 xb->offset += new_n->nlmsg_len;
918 xb->nlmsg_count ++;
969 struct xfrm_buffer xb;
973 xb.buf = buf;
974 xb.size = sizeof(buf);
975 xb.rth = &rth;
978 xb.offset = 0;
979 xb.nlmsg_count = 0;
989 if (rtnl_dump_filter(&rth, xfrm_state_keep, &xb, NULL, NULL) < 0) {
993 if (xb.nlmsg_count == 0) {
999 if (rtnl_send_check(&rth, xb.buf, xb.offset) < 0) {
1004 fprintf(stderr, "Delete-all nlmsg count = %d\n", xb.nlmsg_count);
1006 xb.offset = 0;
1007 xb.nlmsg_count = 0;