Lines Matching refs:sflags
1587 __u16 sflags; in sctp_sendmsg_parse() local
1627 sflags = srinfo->sinfo_flags; in sctp_sendmsg_parse()
1628 if (!sflags && msg_len) in sctp_sendmsg_parse()
1631 if (sctp_style(sk, TCP) && (sflags & (SCTP_EOF | SCTP_ABORT))) in sctp_sendmsg_parse()
1634 if (((sflags & SCTP_EOF) && msg_len > 0) || in sctp_sendmsg_parse()
1635 (!(sflags & (SCTP_EOF | SCTP_ABORT)) && msg_len == 0)) in sctp_sendmsg_parse()
1638 if ((sflags & SCTP_ADDR_OVER) && !msg->msg_name) in sctp_sendmsg_parse()
1644 static int sctp_sendmsg_new_asoc(struct sock *sk, __u16 sflags, in sctp_sendmsg_new_asoc() argument
1658 if (sflags & (SCTP_EOF | SCTP_ABORT)) in sctp_sendmsg_new_asoc()
1740 __u16 sflags, struct msghdr *msg, in sctp_sendmsg_check_sflags() argument
1749 if ((sflags & SCTP_SENDALL) && sctp_style(sk, UDP) && in sctp_sendmsg_check_sflags()
1753 if (sflags & SCTP_EOF) { in sctp_sendmsg_check_sflags()
1760 if (sflags & SCTP_ABORT) { in sctp_sendmsg_check_sflags()
1938 __u16 sflags; in sctp_sendmsg() local
1947 sflags = sinfo->sinfo_flags; in sctp_sendmsg()
1959 if ((sflags & SCTP_SENDALL) && sctp_style(sk, UDP)) { in sctp_sendmsg()
1961 err = sctp_sendmsg_check_sflags(asoc, sflags, msg, in sctp_sendmsg()
1985 err = sctp_sendmsg_check_sflags(asoc, sflags, msg, in sctp_sendmsg()
1990 err = sctp_sendmsg_new_asoc(sk, sflags, &cmsgs, daddr, in sctp_sendmsg()
1999 if (!sctp_style(sk, TCP) && !(sflags & SCTP_ADDR_OVER)) in sctp_sendmsg()
2008 err = sctp_sendmsg_check_sflags(asoc, sflags, msg, msg_len); in sctp_sendmsg()