Re: syslogd and -a

2001-07-02 Thread Hajimu UMEMOTO
> On Mon, 2 Jul 2001 12:25:42 -0700 > Kris Kennaway <[EMAIL PROTECTED]> said: kris> This doesn't seem to work with IPv6. Isn't there a libc function kris> which can be used to do this? Yup, there is no api for masking address ether libc nor standard. I'll commit the following patch for

Re: syslogd and -a

2001-07-02 Thread Kris Kennaway
On Mon, Jul 02, 2001 at 09:38:42AM +0100, David Malone wrote: > On Sun, Jul 01, 2001 at 09:20:44PM -0700, Crist J. Clark wrote: > > Hmmm... Looks like, > > > > # syslogd -a 192.168.1.0/29 > > > > Will work and, > > > > # syslogd -a 192.168.1.1/29 > > > > Won't. > > That's the standard beh

Re: syslogd and -a

2001-07-02 Thread Hajimu UMEMOTO
> On Mon, 2 Jul 2001 08:25:38 -0700 > "Crist J. Clark" <[EMAIL PROTECTED]> said: cristjc> That's exactly what happens in the syslogd(8) code. However, I think cristjc> that should be, cristjc> n &= m cristjc> . cristjc> . cristjc> . cristjc> ((h & m) == n) I think it should be

Re: syslogd and -a

2001-07-02 Thread David Hill
On Mon, 2 Jul 2001 09:38:42 +0100 David Malone <[EMAIL PROTECTED]> wrote: > On Sun, Jul 01, 2001 at 09:20:44PM -0700, Crist J. Clark wrote: > > Hmmm... Looks like, > > > > # syslogd -a 192.168.1.0/29 > > > > Will work and, > > > > # syslogd -a 192.168.1.1/29 > > > > Won't. > > That's the

Re: syslogd and -a

2001-07-02 Thread Crist J. Clark
On Mon, Jul 02, 2001 at 09:38:42AM +0100, David Malone wrote: > On Sun, Jul 01, 2001 at 09:20:44PM -0700, Crist J. Clark wrote: > > Hmmm... Looks like, > > > > # syslogd -a 192.168.1.0/29 > > > > Will work and, > > > > # syslogd -a 192.168.1.1/29 > > > > Won't. > > That's the standard beh

Re: syslogd and -a

2001-07-02 Thread David Malone
On Sun, Jul 01, 2001 at 09:20:44PM -0700, Crist J. Clark wrote: > Hmmm... Looks like, > > # syslogd -a 192.168.1.0/29 > > Will work and, > > # syslogd -a 192.168.1.1/29 > > Won't. That's the standard behaviour of a netmask, isn't it? The usual way to check if host h is in network/netmask

Re: syslogd and -a

2001-07-01 Thread Riccardo Torrini
On 02-Jul-01 (04:20:44/GMT) Crist J. Clark wrote: >> It seems the -a option for syslogd does not work 100%. > Hmmm... Looks like, > # syslogd -a 192.168.1.0/29 > Will work and, > # syslogd -a 192.168.1.1/29 > Won't. Under 4.3-STABLE is the same. To capure log from router I added (in rc.con

Re: syslogd and -a

2001-07-01 Thread Crist J. Clark
On Sun, Jul 01, 2001 at 11:41:25PM -0400, David Hill wrote: > Hello - > > It seems the -a option for syslogd does not work 100%. > I need to log from hosts from 192.168.1.1-.6 > > doing "/usr/sbin/syslogd -a 192.168.1.1/29" does not work (nothing gets logged) > > but, if i do > > /usr/sbin/sys

syslogd and -a

2001-07-01 Thread David Hill
Hello - It seems the -a option for syslogd does not work 100%. I need to log from hosts from 192.168.1.1-.6 doing "/usr/sbin/syslogd -a 192.168.1.1/29" does not work (nothing gets logged) but, if i do /usr/sbin/syslogd -a 192.168.1.1/32 -a 192.168.1.2/32, etc... that works can anyone try this