/* capture.c
* Routines for packet capture windows
*
- * $Id: capture.c,v 1.123 2000/09/14 11:49:40 gram Exp $
+ * $Id: capture.c,v 1.124 2000/09/14 22:59:00 grahamb Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#endif
pcap_close(pch);
+#ifdef WIN32
+ /* Shut down windows sockets */
+ WSACleanup();
+#endif
+
gtk_grab_remove(GTK_WIDGET(cap_w));
gtk_widget_destroy(GTK_WIDGET(cap_w));
/* main.c
*
- * $Id: main.c,v 1.156 2000/09/09 10:26:53 guy Exp $
+ * $Id: main.c,v 1.157 2000/09/14 22:59:08 grahamb Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#ifdef HAVE_LIBPCAP
#ifdef WIN32
char pcap_version[] = "0.4a6";
+ WSADATA wsaData;
#else
extern char pcap_version[];
#endif
}
}
+#ifdef WIN32
+ /* Start windows sockets */
+ WSAStartup( MAKEWORD( 1, 1 ), &wsaData );
+#endif
+
/* Notify all registered modules that have had any of their preferences
changed either from one of the preferences file or from the command
line that its preferences have changed. */
dissect_cleanup();
g_free(rc_file);
+#ifdef WIN32
+ /* Shutdown windows sockets */
+ WSACleanup();
+#endif
+
gtk_exit(0);
/* This isn't reached, but we need it to keep GCC from complaining