summaryrefslogtreecommitdiff
path: root/tethereal.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2000-11-20 17:08:20 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2000-11-20 17:08:20 +0000
commited396d1c03bd44d2f42c5dab02e50b4bcdc4b72e (patch)
treeede2fbb0c5c25d6fd7bb7602c375d80b35e668f0 /tethereal.c
parent95efc598a0def5906d547721fd881eb79d2b223b (diff)
downloadwireshark-ed396d1c03bd44d2f42c5dab02e50b4bcdc4b72e.tar.gz
Initialize winsock as we do in Ethereal.
svn path=/trunk/; revision=2680
Diffstat (limited to 'tethereal.c')
-rw-r--r--tethereal.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/tethereal.c b/tethereal.c
index 7fccf3ff54..4f4bd34a4a 100644
--- a/tethereal.c
+++ b/tethereal.c
@@ -1,6 +1,6 @@
/* tethereal.c
*
- * $Id: tethereal.c,v 1.57 2000/11/19 08:54:11 guy Exp $
+ * $Id: tethereal.c,v 1.58 2000/11/20 17:08:20 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -169,6 +169,11 @@ main(int argc, char *argv[])
extern char pcap_version[];
#endif
#endif
+
+#ifdef WIN32
+ WSADATA wsaData;
+#endif
+
char *gpf_path, *pf_path;
int gpf_open_errno, pf_open_errno;
int err;
@@ -429,6 +434,11 @@ main(int argc, char *argv[])
}
}
+#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. */