diff options
author | hasso <hasso> | 2004-05-19 11:38:40 +0000 |
---|---|---|
committer | hasso <hasso> | 2004-05-19 11:38:40 +0000 |
commit | 37da8c011408560eeaa74b2439192d36e16c19a4 (patch) | |
tree | 38c7a0f93ec030bbb1cf4067713c69257ddbc662 /isisd/isis_network.c | |
parent | 3b4cd3a9e89a5aace04a6a756bd0d23b7108fd83 (diff) |
Make it compile in NetBSD and OpenBSD.
Diffstat (limited to 'isisd/isis_network.c')
-rw-r--r-- | isisd/isis_network.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/isisd/isis_network.c b/isisd/isis_network.c index c10aeebf..4f9af61e 100644 --- a/isisd/isis_network.c +++ b/isisd/isis_network.c @@ -24,7 +24,13 @@ #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" @@ -237,12 +243,14 @@ open_bpf_dev (struct isis_circuit *circuit) 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 |