** under SINIX) (Not necessary on send FD)
*/
#ifndef sinix
- if (
-#ifdef __hpux
- !p->opt.promisc &&
-#endif
-#ifdef HAVE_SOLARIS
- !isatm
+#if defined(__hpux)
+ /* HP-UX - only do this when not in promiscuous mode */
+ if (!p->opt.promisc) {
+#elif defined(HAVE_SOLARIS)
+ /* Solaris - don't do this on SunATM devices */
+ if (!isatm) {
+#else
+ /* Everything else (except for SINIX) - always do this */
+ {
#endif
- ) {
status = dlpromiscon(p, DL_PROMISC_SAP);
if (status < 0) {
/*