.\" .\" Copyright (c) Carnegie Mellon University 1994, 1995 .\" CERT(sm) Coordination Center .\" Software Engineering Institute .\" Carnegie Mellon University .\" Pittsburgh, PA 15213-3890 .\" U.S.A. .\" CERT is a service mark of Carnegie Mellon University. .\" .\" @(#) $Header: cpm.1,v .TH CPM 1 "Fri Dec 22 1995" .AT 3 .SH NAME cpm \- check promiscuous mode for all network interfaces .SH SYNOPSIS .na .B cpm .ad .SH DESCRIPTION .LP \fICpm\fP checks whether any network interface on a host is in promiscuous mode. \fICpm\fP uses standard BSD Unix \fIsocket(2)\fP and \fIioctl(2)\fP system calls to determine a system's configured network interfaces, and to check whether any of the network interfaces are currently in promiscuous mode. .LP \fICpm\fP prints the number of interfaces found, the name of each interface, and states whether each interface is in normal or promiscuous mode, to \fIstdout\fP, and returns the number of discovered promiscuous interfaces as its exit status. .B No special privileges are required to invoke \fIcpm\fP. .. .HD .SH "SEE ALSO" socket(2), ioctl(2) .SH "BUGS" This software relies on socket(2) and ioctl(2) calls that support the SIOCGIFCONF requests. This should be portable to all SunOS versions prior to 4.1.3, and many BSD Unix derived platforms.