tsnmap.c (55fa518867978e1f5fd8353098f80d125ac734d7) tsnmap.c (025dfdafe77f20b3890981a394774baab7b9c827)
1/* SCTP kernel implementation
2 * (C) Copyright IBM Corp. 2001, 2004
3 * Copyright (c) 1999-2000 Cisco, Inc.
4 * Copyright (c) 1999-2001 Motorola, Inc.
5 * Copyright (c) 2001 Intel Corp.
6 *
7 * This file is part of the SCTP kernel implementation
8 *

--- 213 unchanged lines hidden (view full) ---

222 map->base_tsn += gap;
223 map->cumulative_tsn_ack_point += gap;
224 if (gap >= map->len) {
225 /* If our gap is larger then the map size, just
226 * zero out the map.
227 */
228 bitmap_zero(map->tsn_map, map->len);
229 } else {
1/* SCTP kernel implementation
2 * (C) Copyright IBM Corp. 2001, 2004
3 * Copyright (c) 1999-2000 Cisco, Inc.
4 * Copyright (c) 1999-2001 Motorola, Inc.
5 * Copyright (c) 2001 Intel Corp.
6 *
7 * This file is part of the SCTP kernel implementation
8 *

--- 213 unchanged lines hidden (view full) ---

222 map->base_tsn += gap;
223 map->cumulative_tsn_ack_point += gap;
224 if (gap >= map->len) {
225 /* If our gap is larger then the map size, just
226 * zero out the map.
227 */
228 bitmap_zero(map->tsn_map, map->len);
229 } else {
230 /* If the gap is smaller then the map size,
230 /* If the gap is smaller than the map size,
231 * shift the map by 'gap' bits and update further.
232 */
233 bitmap_shift_right(map->tsn_map, map->tsn_map, gap, map->len);
234 sctp_tsnmap_update(map);
235 }
236}
237
238/********************************************************************

--- 146 unchanged lines hidden ---
231 * shift the map by 'gap' bits and update further.
232 */
233 bitmap_shift_right(map->tsn_map, map->tsn_map, gap, map->len);
234 sctp_tsnmap_update(map);
235 }
236}
237
238/********************************************************************

--- 146 unchanged lines hidden ---