When the capture does not contains SCTP INIT and INAT_ACK packets the
startArwnd value is 0 (not set) and as a result the Y axis range is
(0,0) and the dots are not visible
Change-Id: Iafb1981e62f28fe09b106138836c866d0dbebb27
Reviewed-on: https://code.wireshark.org/review/28861
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
listSACK = g_list_last(selected_assoc->sack2);
startArwnd = selected_assoc->arwnd1;
}
+ bool detect_max_arwnd = (startArwnd == 0) ? true : false;
+
while (listSACK) {
tsn = (tsn_t*) (listSACK->data);
tlist = g_list_first(tsn->tsns);
nr_sack_header =(struct nr_sack_chunk_header *)tlist->data;
arwnd = g_ntohl(nr_sack_header->a_rwnd);
}
+ if (detect_max_arwnd && startArwnd < arwnd) {
+ startArwnd = arwnd;
+ }
ya.append(arwnd);
xa.append(tsn->secs + tsn->usecs/1000000.0);
fa.append(tsn->frame_number);
capture_file *cap_file_;
int frame_num;
int direction;
- int startArwnd;
+ guint32 startArwnd;
QVector<double> xa, ya;
QVector<guint32> fa;
// QVector<QString> typeStrings;