Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Sep 1998 09:57:31 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        Jim Mock <jim@phrantic.phear.net>, freebsd-questions@FreeBSD.ORG
Subject:   Re: cpm
Message-ID:  <19980902095731.B6168@emsphone.com>
In-Reply-To: <4.1.0.44.19980902183924.009ef8d0@mail.ozemail.com.au>; from "Jim Mock" on Wed Sep  2 19:18:05 GMT 1998
References:  <4.1.0.44.19980902183924.009ef8d0@mail.ozemail.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Sep 02), Jim Mock said:
> anyone have a port of cpm?  i need something to check some nics to see if
> they're in promiscuous mode.  i got a copy of it from CERT's ftp, but it
> won't compile.. 
> 
> [root@phear]$ gcc -o cpm cpm.c
> cpm.c:18: sys/map.h: No such file or directory
> [root@phear]$ 
> 
> any ideas?  is there a way i can check it with netstat?  if so, what are
> the flags that would show if it's in promiscuous mode?

--- /usr/local/bin/cpm ---
#! /bin/sh
ifconfig $1 | grep -q PROMISC
---

if cpm fxp0 ; then echo "fxp0 in promiscuous mode" ; fi
if cpm tun0 ; then echo "tun0 in promiscuous mode" ; fi

etc etc etc.

	-Dan Nelson
	dnelson@emsphone.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980902095731.B6168>