Lines Matching refs:sk
65 struct sock *sk; member
92 extern int ip_build_and_send_pkt(struct sk_buff *skb, struct sock *sk,
108 extern int ip_append_data(struct sock *sk,
116 extern ssize_t ip_append_page(struct sock *sk, struct page *page,
118 extern int ip_push_pending_frames(struct sock *sk);
119 extern void ip_flush_pending_frames(struct sock *sk);
122 extern int ip4_datagram_connect(struct sock *sk,
158 void ip_send_reply(struct sock *sk, struct sk_buff *skb, struct ip_reply_arg *arg,
222 int ip_dont_fragment(struct sock *sk, struct dst_entry *dst) in ip_dont_fragment() argument
224 return (inet_sk(sk)->pmtudisc == IP_PMTUDISC_DO || in ip_dont_fragment()
225 (inet_sk(sk)->pmtudisc == IP_PMTUDISC_WANT && in ip_dont_fragment()
231 static inline void ip_select_ident(struct iphdr *iph, struct dst_entry *dst, struct sock *sk) in ip_select_ident() argument
239 iph->id = (sk && inet_sk(sk)->daddr) ? in ip_select_ident()
240 htons(inet_sk(sk)->id++) : 0; in ip_select_ident()
245 static inline void ip_select_ident_more(struct iphdr *iph, struct dst_entry *dst, struct sock *sk, … in ip_select_ident_more() argument
248 if (sk && inet_sk(sk)->daddr) { in ip_select_ident_more()
249 iph->id = htons(inet_sk(sk)->id); in ip_select_ident_more()
250 inet_sk(sk)->id += 1 + more; in ip_select_ident_more()
314 static __inline__ void inet_reset_saddr(struct sock *sk) in inet_reset_saddr() argument
316 inet_sk(sk)->rcv_saddr = inet_sk(sk)->saddr = 0; in inet_reset_saddr()
318 if (sk->sk_family == PF_INET6) { in inet_reset_saddr()
319 struct ipv6_pinfo *np = inet6_sk(sk); in inet_reset_saddr()
380 extern int ip_setsockopt(struct sock *sk, int level, int optname, char __user *optval, int optlen);
381 extern int ip_getsockopt(struct sock *sk, int level, int optname, char __user *optval, int __user *…
382 extern int compat_ip_setsockopt(struct sock *sk, int level,
384 extern int compat_ip_getsockopt(struct sock *sk, int level,
386 extern int ip_ra_control(struct sock *sk, unsigned char on, void (*destructor)(struct sock *));
388 extern int ip_recv_error(struct sock *sk, struct msghdr *msg, int len);
389 extern void ip_icmp_error(struct sock *sk, struct sk_buff *skb, int err,
391 extern void ip_local_error(struct sock *sk, int err, __be32 daddr, __be16 dport,