Lines Matching refs:sk

101 int sctp_backlog_rcv(struct sock *sk, struct sk_buff *skb);
103 void sctp_write_space(struct sock *sk);
104 void sctp_data_ready(struct sock *sk);
108 void sctp_copy_sock(struct sock *newsk, struct sock *sk,
141 void sctp_icmp_proto_unreachable(struct sock *sk,
340 struct sctp_association *sctp_id2assoc(struct sock *sk, sctp_assoc_t id);
342 int sctp_do_peeloff(struct sock *sk, sctp_assoc_t id, struct socket **sockp);
388 static inline void sctp_skb_set_owner_r(struct sk_buff *skb, struct sock *sk) in sctp_skb_set_owner_r() argument
393 skb->sk = sk; in sctp_skb_set_owner_r()
395 atomic_add(event->rmem_len, &sk->sk_rmem_alloc); in sctp_skb_set_owner_r()
399 sk->sk_forward_alloc -= event->rmem_len; in sctp_skb_set_owner_r()
411 struct sctp_sock *sp = sctp_sk(asoc->base.sk); in sctp_frag_point()
425 static inline void sctp_assoc_pending_pmtu(struct sock *sk, struct sctp_association *asoc) in sctp_assoc_pending_pmtu() argument
428 sctp_assoc_sync_pmtu(sk, asoc); in sctp_assoc_pending_pmtu()
476 void sctp_put_port(struct sock *sk);
545 #define sctp_style(sk, style) __sctp_style((sk), (SCTP_SOCKET_##style)) argument
546 static inline int __sctp_style(const struct sock *sk, sctp_socket_type_t style) in __sctp_style() argument
548 return sctp_sk(sk)->type == style; in __sctp_style()
560 #define sctp_sstate(sk, state) __sctp_sstate((sk), (SCTP_SS_##state)) argument
561 static inline int __sctp_sstate(const struct sock *sk, sctp_sock_state_t state) in __sctp_sstate() argument
563 return sk->sk_state == state; in __sctp_sstate()