Lines Matching refs:sk

39 	int	    (*queue_xmit)(struct sock *sk, struct sk_buff *skb, struct flowi *fl);
40 void (*send_check)(struct sock *sk, struct sk_buff *skb);
41 int (*rebuild_header)(struct sock *sk);
42 void (*sk_rx_dst_set)(struct sock *sk, const struct sk_buff *skb);
43 int (*conn_request)(struct sock *sk, struct sk_buff *skb);
44 struct sock *(*syn_recv_sock)(struct sock *sk, struct sk_buff *skb,
50 int (*setsockopt)(struct sock *sk, int level, int optname,
52 int (*getsockopt)(struct sock *sk, int level, int optname,
55 int (*compat_setsockopt)(struct sock *sk,
58 int (*compat_getsockopt)(struct sock *sk,
62 void (*addr2sockaddr)(struct sock *sk, struct sockaddr *);
63 int (*bind_conflict)(const struct sock *sk,
65 void (*mtu_reduced)(struct sock *sk);
100 unsigned int (*icsk_sync_mss)(struct sock *sk, u32 pmtu);
145 static inline struct inet_connection_sock *inet_csk(const struct sock *sk) in inet_csk() argument
147 return (struct inet_connection_sock *)sk; in inet_csk()
150 static inline void *inet_csk_ca(const struct sock *sk) in inet_csk_ca() argument
152 return (void *)inet_csk(sk)->icsk_ca_priv; in inet_csk_ca()
155 struct sock *inet_csk_clone_lock(const struct sock *sk,
166 void inet_csk_init_xmit_timers(struct sock *sk,
170 void inet_csk_clear_xmit_timers(struct sock *sk);
172 static inline void inet_csk_schedule_ack(struct sock *sk) in inet_csk_schedule_ack() argument
174 inet_csk(sk)->icsk_ack.pending |= ICSK_ACK_SCHED; in inet_csk_schedule_ack()
177 static inline int inet_csk_ack_scheduled(const struct sock *sk) in inet_csk_ack_scheduled() argument
179 return inet_csk(sk)->icsk_ack.pending & ICSK_ACK_SCHED; in inet_csk_ack_scheduled()
182 static inline void inet_csk_delack_init(struct sock *sk) in inet_csk_delack_init() argument
184 memset(&inet_csk(sk)->icsk_ack, 0, sizeof(inet_csk(sk)->icsk_ack)); in inet_csk_delack_init()
187 void inet_csk_delete_keepalive_timer(struct sock *sk);
188 void inet_csk_reset_keepalive_timer(struct sock *sk, unsigned long timeout);
194 static inline void inet_csk_clear_xmit_timer(struct sock *sk, const int what) in inet_csk_clear_xmit_timer() argument
196 struct inet_connection_sock *icsk = inet_csk(sk); in inet_csk_clear_xmit_timer()
201 sk_stop_timer(sk, &icsk->icsk_retransmit_timer); in inet_csk_clear_xmit_timer()
206 sk_stop_timer(sk, &icsk->icsk_delack_timer); in inet_csk_clear_xmit_timer()
219 static inline void inet_csk_reset_xmit_timer(struct sock *sk, const int what, in inet_csk_reset_xmit_timer() argument
223 struct inet_connection_sock *icsk = inet_csk(sk); in inet_csk_reset_xmit_timer()
228 sk, what, when, current_text_addr()); in inet_csk_reset_xmit_timer()
237 sk_reset_timer(sk, &icsk->icsk_retransmit_timer, icsk->icsk_timeout); in inet_csk_reset_xmit_timer()
241 sk_reset_timer(sk, &icsk->icsk_delack_timer, icsk->icsk_ack.timeout); in inet_csk_reset_xmit_timer()
259 struct sock *inet_csk_accept(struct sock *sk, int flags, int *err);
261 struct request_sock *inet_csk_search_req(struct sock *sk,
265 int inet_csk_bind_conflict(const struct sock *sk,
267 int inet_csk_get_port(struct sock *sk, unsigned short snum);
269 struct dst_entry *inet_csk_route_req(struct sock *sk, struct flowi4 *fl4,
271 struct dst_entry *inet_csk_route_child_sock(struct sock *sk, struct sock *newsk,
274 static inline void inet_csk_reqsk_queue_add(struct sock *sk, in inet_csk_reqsk_queue_add() argument
278 reqsk_queue_add(&inet_csk(sk)->icsk_accept_queue, req, sk, child); in inet_csk_reqsk_queue_add()
281 void inet_csk_reqsk_queue_hash_add(struct sock *sk, struct request_sock *req,
284 static inline void inet_csk_reqsk_queue_added(struct sock *sk, in inet_csk_reqsk_queue_added() argument
287 reqsk_queue_added(&inet_csk(sk)->icsk_accept_queue); in inet_csk_reqsk_queue_added()
290 static inline int inet_csk_reqsk_queue_len(const struct sock *sk) in inet_csk_reqsk_queue_len() argument
292 return reqsk_queue_len(&inet_csk(sk)->icsk_accept_queue); in inet_csk_reqsk_queue_len()
295 static inline int inet_csk_reqsk_queue_young(const struct sock *sk) in inet_csk_reqsk_queue_young() argument
297 return reqsk_queue_len_young(&inet_csk(sk)->icsk_accept_queue); in inet_csk_reqsk_queue_young()
300 static inline int inet_csk_reqsk_queue_is_full(const struct sock *sk) in inet_csk_reqsk_queue_is_full() argument
302 return reqsk_queue_is_full(&inet_csk(sk)->icsk_accept_queue); in inet_csk_reqsk_queue_is_full()
305 void inet_csk_reqsk_queue_drop(struct sock *sk, struct request_sock *req);
307 void inet_csk_destroy_sock(struct sock *sk);
308 void inet_csk_prepare_forced_close(struct sock *sk);
313 static inline unsigned int inet_csk_listen_poll(const struct sock *sk) in inet_csk_listen_poll() argument
315 return !reqsk_queue_empty(&inet_csk(sk)->icsk_accept_queue) ? in inet_csk_listen_poll()
319 int inet_csk_listen_start(struct sock *sk, const int nr_table_entries);
320 void inet_csk_listen_stop(struct sock *sk);
322 void inet_csk_addr2sockaddr(struct sock *sk, struct sockaddr *uaddr);
324 int inet_csk_compat_getsockopt(struct sock *sk, int level, int optname,
326 int inet_csk_compat_setsockopt(struct sock *sk, int level, int optname,
329 struct dst_entry *inet_csk_update_pmtu(struct sock *sk, u32 mtu);