Lines Matching refs:sflags
1598 __u16 sflags; in sctp_sendmsg_parse() local
1638 sflags = srinfo->sinfo_flags; in sctp_sendmsg_parse()
1639 if (!sflags && msg_len) in sctp_sendmsg_parse()
1642 if (sctp_style(sk, TCP) && (sflags & (SCTP_EOF | SCTP_ABORT))) in sctp_sendmsg_parse()
1645 if (((sflags & SCTP_EOF) && msg_len > 0) || in sctp_sendmsg_parse()
1646 (!(sflags & (SCTP_EOF | SCTP_ABORT)) && msg_len == 0)) in sctp_sendmsg_parse()
1649 if ((sflags & SCTP_ADDR_OVER) && !msg->msg_name) in sctp_sendmsg_parse()
1655 static int sctp_sendmsg_new_asoc(struct sock *sk, __u16 sflags, in sctp_sendmsg_new_asoc() argument
1669 if (sflags & (SCTP_EOF | SCTP_ABORT)) in sctp_sendmsg_new_asoc()
1751 __u16 sflags, struct msghdr *msg, in sctp_sendmsg_check_sflags() argument
1760 if ((sflags & SCTP_SENDALL) && sctp_style(sk, UDP) && in sctp_sendmsg_check_sflags()
1764 if (sflags & SCTP_EOF) { in sctp_sendmsg_check_sflags()
1771 if (sflags & SCTP_ABORT) { in sctp_sendmsg_check_sflags()
1946 __u16 sflags; in sctp_sendmsg() local
1955 sflags = sinfo->sinfo_flags; in sctp_sendmsg()
1967 if ((sflags & SCTP_SENDALL) && sctp_style(sk, UDP)) { in sctp_sendmsg()
1969 err = sctp_sendmsg_check_sflags(asoc, sflags, msg, in sctp_sendmsg()
1993 err = sctp_sendmsg_check_sflags(asoc, sflags, msg, in sctp_sendmsg()
1998 err = sctp_sendmsg_new_asoc(sk, sflags, &cmsgs, daddr, in sctp_sendmsg()
2007 if (!sctp_style(sk, TCP) && !(sflags & SCTP_ADDR_OVER)) in sctp_sendmsg()
2016 err = sctp_sendmsg_check_sflags(asoc, sflags, msg, msg_len); in sctp_sendmsg()