Based on package submitted by Jan Schaumann <jschauma@cs.stevens-tech.edu> in PR pkg/16301. NS is a discrete event simulator targeted at networking research. Ns provides substantial support for simulation of TCP, routing, and multicast protocols.
31 lines
644 B
Text
31 lines
644 B
Text
$NetBSD: patch-ai,v 1.1.1.1 2002/08/27 08:07:07 seb Exp $
|
|
|
|
--- emulate/ether.cc.orig Tue Feb 8 23:35:12 2000
|
|
+++ emulate/ether.cc
|
|
@@ -39,4 +39,7 @@ static const char rcsid[] =
|
|
#endif
|
|
#endif
|
|
+
|
|
+#include "config.h"
|
|
+
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
@@ -44,7 +47,17 @@ static const char rcsid[] =
|
|
#include <sys/socket.h>
|
|
#include <sys/ioctl.h>
|
|
+#ifdef HAVE_NETINET_IN_H
|
|
+#include <netinet/in.h>
|
|
+#endif
|
|
+#ifdef HAVE_NET_IF_H
|
|
+#include <net/if.h>
|
|
+#endif
|
|
+#ifdef HAVE_NET_ETHERNET_H
|
|
#include <net/ethernet.h>
|
|
+#endif
|
|
+#ifdef HAVE_NETINET_IF_ETHER_H
|
|
+#include <netinet/if_ether.h>
|
|
+#endif
|
|
|
|
-#include "config.h"
|
|
#include "ether.h"
|
|
|