From owner-freebsd-questions Wed Sep 2 07:58:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA01893 for freebsd-questions-outgoing; Wed, 2 Sep 1998 07:58:58 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA01885 for ; Wed, 2 Sep 1998 07:58:54 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.1/8.9.1) id JAA06809; Wed, 2 Sep 1998 09:57:31 -0500 (CDT) Message-ID: <19980902095731.B6168@emsphone.com> Date: Wed, 2 Sep 1998 09:57:31 -0500 From: Dan Nelson To: Jim Mock , freebsd-questions@FreeBSD.ORG Subject: Re: cpm References: <4.1.0.44.19980902183924.009ef8d0@mail.ozemail.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.94.2i 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 X-OS: FreeBSD 2.2.7-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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