Lines Matching refs:sock
14 struct socket *sock = NULL; in udp_sock_create4() local
17 err = sock_create_kern(net, AF_INET, SOCK_DGRAM, 0, &sock); in udp_sock_create4()
22 err = sock_bindtoindex(sock->sk, cfg->bind_ifindex, true); in udp_sock_create4()
30 err = kernel_bind(sock, (struct sockaddr *)&udp_addr, in udp_sock_create4()
39 err = kernel_connect(sock, (struct sockaddr *)&udp_addr, in udp_sock_create4()
45 sock->sk->sk_no_check_tx = !cfg->use_udp_checksums; in udp_sock_create4()
47 *sockp = sock; in udp_sock_create4()
51 if (sock) { in udp_sock_create4()
52 kernel_sock_shutdown(sock, SHUT_RDWR); in udp_sock_create4()
53 sock_release(sock); in udp_sock_create4()
60 void setup_udp_tunnel_sock(struct net *net, struct socket *sock, in setup_udp_tunnel_sock() argument
63 struct sock *sk = sock->sk; in setup_udp_tunnel_sock()
80 udp_tunnel_encap_enable(sock); in setup_udp_tunnel_sock()
84 void udp_tunnel_push_rx_port(struct net_device *dev, struct socket *sock, in udp_tunnel_push_rx_port() argument
87 struct sock *sk = sock->sk; in udp_tunnel_push_rx_port()
98 void udp_tunnel_drop_rx_port(struct net_device *dev, struct socket *sock, in udp_tunnel_drop_rx_port() argument
101 struct sock *sk = sock->sk; in udp_tunnel_drop_rx_port()
113 void udp_tunnel_notify_add_rx_port(struct socket *sock, unsigned short type) in udp_tunnel_notify_add_rx_port() argument
115 struct sock *sk = sock->sk; in udp_tunnel_notify_add_rx_port()
133 void udp_tunnel_notify_del_rx_port(struct socket *sock, unsigned short type) in udp_tunnel_notify_del_rx_port() argument
135 struct sock *sk = sock->sk; in udp_tunnel_notify_del_rx_port()
152 void udp_tunnel_xmit_skb(struct rtable *rt, struct sock *sk, struct sk_buff *skb, in udp_tunnel_xmit_skb()
175 void udp_tunnel_sock_release(struct socket *sock) in udp_tunnel_sock_release() argument
177 rcu_assign_sk_user_data(sock->sk, NULL); in udp_tunnel_sock_release()
178 kernel_sock_shutdown(sock, SHUT_RDWR); in udp_tunnel_sock_release()
179 sock_release(sock); in udp_tunnel_sock_release()