diff options
Diffstat (limited to 'net/sctp/tsnmap.c')
-rw-r--r-- | net/sctp/tsnmap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/sctp/tsnmap.c b/net/sctp/tsnmap.c index f1e40cebc981..b5fb7c409023 100644 --- a/net/sctp/tsnmap.c +++ b/net/sctp/tsnmap.c | |||
@@ -114,7 +114,8 @@ int sctp_tsnmap_check(const struct sctp_tsnmap *map, __u32 tsn) | |||
114 | 114 | ||
115 | 115 | ||
116 | /* Mark this TSN as seen. */ | 116 | /* Mark this TSN as seen. */ |
117 | int sctp_tsnmap_mark(struct sctp_tsnmap *map, __u32 tsn) | 117 | int sctp_tsnmap_mark(struct sctp_tsnmap *map, __u32 tsn, |
118 | struct sctp_transport *trans) | ||
118 | { | 119 | { |
119 | u16 gap; | 120 | u16 gap; |
120 | 121 | ||
@@ -133,6 +134,9 @@ int sctp_tsnmap_mark(struct sctp_tsnmap *map, __u32 tsn) | |||
133 | */ | 134 | */ |
134 | map->max_tsn_seen++; | 135 | map->max_tsn_seen++; |
135 | map->cumulative_tsn_ack_point++; | 136 | map->cumulative_tsn_ack_point++; |
137 | if (trans) | ||
138 | trans->sack_generation = | ||
139 | trans->asoc->peer.sack_generation; | ||
136 | map->base_tsn++; | 140 | map->base_tsn++; |
137 | } else { | 141 | } else { |
138 | /* Either we already have a gap, or about to record a gap, so | 142 | /* Either we already have a gap, or about to record a gap, so |