diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-04-22 20:43:01 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-04-22 20:43:01 +0000 |
commit | 82583f9697ae53aa53e69a7ce42c7d5b08f0379d (patch) | |
tree | d8cf5aa507836c12cb929ac532fdd27a1d5f8cfa | |
parent | a346e923b747b10ffe776ab5819b3199c956cce1 (diff) |
"struct sack_chunk_header" is presumably just a SACK chunk header
followed by zero or more gap start/end pairs; fix up the previous fix to
handle that correctly.
svn path=/trunk/; revision=21510
-rw-r--r-- | gtk/sctp_graph_dlg.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk/sctp_graph_dlg.c b/gtk/sctp_graph_dlg.c index ba07a57017..840cd986cf 100644 --- a/gtk/sctp_graph_dlg.c +++ b/gtk/sctp_graph_dlg.c @@ -90,6 +90,11 @@ struct init_chunk_header { guint32 initial_tsn; }; +struct gaps { + guint16 start; + guint16 end; +}; + struct sack_chunk_header { guint8 type; guint8 flags; @@ -98,12 +103,7 @@ struct sack_chunk_header { guint32 a_rwnd; guint16 nr_of_gaps; guint16 nr_of_dups; - struct gaps *gaps; -}; - -struct gaps { - guint16 start; - guint16 end; + struct gaps gaps[1]; }; @@ -205,7 +205,7 @@ static void draw_sack_graph(struct sctp_udata *u_data) { if (nr>0) { - gap = sack_header->gaps; + gap = &sack_header->gaps[0]; for(i=0;i<nr; i++) { gap_start=ntohs(gap->start); |