Lines Matching refs:sadb_msg
272 struct sadb_msg *hdr;
293 hdr = (struct sadb_msg *) pfk->dump.skb->data;
308 static inline void pfkey_hdr_dup(struct sadb_msg *new,
309 const struct sadb_msg *orig)
314 static int pfkey_error(const struct sadb_msg *orig, int err, struct sock *sk)
316 struct sk_buff *skb = alloc_skb(sizeof(struct sadb_msg) + 16, GFP_KERNEL);
317 struct sadb_msg *hdr;
334 hdr = skb_put(skb, sizeof(struct sadb_msg));
337 hdr->sadb_msg_len = (sizeof(struct sadb_msg) /
507 static int parse_exthdrs(struct sk_buff *skb, const struct sadb_msg *hdr, void **ext_hdrs)
652 static struct xfrm_state *pfkey_xfrm_state_lookup(struct net *net, const struct sadb_msg *hdr, void * const *ext_hdrs)
764 struct sadb_msg *hdr;
787 size = sizeof(struct sadb_msg) +sizeof(struct sadb_sa) +
830 hdr = skb_put(skb, sizeof(struct sadb_msg));
1060 const struct sadb_msg *hdr,
1299 static int pfkey_reserved(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1304 static int pfkey_getspi(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1310 struct sadb_msg *out_hdr;
1393 out_hdr = (struct sadb_msg *) resp_skb->data;
1409 static int pfkey_acquire(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1414 if (hdr->sadb_msg_len != sizeof(struct sadb_msg)/8)
1475 struct sadb_msg *hdr;
1482 hdr = (struct sadb_msg *) skb->data;
1496 static int pfkey_add(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1533 static int pfkey_delete(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1573 static int pfkey_get(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1578 struct sadb_msg *out_hdr;
1596 out_hdr = (struct sadb_msg *) out_skb->data;
1609 static struct sk_buff *compose_sadb_supported(const struct sadb_msg *orig,
1613 struct sadb_msg *hdr;
1628 len = enc_len + auth_len + sizeof(struct sadb_msg);
1685 static int pfkey_register(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1717 static int unicast_flush_resp(struct sock *sk, const struct sadb_msg *ihdr)
1720 struct sadb_msg *hdr;
1722 skb = alloc_skb(sizeof(struct sadb_msg) + 16, GFP_ATOMIC);
1726 hdr = skb_put_data(skb, ihdr, sizeof(struct sadb_msg));
1728 hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t));
1737 struct sadb_msg *hdr;
1739 skb = alloc_skb(sizeof(struct sadb_msg) + 16, GFP_ATOMIC);
1742 hdr = skb_put(skb, sizeof(struct sadb_msg));
1749 hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t));
1757 static int pfkey_flush(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1790 struct sadb_msg *out_hdr;
1799 out_hdr = (struct sadb_msg *) out_skb->data;
1829 static int pfkey_dump(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1882 static int pfkey_promisc(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1900 struct sadb_msg *new_hdr = (struct sadb_msg *) skb->data;
2040 return sizeof(struct sadb_msg) +
2066 struct sadb_msg *hdr;
2080 hdr = skb_put(skb, sizeof(struct sadb_msg));
2217 struct sadb_msg *out_hdr;
2230 out_hdr = (struct sadb_msg *) out_skb->data;
2245 static int pfkey_spdadd(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
2360 static int pfkey_spddelete(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
2435 static int key_pol_get_resp(struct sock *sk, struct xfrm_policy *xp, const struct sadb_msg *hdr, int dir)
2439 struct sadb_msg *out_hdr;
2453 out_hdr = (struct sadb_msg *) out_skb->data;
2547 const struct sadb_msg *hdr, void * const *ext_hdrs)
2639 const struct sadb_msg *hdr, void * const *ext_hdrs)
2646 static int pfkey_spdget(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
2691 struct sadb_msg *out_hdr;
2707 out_hdr = (struct sadb_msg *) out_skb->data;
2736 static int pfkey_spddump(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
2759 struct sadb_msg *hdr;
2761 skb_out = alloc_skb(sizeof(struct sadb_msg) + 16, GFP_ATOMIC);
2764 hdr = skb_put(skb_out, sizeof(struct sadb_msg));
2771 hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t));
2778 static int pfkey_spdflush(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
2803 const struct sadb_msg *hdr, void * const *ext_hdrs);
2830 static int pfkey_process(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr)
2852 static struct sadb_msg *pfkey_get_base_msg(struct sk_buff *skb, int *errp)
2854 struct sadb_msg *hdr = NULL;
2859 hdr = (struct sadb_msg *) skb->data;
2868 hdr->sadb_msg_len < (sizeof(struct sadb_msg) /
3045 struct sadb_msg *out_hdr;
3059 out_hdr = (struct sadb_msg *) out_skb->data;
3156 struct sadb_msg *hdr;
3170 size = sizeof(struct sadb_msg) +
3189 hdr = skb_put(skb, sizeof(struct sadb_msg));
3356 struct sadb_msg *hdr;
3383 size = sizeof(struct sadb_msg) +
3393 hdr = skb_put(skb, sizeof(struct sadb_msg));
3558 struct sadb_msg *hdr;
3593 size += sizeof(struct sadb_msg) + size_pol;
3600 hdr = skb_put(skb, sizeof(struct sadb_msg));
3672 struct sadb_msg *hdr = NULL;