Re: [pmacct-discussion] Best way to output ip addresses as integers

2017-09-04 Thread Paolo Lucente
Hi Yann, Depending on the plugin you are using there could already be a built-in or not. For the SQL plugins you have it: 'sql_num_hosts: true'; for all the others you don't but actually adapting a feature like this would be relatively easy/quick. If you use SQL plugins, specifically MySQL, you

[pmacct-discussion] Best way to output ip addresses as integers

2017-09-04 Thread Yann Belin
Hello, I need to run some checks / manipulate source/destination IP addresses that I am getting from nfacctd, and for that purpose it makes much more sense to output hose IPs in their inetger form, rather than in their human-readable (x.x.x.x) form. In order to do that, I created custom primitive