Lines Matching refs:sadb_msg

272 	struct sadb_msg *hdr;  in pfkey_do_dump()
293 hdr = (struct sadb_msg *) pfk->dump.skb->data; in pfkey_do_dump()
308 static inline void pfkey_hdr_dup(struct sadb_msg *new, in pfkey_hdr_dup()
309 const struct sadb_msg *orig) in pfkey_hdr_dup()
314 static int pfkey_error(const struct sadb_msg *orig, int err, struct sock *sk) in pfkey_error()
316 struct sk_buff *skb = alloc_skb(sizeof(struct sadb_msg) + 16, GFP_KERNEL); in pfkey_error()
317 struct sadb_msg *hdr; in pfkey_error()
334 hdr = skb_put(skb, sizeof(struct sadb_msg)); in pfkey_error()
337 hdr->sadb_msg_len = (sizeof(struct sadb_msg) / in pfkey_error()
507 static int parse_exthdrs(struct sk_buff *skb, const struct sadb_msg *hdr, void **ext_hdrs) in parse_exthdrs()
652 static struct xfrm_state *pfkey_xfrm_state_lookup(struct net *net, const struct sadb_msg *hdr, voi… in pfkey_xfrm_state_lookup()
764 struct sadb_msg *hdr; in __pfkey_xfrm_state2msg()
787 size = sizeof(struct sadb_msg) +sizeof(struct sadb_sa) + in __pfkey_xfrm_state2msg()
830 hdr = skb_put(skb, sizeof(struct sadb_msg)); in __pfkey_xfrm_state2msg()
1060 const struct sadb_msg *hdr, in pfkey_msg2xfrm_state()
1300 static int pfkey_reserved(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * … in pfkey_reserved()
1305 static int pfkey_getspi(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * co… in pfkey_getspi()
1311 struct sadb_msg *out_hdr; in pfkey_getspi()
1394 out_hdr = (struct sadb_msg *) resp_skb->data; in pfkey_getspi()
1410 static int pfkey_acquire(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * c… in pfkey_acquire()
1415 if (hdr->sadb_msg_len != sizeof(struct sadb_msg)/8) in pfkey_acquire()
1476 struct sadb_msg *hdr; in key_notify_sa()
1483 hdr = (struct sadb_msg *) skb->data; in key_notify_sa()
1497 static int pfkey_add(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const… in pfkey_add()
1534 static int pfkey_delete(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * co… in pfkey_delete()
1574 static int pfkey_get(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const… in pfkey_get()
1579 struct sadb_msg *out_hdr; in pfkey_get()
1597 out_hdr = (struct sadb_msg *) out_skb->data; in pfkey_get()
1610 static struct sk_buff *compose_sadb_supported(const struct sadb_msg *orig, in compose_sadb_supported()
1614 struct sadb_msg *hdr; in compose_sadb_supported()
1629 len = enc_len + auth_len + sizeof(struct sadb_msg); in compose_sadb_supported()
1686 static int pfkey_register(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * … in pfkey_register()
1718 static int unicast_flush_resp(struct sock *sk, const struct sadb_msg *ihdr) in unicast_flush_resp()
1721 struct sadb_msg *hdr; in unicast_flush_resp()
1723 skb = alloc_skb(sizeof(struct sadb_msg) + 16, GFP_ATOMIC); in unicast_flush_resp()
1727 hdr = skb_put_data(skb, ihdr, sizeof(struct sadb_msg)); in unicast_flush_resp()
1729 hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t)); in unicast_flush_resp()
1738 struct sadb_msg *hdr; in key_notify_sa_flush()
1740 skb = alloc_skb(sizeof(struct sadb_msg) + 16, GFP_ATOMIC); in key_notify_sa_flush()
1743 hdr = skb_put(skb, sizeof(struct sadb_msg)); in key_notify_sa_flush()
1750 hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t)); in key_notify_sa_flush()
1758 static int pfkey_flush(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * con… in pfkey_flush()
1791 struct sadb_msg *out_hdr; in dump_sa()
1800 out_hdr = (struct sadb_msg *) out_skb->data; in dump_sa()
1830 static int pfkey_dump(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * cons… in pfkey_dump()
1883 static int pfkey_promisc(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * c… in pfkey_promisc()
1901 struct sadb_msg *new_hdr = (struct sadb_msg *) skb->data; in pfkey_promisc()
2037 return sizeof(struct sadb_msg) + in pfkey_xfrm_policy2msg_size()
2063 struct sadb_msg *hdr; in pfkey_xfrm_policy2msg()
2077 hdr = skb_put(skb, sizeof(struct sadb_msg)); in pfkey_xfrm_policy2msg()
2214 struct sadb_msg *out_hdr; in key_notify_policy()
2227 out_hdr = (struct sadb_msg *) out_skb->data; in key_notify_policy()
2242 static int pfkey_spdadd(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * co… in pfkey_spdadd()
2357 static int pfkey_spddelete(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void *… in pfkey_spddelete()
2432 static int key_pol_get_resp(struct sock *sk, struct xfrm_policy *xp, const struct sadb_msg *hdr, in… in key_pol_get_resp()
2436 struct sadb_msg *out_hdr; in key_pol_get_resp()
2450 out_hdr = (struct sadb_msg *) out_skb->data; in key_pol_get_resp()
2544 const struct sadb_msg *hdr, void * const *ext_hdrs) in pfkey_migrate()
2636 const struct sadb_msg *hdr, void * const *ext_hdrs) in pfkey_migrate()
2643 static int pfkey_spdget(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * co… in pfkey_spdget()
2688 struct sadb_msg *out_hdr; in dump_sp()
2704 out_hdr = (struct sadb_msg *) out_skb->data; in dump_sp()
2733 static int pfkey_spddump(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * c… in pfkey_spddump()
2756 struct sadb_msg *hdr; in key_notify_policy_flush()
2758 skb_out = alloc_skb(sizeof(struct sadb_msg) + 16, GFP_ATOMIC); in key_notify_policy_flush()
2761 hdr = skb_put(skb_out, sizeof(struct sadb_msg)); in key_notify_policy_flush()
2768 hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t)); in key_notify_policy_flush()
2775 static int pfkey_spdflush(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * … in pfkey_spdflush()
2800 const struct sadb_msg *hdr, void * const *ext_hdrs);
2827 static int pfkey_process(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr) in pfkey_process()
2849 static struct sadb_msg *pfkey_get_base_msg(struct sk_buff *skb, int *errp) in pfkey_get_base_msg()
2851 struct sadb_msg *hdr = NULL; in pfkey_get_base_msg()
2856 hdr = (struct sadb_msg *) skb->data; in pfkey_get_base_msg()
2865 hdr->sadb_msg_len < (sizeof(struct sadb_msg) / in pfkey_get_base_msg()
3042 struct sadb_msg *out_hdr; in key_notify_sa_expire()
3056 out_hdr = (struct sadb_msg *) out_skb->data; in key_notify_sa_expire()
3153 struct sadb_msg *hdr; in pfkey_send_acquire()
3167 size = sizeof(struct sadb_msg) + in pfkey_send_acquire()
3186 hdr = skb_put(skb, sizeof(struct sadb_msg)); in pfkey_send_acquire()
3353 struct sadb_msg *hdr; in pfkey_send_new_mapping()
3380 size = sizeof(struct sadb_msg) + in pfkey_send_new_mapping()
3390 hdr = skb_put(skb, sizeof(struct sadb_msg)); in pfkey_send_new_mapping()
3555 struct sadb_msg *hdr; in pfkey_send_migrate()
3590 size += sizeof(struct sadb_msg) + size_pol; in pfkey_send_migrate()
3597 hdr = skb_put(skb, sizeof(struct sadb_msg)); in pfkey_send_migrate()
3669 struct sadb_msg *hdr = NULL; in pfkey_sendmsg()