Lines Matching defs:sk
90 int sctp_backlog_rcv(struct sock *sk, struct sk_buff *skb);
92 void sctp_write_space(struct sock *sk);
93 void sctp_data_ready(struct sock *sk);
97 void sctp_copy_sock(struct sock *newsk, struct sock *sk,
116 int sctp_get_sctp_info(struct sock *sk, struct sctp_association *asoc,
142 int sctp_udp_v4_err(struct sock *sk, struct sk_buff *skb);
143 int sctp_udp_v6_err(struct sock *sk, struct sk_buff *skb);
148 void sctp_icmp_proto_unreachable(struct sock *sk,
365 struct sctp_association *sctp_id2assoc(struct sock *sk, sctp_assoc_t id);
394 static inline void sctp_skb_set_owner_r(struct sk_buff *skb, struct sock *sk)
399 skb->sk = sk;
401 atomic_add(event->rmem_len, &sk->sk_rmem_alloc);
405 sk_mem_charge(sk, event->rmem_len);
459 void sctp_put_port(struct sock *sk);
509 #define sctp_style(sk, style) __sctp_style((sk), (SCTP_SOCKET_##style))
510 static inline int __sctp_style(const struct sock *sk,
513 return sctp_sk(sk)->type == style;
525 #define sctp_sstate(sk, state) __sctp_sstate((sk), (SCTP_SS_##state))
526 static inline int __sctp_sstate(const struct sock *sk,
529 return sk->sk_state == state;
621 return __sctp_mtu_payload(sctp_sk(t->asoc->base.sk), t, 0, 0) -
660 static inline bool sctp_newsk_ready(const struct sock *sk)
662 return sock_flag(sk, SOCK_DEAD) || sk->sk_socket;
665 static inline void sctp_sock_set_nodelay(struct sock *sk)
667 lock_sock(sk);
668 sctp_sk(sk)->nodelay = true;
669 release_sock(sk);