Lines Matching refs:sflags
1632 __u16 sflags; in sctp_sendmsg_parse() local
1672 sflags = srinfo->sinfo_flags; in sctp_sendmsg_parse()
1673 if (!sflags && msg_len) in sctp_sendmsg_parse()
1676 if (sctp_style(sk, TCP) && (sflags & (SCTP_EOF | SCTP_ABORT))) in sctp_sendmsg_parse()
1679 if (((sflags & SCTP_EOF) && msg_len > 0) || in sctp_sendmsg_parse()
1680 (!(sflags & (SCTP_EOF | SCTP_ABORT)) && msg_len == 0)) in sctp_sendmsg_parse()
1683 if ((sflags & SCTP_ADDR_OVER) && !msg->msg_name) in sctp_sendmsg_parse()
1689 static int sctp_sendmsg_new_asoc(struct sock *sk, __u16 sflags, in sctp_sendmsg_new_asoc() argument
1705 if (sflags & (SCTP_EOF | SCTP_ABORT)) in sctp_sendmsg_new_asoc()
1858 __u16 sflags, struct msghdr *msg, in sctp_sendmsg_check_sflags() argument
1867 if ((sflags & SCTP_SENDALL) && sctp_style(sk, UDP) && in sctp_sendmsg_check_sflags()
1871 if (sflags & SCTP_EOF) { in sctp_sendmsg_check_sflags()
1878 if (sflags & SCTP_ABORT) { in sctp_sendmsg_check_sflags()
2052 __u16 sflags; in sctp_sendmsg() local
2061 sflags = sinfo->sinfo_flags; in sctp_sendmsg()
2073 if ((sflags & SCTP_SENDALL) && sctp_style(sk, UDP)) { in sctp_sendmsg()
2075 err = sctp_sendmsg_check_sflags(asoc, sflags, msg, in sctp_sendmsg()
2099 err = sctp_sendmsg_check_sflags(asoc, sflags, msg, in sctp_sendmsg()
2104 err = sctp_sendmsg_new_asoc(sk, sflags, &cmsgs, daddr, in sctp_sendmsg()
2113 if (!sctp_style(sk, TCP) && !(sflags & SCTP_ADDR_OVER)) in sctp_sendmsg()
2122 err = sctp_sendmsg_check_sflags(asoc, sflags, msg, msg_len); in sctp_sendmsg()