diff options
author | tuexen <tuexen@FreeBSD.org> | 2010-09-17 19:20:39 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2010-09-17 19:20:39 +0000 |
commit | 5e466f8898acdd8dbfc38a022e08c7974217c87f (patch) | |
tree | 4945b483fc7d7217fe172e712f9291454f90d8ba /sys/netinet/sctp_indata.c | |
parent | 7b25487bee443fbdedc922982d86145a78dd5752 (diff) | |
download | FreeBSD-src-5e466f8898acdd8dbfc38a022e08c7974217c87f.zip FreeBSD-src-5e466f8898acdd8dbfc38a022e08c7974217c87f.tar.gz |
Fix a bug where the wrong PR-SCTP policy was considered.
While there, use always the same code for the check of
TTL expiration.
MFC after: 2 weeks.
Diffstat (limited to 'sys/netinet/sctp_indata.c')
-rw-r--r-- | sys/netinet/sctp_indata.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/netinet/sctp_indata.c b/sys/netinet/sctp_indata.c index 6095fe5..1040c9d 100644 --- a/sys/netinet/sctp_indata.c +++ b/sys/netinet/sctp_indata.c @@ -3300,13 +3300,7 @@ sctp_strike_gap_ack_chunks(struct sctp_tcb *stcb, struct sctp_association *asoc, if (stcb->asoc.peer_supports_prsctp) { if ((PR_SCTP_TTL_ENABLED(tp1->flags)) && tp1->sent < SCTP_DATAGRAM_ACKED) { /* Is it expired? */ - if ( - /* - * TODO sctp_constants.h needs alternative - * time macros when _KERNEL is undefined. - */ - (timevalcmp(&now, &tp1->rec.data.timetodrop, >)) - ) { + if (timevalcmp(&now, &tp1->rec.data.timetodrop, >)) { /* Yes so drop it */ if (tp1->data != NULL) { (void)sctp_release_pr_sctp_chunk(stcb, tp1, |