Ethereal-dev: [Ethereal-dev] Include <netinet/in.h> in netmon.c

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

From: Motonori Shindo <mshindo@xxxxxxxxxxx>
Date: Fri, 25 Jan 2002 18:34:39 +0900 (JST)
Hi,

Attached is a patch to guard #include <netinet/in.h> by #ifdef
HAVE_NETINET_IN_H. Without this, the code won't compile under Win32.

Regards,

=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
 +----+----+     
 |.. .|    |     Motonori Shindo
 |_~__|    |     
 | .. |~~_~|     Sr. Systems Engineer
 | .  |    |     CoSine Communications Inc.
 +----+----+     
 C o S i n e     e-mail:  mshindo@xxxxxxxxxxxxx 
Communications
=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=

Index: wiretap/netmon.c
===================================================================
RCS file: /cvsroot/ethereal/wiretap/netmon.c,v
retrieving revision 1.45
diff -u -r1.45 netmon.c
--- netmon.c	2002/01/24 23:02:56	1.45
+++ netmon.c	2002/01/25 09:22:18
@@ -29,7 +29,9 @@
 #include "file_wrappers.h"
 #include "buffer.h"
 #include "netmon.h"
+#ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
+#endif
 
 /* The file at
  *
This message has been 'sanitized'.  This means that potentially
dangerous content has been rewritten or removed.  The following
log describes which actions were taken.

Sanitizer (start="1011951294"):
  Replaced MIME boundary: >>--Next_Part--<<
                    with: >>MIMEStream=_0+194258_38764598623867_5714665949<<
  Writer (pos="1117"):
    Total modifications so far: 1

  Part (pos="1163"):
    SanitizeFile (filename="unnamed.txt", mimetype="Text/Plain"):
      Match (rule="2"):
        Enforced policy: accept

  Part (pos="1768"):
    SanitizeFile (filename="netinet-in.diff", mimetype="Text/Plain"):
      Match (rule="default"):
        Enforced policy: accept


Anomy 0.0.0 : Sanitizer.pm
$Id: Sanitizer.pm,v 1.32 2001/10/11 19:27:15 bre Exp $