Lines Matching refs:dump
54 int (*dump)(struct pfkey_sock *sk); member
61 } dump; member
83 if (pfk->dump.dump) { in pfkey_terminate_dump()
84 if (pfk->dump.skb) { in pfkey_terminate_dump()
85 kfree_skb(pfk->dump.skb); in pfkey_terminate_dump()
86 pfk->dump.skb = NULL; in pfkey_terminate_dump()
88 pfk->dump.done(pfk); in pfkey_terminate_dump()
89 pfk->dump.dump = NULL; in pfkey_terminate_dump()
90 pfk->dump.done = NULL; in pfkey_terminate_dump()
280 if (!pfk->dump.dump) { in pfkey_do_dump()
285 rc = pfk->dump.dump(pfk); in pfkey_do_dump()
291 if (pfk->dump.skb) { in pfkey_do_dump()
297 hdr = (struct sadb_msg *) pfk->dump.skb->data; in pfkey_do_dump()
300 pfkey_broadcast(pfk->dump.skb, GFP_ATOMIC, BROADCAST_ONE, in pfkey_do_dump()
302 pfk->dump.skb = NULL; in pfkey_do_dump()
1805 out_hdr->sadb_msg_version = pfk->dump.msg_version; in dump_sa()
1811 out_hdr->sadb_msg_pid = pfk->dump.msg_portid; in dump_sa()
1813 if (pfk->dump.skb) in dump_sa()
1814 pfkey_broadcast(pfk->dump.skb, GFP_ATOMIC, BROADCAST_ONE, in dump_sa()
1816 pfk->dump.skb = out_skb; in dump_sa()
1824 return xfrm_state_walk(net, &pfk->dump.u.state, dump_sa, (void *) pfk); in pfkey_dump_sa()
1831 xfrm_state_walk_done(&pfk->dump.u.state, net); in pfkey_dump_sa_done()
1841 if (pfk->dump.dump != NULL) { in pfkey_dump()
1877 pfk->dump.msg_version = hdr->sadb_msg_version; in pfkey_dump()
1878 pfk->dump.msg_portid = hdr->sadb_msg_pid; in pfkey_dump()
1879 pfk->dump.dump = pfkey_dump_sa; in pfkey_dump()
1880 pfk->dump.done = pfkey_dump_sa_done; in pfkey_dump()
1881 xfrm_state_walk_init(&pfk->dump.u.state, proto, filter); in pfkey_dump()
2713 out_hdr->sadb_msg_version = pfk->dump.msg_version; in dump_sp()
2718 out_hdr->sadb_msg_pid = pfk->dump.msg_portid; in dump_sp()
2720 if (pfk->dump.skb) in dump_sp()
2721 pfkey_broadcast(pfk->dump.skb, GFP_ATOMIC, BROADCAST_ONE, in dump_sp()
2723 pfk->dump.skb = out_skb; in dump_sp()
2731 return xfrm_policy_walk(net, &pfk->dump.u.policy, dump_sp, (void *) pfk); in pfkey_dump_sp()
2738 xfrm_policy_walk_done(&pfk->dump.u.policy, net); in pfkey_dump_sp_done()
2746 if (pfk->dump.dump != NULL) { in pfkey_spddump()
2751 pfk->dump.msg_version = hdr->sadb_msg_version; in pfkey_spddump()
2752 pfk->dump.msg_portid = hdr->sadb_msg_pid; in pfkey_spddump()
2753 pfk->dump.dump = pfkey_dump_sp; in pfkey_spddump()
2754 pfk->dump.done = pfkey_dump_sp_done; in pfkey_spddump()
2755 xfrm_policy_walk_init(&pfk->dump.u.policy, XFRM_POLICY_TYPE_MAIN); in pfkey_spddump()
3745 if (pfk->dump.dump != NULL && in pfkey_recvmsg()