Lines Matching defs:sock
67 typedef int (*udp_tunnel_encap_rcv_t)(struct sock *sk, struct sk_buff *skb);
68 typedef int (*udp_tunnel_encap_err_lookup_t)(struct sock *sk,
70 typedef void (*udp_tunnel_encap_destroy_t)(struct sock *sk);
71 typedef struct sk_buff *(*udp_tunnel_gro_receive_t)(struct sock *sk,
74 typedef int (*udp_tunnel_gro_complete_t)(struct sock *sk, struct sk_buff *skb,
88 /* Setup the given (UDP) sock to receive UDP encapsulated packets */
89 void setup_udp_tunnel_sock(struct net *net, struct socket *sock,
122 void udp_tunnel_push_rx_port(struct net_device *dev, struct socket *sock,
124 void udp_tunnel_drop_rx_port(struct net_device *dev, struct socket *sock,
126 void udp_tunnel_notify_add_rx_port(struct socket *sock, unsigned short type);
127 void udp_tunnel_notify_del_rx_port(struct socket *sock, unsigned short type);
142 void udp_tunnel_xmit_skb(struct rtable *rt, struct sock *sk, struct sk_buff *skb,
147 int udp_tunnel6_xmit_skb(struct dst_entry *dst, struct sock *sk,
154 void udp_tunnel_sock_release(struct socket *sock);
169 static inline void udp_tunnel_encap_enable(struct socket *sock)
171 struct udp_sock *up = udp_sk(sock->sk);
178 if (sock->sk->sk_family == PF_INET6)