Date: Tue, 20 Apr 2010 08:51:22 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r206892 - head/sys/netinet Message-ID: <201004200851.o3K8pMHr072007@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tuexen Date: Tue Apr 20 08:51:21 2010 New Revision: 206892 URL: http://svn.freebsd.org/changeset/base/206892 Log: Update highest_tsn variables when sliding mapping arrays. Modified: head/sys/netinet/sctp_indata.c Modified: head/sys/netinet/sctp_indata.c ============================================================================== --- head/sys/netinet/sctp_indata.c Tue Apr 20 08:50:19 2010 (r206891) +++ head/sys/netinet/sctp_indata.c Tue Apr 20 08:51:21 2010 (r206892) @@ -2390,6 +2390,12 @@ sctp_slide_mapping_arrays(struct sctp_tc asoc->mapping_array[ii] = 0; asoc->nr_mapping_array[ii] = 0; } + if (asoc->highest_tsn_inside_map + 1 == asoc->mapping_array_base_tsn) { + asoc->highest_tsn_inside_map += (slide_from << 3); + } + if (asoc->highest_tsn_inside_nr_map + 1 == asoc->mapping_array_base_tsn) { + asoc->highest_tsn_inside_nr_map += (slide_from << 3); + } asoc->mapping_array_base_tsn += (slide_from << 3); if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_MAP_LOGGING_ENABLE) { sctp_log_map(asoc->mapping_array_base_tsn,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004200851.o3K8pMHr072007>