From 470079345edb1d4ec652ff2104cf779b1193ddc2 Mon Sep 17 00:00:00 2001 From: brad Date: Sun, 26 Mar 2000 01:40:37 +0000 Subject: [PATCH] make sniffit recognize most if not all of the ethernet devices available on i386, sparc, m68k, mips and powerpc based archs --- net/sniffit/patches/patch-ag | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/net/sniffit/patches/patch-ag b/net/sniffit/patches/patch-ag index 65287578a20..75582b780eb 100644 --- a/net/sniffit/patches/patch-ag +++ b/net/sniffit/patches/patch-ag @@ -1,11 +1,30 @@ --- sn_data.h.orig Fri Apr 18 05:33:58 1997 -+++ sn_data.h Sat Mar 25 18:28:00 2000 -@@ -20,7 +20,7 @@ - char *ETH_DEV[]={"et"}; - #endif - --#ifdef FREEBSD -+#if defined(FREEBSD) || defined(OPENBSD) - #define ETH_DEV_NR 1 ++++ sn_data.h Sat Mar 25 20:34:10 2000 +@@ -25,6 +25,27 @@ char *ETH_DEV[]={"ed"}; #endif + ++#ifdef OPENBSD ++#ifdef __i386__ ++#define ETH_DEV_NR 32 ++char *ETH_DEV[]={"cnw","dc","de","ec","ef","eg","el","ep","ex","fea","fpa","fxp","ie","le","ne","ray","rl","sf","sis","sk","sm","ste","ti","tl","tx","vr","wb","we","wi","wx","xe","xl"}; ++#elif defined(__sparc__) ++#define ETH_DEV_NR 5 ++char *ETH_DEV[]={"be","hme","ie","le","qe"}; ++#elif defined(__m68k__) ++#defined ETH_DEV_NR 8 ++char *ETH_DEV[]={"ae","ed","es","le","mc","ne","qn","sn"}; ++#elif defined(__mips__) ++#define ETH_DEV_NR 5 ++char *ETH_DEV[]={"ec","ep","le","ne","we"}; ++#elif defined(__powerpc__) ++#defined ETH_DEV_NR 3 ++char *ETH_DEV[]={"bm","de","gm"}; ++#else ++#error Unknown network devices for this OpenBSD architecture. ++#endif ++#endif ++ + #ifdef BSDI + #define ETH_DEV_NR 1 + char *ETH_DEV[]={"ef"};