The errors that were reported were fixed, I think. Changes: * removed the -i option * modified the source and added the SIOCGIFADDR ioctl.
Chksniff is a small tool to check in what mode network interfaces are running. If they are running in promiscuous mode (which generally means an interface is sniffed) this gets displayed by chksniff. All works.