Wireshark-dev: Re: [Wireshark-dev] Familiar with gtk/sctp_graph_dlg.c?

From: Jakub Zawadzki <darkjames-ws@xxxxxxxxxxxx>
Date: Tue, 26 Apr 2011 14:44:21 +0200
On Mon, Apr 25, 2011 at 03:02:18PM -0600, Stephen Fisher wrote:
> dup_list = (guint32 *)(((char *)&sack_header->nr_of_dups)+sizeof(guint16)+(nr*sizeof(struct gaps)));

It seems to be less readable version of:
  dup_list = (guint32 *) &sack_header->gaps[nr];

(At least on amd64 printed offsets:
  printf("%p %p\n", &sack_header->gaps[nr], (((char *)&sack_header->nr_of_dups)+sizeof(guint16)+(nr*sizeof(struct gaps)))); 
 are the same)