Lines Matching defs:sock
148 * sock as well as the remote peer.
176 static void sctp_v4_copy_ip_options(struct sock *sk, struct sock *newsk)
199 static int sctp_v4_ip_options_len(struct sock *sk)
235 static void sctp_v4_from_sk(union sctp_addr *addr, struct sock *sk)
244 static void sctp_v4_to_sk_saddr(union sctp_addr *addr, struct sock *sk)
250 static void sctp_v4_to_sk_daddr(union sctp_addr *addr, struct sock *sk)
354 struct sock *sk = &sp->inet.sk;
418 struct flowi *fl, struct sock *sk)
581 static struct sock *sctp_v4_create_accept_sk(struct sock *sk,
585 struct sock *newsk = sk_alloc(sock_net(sk), PF_INET, GFP_KERNEL,
625 static void sctp_v4_ecn_capable(struct sock *sk)
670 struct sock *sk;
854 static int sctp_udp_rcv(struct sock *sk, struct sk_buff *skb)
867 struct socket *sock;
873 err = udp_sock_create(net, &udp_conf, &sock);
875 pr_err("Failed to create the SCTP UDP tunneling v4 sock\n");
882 setup_udp_tunnel_sock(net, sock, &tuncfg);
883 net->sctp.udp4_sock = sock->sk;
893 err = udp_sock_create(net, &udp_conf, &sock);
895 pr_err("Failed to create the SCTP UDP tunneling v6 sock\n");
904 setup_udp_tunnel_sock(net, sock, &tuncfg);
905 net->sctp.udp6_sock = sock->sk;
1058 struct sock *sk = skb->sk;
1465 pr_err("Failed to initialize the SCTP control sock\n");