


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



