Lines Matching refs:sadb_msg

276 	struct sadb_msg *hdr;
297 hdr = (struct sadb_msg *) pfk->dump.skb->data;
312 static inline void pfkey_hdr_dup(struct sadb_msg *new,
313 const struct sadb_msg *orig)
318 static int pfkey_error(const struct sadb_msg *orig, int err, struct sock *sk)
320 struct sk_buff *skb = alloc_skb(sizeof(struct sadb_msg) + 16, GFP_KERNEL);
321 struct sadb_msg *hdr;
338 hdr = skb_put(skb, sizeof(struct sadb_msg));
341 hdr->sadb_msg_len = (sizeof(struct sadb_msg) /
511 static int parse_exthdrs(struct sk_buff *skb, const struct sadb_msg *hdr, void **ext_hdrs)
656 static struct xfrm_state *pfkey_xfrm_state_lookup(struct net *net, const struct sadb_msg *hdr, void * const *ext_hdrs)
768 struct sadb_msg *hdr;
791 size = sizeof(struct sadb_msg) +sizeof(struct sadb_sa) +
834 hdr = skb_put(skb, sizeof(struct sadb_msg));
1064 const struct sadb_msg *hdr,
1304 static int pfkey_reserved(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1309 static int pfkey_getspi(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1315 struct sadb_msg *out_hdr;
1398 out_hdr = (struct sadb_msg *) resp_skb->data;
1414 static int pfkey_acquire(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1419 if (hdr->sadb_msg_len != sizeof(struct sadb_msg)/8)
1480 struct sadb_msg *hdr;
1487 hdr = (struct sadb_msg *) skb->data;
1501 static int pfkey_add(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1538 static int pfkey_delete(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1578 static int pfkey_get(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1583 struct sadb_msg *out_hdr;
1601 out_hdr = (struct sadb_msg *) out_skb->data;
1614 static struct sk_buff *compose_sadb_supported(const struct sadb_msg *orig,
1618 struct sadb_msg *hdr;
1633 len = enc_len + auth_len + sizeof(struct sadb_msg);
1690 static int pfkey_register(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1722 static int unicast_flush_resp(struct sock *sk, const struct sadb_msg *ihdr)
1725 struct sadb_msg *hdr;
1727 skb = alloc_skb(sizeof(struct sadb_msg) + 16, GFP_ATOMIC);
1731 hdr = skb_put_data(skb, ihdr, sizeof(struct sadb_msg));
1733 hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t));
1742 struct sadb_msg *hdr;
1744 skb = alloc_skb(sizeof(struct sadb_msg) + 16, GFP_ATOMIC);
1747 hdr = skb_put(skb, sizeof(struct sadb_msg));
1754 hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t));
1762 static int pfkey_flush(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1795 struct sadb_msg *out_hdr;
1804 out_hdr = (struct sadb_msg *) out_skb->data;
1834 static int pfkey_dump(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1887 static int pfkey_promisc(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1905 struct sadb_msg *new_hdr = (struct sadb_msg *) skb->data;
2045 return sizeof(struct sadb_msg) +
2071 struct sadb_msg *hdr;
2085 hdr = skb_put(skb, sizeof(struct sadb_msg));
2222 struct sadb_msg *out_hdr;
2235 out_hdr = (struct sadb_msg *) out_skb->data;
2250 static int pfkey_spdadd(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
2365 static int pfkey_spddelete(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
2440 static int key_pol_get_resp(struct sock *sk, struct xfrm_policy *xp, const struct sadb_msg *hdr, int dir)
2444 struct sadb_msg *out_hdr;
2458 out_hdr = (struct sadb_msg *) out_skb->data;
2552 const struct sadb_msg *hdr, void * const *ext_hdrs)
2644 const struct sadb_msg *hdr, void * const *ext_hdrs)
2651 static int pfkey_spdget(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
2696 struct sadb_msg *out_hdr;
2712 out_hdr = (struct sadb_msg *) out_skb->data;
2741 static int pfkey_spddump(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
2764 struct sadb_msg *hdr;
2766 skb_out = alloc_skb(sizeof(struct sadb_msg) + 16, GFP_ATOMIC);
2769 hdr = skb_put(skb_out, sizeof(struct sadb_msg));
2776 hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t));
2783 static int pfkey_spdflush(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
2808 const struct sadb_msg *hdr, void * const *ext_hdrs);
2835 static int pfkey_process(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr)
2857 static struct sadb_msg *pfkey_get_base_msg(struct sk_buff *skb, int *errp)
2859 struct sadb_msg *hdr = NULL;
2864 hdr = (struct sadb_msg *) skb->data;
2873 hdr->sadb_msg_len < (sizeof(struct sadb_msg) /
3050 struct sadb_msg *out_hdr;
3064 out_hdr = (struct sadb_msg *) out_skb->data;
3161 struct sadb_msg *hdr;
3175 size = sizeof(struct sadb_msg) +
3194 hdr = skb_put(skb, sizeof(struct sadb_msg));
3361 struct sadb_msg *hdr;
3388 size = sizeof(struct sadb_msg) +
3398 hdr = skb_put(skb, sizeof(struct sadb_msg));
3563 struct sadb_msg *hdr;
3598 size += sizeof(struct sadb_msg) + size_pol;
3605 hdr = skb_put(skb, sizeof(struct sadb_msg));
3677 struct sadb_msg *hdr = NULL;