+2004-05-19 Rivo Nurges <rix at estpak.ee>
+
+ * *.c: Removing many useless net/ethernet.h includes and some tiny
+ fixes to make it compile on NetBSD and OpenBSD.
+
2004-05-08 Paul Jakma <paul@dishone.st>
* isis_zebra.c: Sync with zclient changes.
#include <limits.h>
#include <string.h>
#include <zebra.h>
-#include <net/ethernet.h>
-
#include "log.h"
#include "memory.h"
#include <stdio.h>
#include <ctype.h>
#include <zebra.h>
+#ifdef GNU_LINUX
#include <net/ethernet.h>
+#else
+#include <netinet/if_ether.h>
+#endif
#include "log.h"
#include "memory.h"
*/
#include <zebra.h>
-#include <net/ethernet.h>
#include "log.h"
#include "memory.h"
#include <zebra.h>
-#include <net/ethernet.h>
#include "log.h"
#include "hash.h"
#include <time.h>
#include <zebra.h>
-#include <net/ethernet.h>
#include "vty.h"
#include "linklist.h"
#include <stdio.h>
#include <ctype.h>
#include <zebra.h>
-#include <net/ethernet.h>
#include "log.h"
#include "memory.h"
#include <stdlib.h>
#include <stdio.h>
#include <zebra.h>
-#include <net/ethernet.h>
#include "linklist.h"
#include "thread.h"
#include <stdio.h>
#include <zebra.h>
-#include <net/ethernet.h>
#include "getopt.h"
#include "thread.h"
char *pid_file = PATH_ISISD_PID;
/* for reload */
-char _cwd[64];
-char _progpath[64];
+char _cwd[MAXPATHLEN];
+char _progpath[MAXPATHLEN];
int _argc;
char **_argv;
char **_envp;
#include <time.h>
#include <ctype.h>
#include <zebra.h>
-#include <net/ethernet.h>
#include <sys/utsname.h>
#include "stream.h"
#include <sys/socket.h>
#include <errno.h>
#include <zebra.h>
+#ifdef GNU_LINUX
#include <net/ethernet.h> /* the L2 protocols */
+#else
+#include <net/if.h>
+#include <netinet/if_ether.h>
+#endif
+
#include "log.h"
#include "stream.h"
zlog_warn ("failed to set BPF dev to immediate mode");
}
+#ifdef BIOCSSEESENT
/*
* We want to see only incoming packets
*/
if (ioctl (fd, BIOCSSEESENT, (caddr_t)&false) < 0) {
zlog_warn ("failed to set BPF dev to incoming only mode");
}
+#endif
/*
* ...but all of them
#include <stdio.h>
#include <string.h>
#include <zebra.h>
-#include <net/ethernet.h>
#include "memory.h"
#include "thread.h"
#include <stdlib.h>
#include <stdio.h>
#include <zebra.h>
-#include <net/ethernet.h>
#include "thread.h"
#include "linklist.h"
#include <stdlib.h>
#include <stdio.h>
#include <zebra.h>
-#include <net/ethernet.h>
#include "thread.h"
#include "linklist.h"
#include <stdlib.h>
#include <stdio.h>
#include <zebra.h>
-#include <net/ethernet.h>
#include "thread.h"
#include "linklist.h"
*/
#include <zebra.h>
-#include <net/ethernet.h>
#include "log.h"
#include "linklist.h"
*/
#include <zebra.h>
-#include <net/ethernet.h>
#include "thread.h"
#include "command.h"
#include <string.h>
#include <zebra.h>
-#include <net/ethernet.h>
#include "thread.h"
#include "vty.h"