CPM(1) USER COMMANDS CPM(1) NAME cpm - check promiscuous mode for all network interfaces SYNOPSIS cpm DESCRIPTION _C_p_m checks whether any network interface on a host is in promiscuous mode. _C_p_m uses standard BSD Unix _s_o_c_k_e_t(_2) and _i_o_c_t_l(_2) system calls to determine a system's configured network interfaces, and to check whether any of the network interfaces are currently in promiscuous mode. _C_p_m prints the number of interfaces found, the name of each interface, and states whether each interface is in normal or promiscuous mode, to _s_t_d_o_u_t, and returns the number of discovered promiscuous interfaces as its exit status. No special privileges are required to invoke _c_p_m. SEE ALSO socket(2), ioctl(2) 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. Sun Release 4.1 Last change: Fri Dec 22 1995 1