Re: Various Questions

1999-08-12 Thread Cillian Sharkey
> > But what happens if you write a program which does whatever ioctl is > > required to unpromiscify an interface and run it on an unpromiscuous > > interface, does it print a message to syslog even though promiscuous > > mode was never enabled in the first place? > > Like I said, I seem to get t

Re: Various Questions

1999-08-12 Thread Cillian Sharkey
> > But what happens if you write a program which does whatever ioctl is > > required to unpromiscify an interface and run it on an unpromiscuous > > interface, does it print a message to syslog even though promiscuous > > mode was never enabled in the first place? > > Like I said, I seem to get

Re: Various Questions

1999-08-12 Thread Sheldon Hearn
On Thu, 12 Aug 1999 12:20:35 GMT, Niall Smart wrote: > But what happens if you write a program which does whatever ioctl is > required to unpromiscify an interface and run it on an unpromiscuous > interface, does it print a message to syslog even though promiscuous > mode was never enabled in th

Re: Various Questions

1999-08-12 Thread Niall Smart
Sheldon Hearn wrote: > > On Thu, 12 Aug 1999 11:29:47 GMT, Niall Smart wrote: > > > Or is the test for IFF_PROMISC made earlier in the code? You > > should only print a disabled message when it has previously > > been enabled so that log file watchers can always match up > > the up/down pairs. >

Re: Various Questions

1999-08-12 Thread Cillian Sharkey
> > if (--ifp->if_pcount > 0) > > return (0); > > ifp->if_flags &= ~IFF_PROMISC; > > --->log(LOG_INFO, "%s%d: promiscuous mode disabled\n", > > --->ifp->if_name, ifp->if_unit); > > Shouldn't this be: > > i

Re: Various Questions

1999-08-12 Thread Sheldon Hearn
On Thu, 12 Aug 1999 11:29:47 GMT, Niall Smart wrote: > Or is the test for IFF_PROMISC made earlier in the code? You > should only print a disabled message when it has previously > been enabled so that log file watchers can always match up > the up/down pairs. I've been using if.c modified exac

Re: Various Questions

1999-08-12 Thread Sheldon Hearn
On Thu, 12 Aug 1999 12:20:35 GMT, Niall Smart wrote: > But what happens if you write a program which does whatever ioctl is > required to unpromiscify an interface and run it on an unpromiscuous > interface, does it print a message to syslog even though promiscuous > mode was never enabled in t

Re: Various Questions

1999-08-12 Thread Niall Smart
> -- snip -- > if (pswitch) { > /* > * If the device is not configured up, we cannot put it > in > * promiscuous mode. > */ > if ((ifp->if_flags & IFF_UP) == 0) > return (ENETDOWN); >

Re: Various Questions

1999-08-12 Thread Niall Smart
Sheldon Hearn wrote: > > On Thu, 12 Aug 1999 11:29:47 GMT, Niall Smart wrote: > > > Or is the test for IFF_PROMISC made earlier in the code? You > > should only print a disabled message when it has previously > > been enabled so that log file watchers can always match up > > the up/down pairs.

Re: Various Questions

1999-08-12 Thread Cillian Sharkey
> > if (--ifp->if_pcount > 0) > > return (0); > > ifp->if_flags &= ~IFF_PROMISC; > > --->log(LOG_INFO, "%s%d: promiscuous mode disabled\n", > > --->ifp->if_name, ifp->if_unit); > > Shouldn't this be: > >

Re: Various Questions

1999-08-12 Thread Sheldon Hearn
On Thu, 12 Aug 1999 11:29:47 GMT, Niall Smart wrote: > Or is the test for IFF_PROMISC made earlier in the code? You > should only print a disabled message when it has previously > been enabled so that log file watchers can always match up > the up/down pairs. I've been using if.c modified exa

Re: Various Questions

1999-08-12 Thread Niall Smart
> -- snip -- > if (pswitch) { > /* > * If the device is not configured up, we cannot put it > in > * promiscuous mode. > */ > if ((ifp->if_flags & IFF_UP) == 0) > return (ENETDOWN); >

Re: Various Questions

1999-08-11 Thread Cillian Sharkey
> > > when a network interface is put into promiscuous mode, a kernel > > > message is logged ie. "ep0: promiscuous mode enabled" are there plans > > > to log the reverse of this message ie. "ep0: promiscuous mode > > > disabled"..I think this was suggested before in the mailing-lists but > > > did

Re: Various Questions

1999-08-11 Thread Cillian Sharkey
> > > when a network interface is put into promiscuous mode, a kernel > > > message is logged ie. "ep0: promiscuous mode enabled" are there plans > > > to log the reverse of this message ie. "ep0: promiscuous mode > > > disabled"..I think this was suggested before in the mailing-lists but > > > di