diff options
author | tuexen <tuexen@FreeBSD.org> | 2013-09-03 19:31:59 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2013-09-03 19:31:59 +0000 |
commit | 0ad83fb9853866226b8cf7681559a523baee8467 (patch) | |
tree | a690991b58d0649cc50779c595001ec57fb3220a /sys/netinet/sctp_output.c | |
parent | 8ec798134a6d611c2af470ec8576cfe300cef5e7 (diff) | |
download | FreeBSD-src-0ad83fb9853866226b8cf7681559a523baee8467.zip FreeBSD-src-0ad83fb9853866226b8cf7681559a523baee8467.tar.gz |
Remove redundant field pr_sctp_on.
MFC after: 1 week
Diffstat (limited to 'sys/netinet/sctp_output.c')
-rw-r--r-- | sys/netinet/sctp_output.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c index ddd9175..3d76b7e 100644 --- a/sys/netinet/sctp_output.c +++ b/sys/netinet/sctp_output.c @@ -6067,7 +6067,6 @@ sctp_get_frag_point(struct sctp_tcb *stcb, static void sctp_set_prsctp_policy(struct sctp_stream_queue_pending *sp) { - sp->pr_sctp_on = 0; /* * We assume that the user wants PR_SCTP_TTL if the user provides a * positive lifetime but does not specify any PR_SCTP policy. This @@ -6077,7 +6076,6 @@ sctp_set_prsctp_policy(struct sctp_stream_queue_pending *sp) */ if (PR_SCTP_ENABLED(sp->sinfo_flags)) { sp->act_flags |= PR_SCTP_POLICY(sp->sinfo_flags); - sp->pr_sctp_on = 1; } else { return; } @@ -7425,13 +7423,8 @@ dont_do_it: } chk->send_size += pads; } - /* We only re-set the policy if it is on */ - if (sp->pr_sctp_on) { - sctp_set_prsctp_policy(sp); + if (PR_SCTP_ENABLED(chk->flags)) { asoc->pr_sctp_cnt++; - chk->pr_sctp_on = 1; - } else { - chk->pr_sctp_on = 0; } if (sp->msg_is_complete && (sp->length == 0) && (sp->sender_all_done)) { /* All done pull and kill the message */ |