44 lines
978 B
Plaintext
44 lines
978 B
Plaintext
--- readsmb.c.orig Tue Nov 23 09:36:00 1999
|
|
+++ readsmb.c Tue Nov 23 09:38:48 1999
|
|
@@ -44,16 +44,17 @@
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
-#include <asm/signal.h>
|
|
-#ifdef __FreeBSD__
|
|
+#include <sys/param.h>
|
|
+#include <signal.h>
|
|
+#ifdef BSD
|
|
#include <sys/socket.h>
|
|
-#endif /* __FreeBSD__ */
|
|
+#endif /* BSD */
|
|
#ifdef __sun /* Solaris 2.x */
|
|
#define u_int32_t uint32_t
|
|
#include <sys/socket.h>
|
|
-#endif /* Not FreeBSD, not Solaris. Our default is Linux */
|
|
+#endif /* Not BSD, not Solaris. Our default is Linux */
|
|
#include <net/if.h>
|
|
-#include "pcap.h"
|
|
+#include <pcap.h>
|
|
|
|
#define FILTER_CMD "src port 139 or dst port 139"
|
|
#define TRUE (1)
|
|
@@ -86,7 +87,7 @@
|
|
int current_pkt_type = 0;
|
|
int neg_prot, pw_offset, sk_offset, user_offset;
|
|
|
|
-void *
|
|
+void
|
|
killed (int sig)
|
|
{
|
|
fflush (log);
|
|
@@ -330,7 +331,7 @@
|
|
free (pc6);
|
|
return (lmhash);
|
|
}
|
|
-void
|
|
+int
|
|
main (int argc, char **argv)
|
|
{
|
|
char *cur_pkt, *next_pkt;
|