Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: Re: [Ethereal-dev] [Patch] HAVE_PCAP_DATALINK_NAME_TO_VAL

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Michael Tuexen <Michael.Tuexen@xxxxxxxxxxxxxxxxx>
Date: Thu, 23 Sep 2004 20:42:53 +0200
Hi Gisle,

the sctp_assoc_analyze stuff should currently not be compiled. It
will be rewritten to not use the standard socket structures but
to use the ethereal ones.

Did you change any Makefiles?

Best regards
Michael

On Sep 23, 2004, at 19:11 Uhr, Gisle Vanem wrote:

Building with this define requires this patch to capture-wpcap.c. Attached.

And I get this error with MingW:
gtk/sctp_assoc_analyse.c:221: error: dereferencing pointer to incomplete type gtk/sctp_assoc_analyse.c:280: error: dereferencing pointer to incomplete type
....
gtk/sctp_stat.c:369: error: invalid application of `sizeof' to incomplete type `sockaddr_in6' gtk/sctp_stat.c:370: error: invalid application of `sizeof' to incomplete type `sockaddr_in6'
...

<ws2tcpip.h> is needed for these definitions. Patch:

--- ethereal-2004-09-23/gtk/sctp_assoc_analyse.c Tue Sep 07 22:07:08 2004
+++ gtk/sctp_assoc_analyse.c    Thu Sep 23 18:22:59 2004
@@ -41,6 +41,9 @@

 #include "sctp_stat.h"

+#if defined(_WIN32)
+# include <ws2tcpip.h>
+#endif

 void
 decrease_childcount(struct sctp_analyse *parent)

--- ethereal-2004-09-23/gtk/sctp_stat.c Sun Sep 12 00:53:17 2004
+++ gtk/sctp_stat.c     Thu Sep 23 18:24:53 2004
@@ -40,6 +40,9 @@
 #include "sctp_stat.h"
 #include <math.h>

+#if defined(_WIN32)
+# include <ws2tcpip.h>
+#endif

 #define SCTP_HEARTBEAT_CHUNK_ID          4
 #define SCTP_HEARTBEAT_ACK_CHUNK_ID      5

-------------

--gv
<diff.txt>_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev