[syslog-ng]Where did netmask() come from ?

Amodiovalerio Verde syslog-ng@lists.balabit.hu
Thu, 16 Oct 2003 19:50:53 +0200


This function can be found in filters.c , I found it while looking source
code to apply some patch and define new macro.

It accept ip address in the form :

127.0.0.1
192.168.10.1/255.255.255.0
192.168.10.1/24

I think it appears somewhere in version 1.5 but Balazs could confirm that.

Talking about macro and function, i've added a new macro that could be of
some interest for somebody, it's just a $CONTENT macro that expand into the
message part of a message WITHOUT the program name and the pid.

Tell me if it could be of any help to someone


Amodiovalerio [Hypo] Verde


----- Original Message -----
From: "Wayne Sweatt" <sweatt@lanl.gov>
To: <syslog-ng@lists.balabit.hu>
Sent: Thursday, October 16, 2003 7:37 PM
Subject: [syslog-ng]Where did netmask() come from ?


> I did not have a clue about this function. This should do just what I want
> in getting the logs from clients on various networks logged into different
> log directories.
> Thanks to Mr Verde!
> So when did this added netmask() function appear? Is the documentation
old?
> What version of syslog-ng/libol was this introduced in?
> Does the on-line documentation need updating?
>
> Thanks,
>
>  Wayne Sweatt
>  Sr. UNIX System Administrator
>  Comforce Technical Services
>  LANL SCC Team
>
>
>
> _______________________________________________
> syslog-ng maillist  -  syslog-ng@lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html