Lines Matching defs:sock

30 #include <net/sock.h>
46 /* struct sock must be the first member of struct pfkey_sock */
47 struct sock sk;
69 static inline struct pfkey_sock *pfkey_sk(struct sock *sk)
74 static int pfkey_can_dump(const struct sock *sk)
94 static void pfkey_sock_destruct(struct sock *sk)
115 static void pfkey_insert(struct sock *sk)
125 static void pfkey_remove(struct sock *sk)
138 static int pfkey_create(struct net *net, struct socket *sock, int protocol,
142 struct sock *sk;
148 if (sock->type != SOCK_RAW)
161 sock->ops = &pfkey_ops;
162 sock_init_data(sock, sk);
176 static int pfkey_release(struct socket *sock)
178 struct sock *sk = sock->sk;
186 sock->sk = NULL;
196 struct sock *sk)
220 int broadcast_flags, struct sock *one_sk,
224 struct sock *sk;
318 static int pfkey_error(const struct sadb_msg *orig, int err, struct sock *sk)
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)
1414 static int pfkey_acquire(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
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)
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)
1762 static int pfkey_flush(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
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)
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)
2551 static int pfkey_migrate(struct sock *sk, struct sk_buff *skb,
2643 static int pfkey_migrate(struct sock *sk, struct sk_buff *skb,
2651 static int pfkey_spdget(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
2736 struct net *net = sock_net((struct sock *)pfk);
2741 static int pfkey_spddump(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
2783 static int pfkey_spdflush(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
2807 typedef int (*pfkey_handler)(struct sock *sk, struct sk_buff *skb,
2835 static int pfkey_process(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr)
3143 struct sock *sk;
3270 static struct xfrm_policy *pfkey_compile_policy(struct sock *sk, int opt,
3673 static int pfkey_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
3675 struct sock *sk = sock->sk;
3714 static int pfkey_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
3717 struct sock *sk = sock->sk;
3786 struct sock *s = sk_entry(v);