30 Commits

Author SHA1 Message Date
Alarig Le Lay
5c32090035
bin/asstatd.pl: parse_sflow: switching to RFC2863 ifIndex 2021-10-27 22:28:45 +02:00
schadom
3b4c4075db
Fix syntax error 2021-02-06 01:22:53 +01:00
Alexandre Bruyelles
696037ef08
netflowv9: always try to map IP to ASN
Some netflow agents truncates 32b ASN to a 16b fields
Always checking the received ASN against our mapping should fix
that issue

Signed-off-by: Alexandre Bruyelles <git@jack.fr.eu.org>
2021-01-08 11:45:13 +01:00
Alexandre Bruyelles
ca26c5a179
do not import inet_pton, we never use it
Signed-off-by: Alexandre Bruyelles <git@jack.fr.eu.org>
2018-08-04 23:41:51 +02:00
Alexandre Bruyelles
761520b725
netflow_v9: support ip2asn mapping for ipv4 as well
Signed-off-by: Alexandre Bruyelles <abruyelles@odiso.com>
2018-07-16 20:32:01 +02:00
Raf
fc8e8e8683 Use ip2asn to provide a workaround for CSCuf86015 in NetFlow v9 2018-05-12 15:18:32 +02:00
jack
2017097b30
Fix typo
Signed-off-by: jack <jack@k-net.pro>
2017-04-02 14:08:17 +02:00
jack
d0599e60ae
Support optional IP to ASN mapping for sFlow
Signed-off-by: jack <jack@k-net.pro>
2017-03-16 15:54:06 +01:00
jack
c447f9d096
Support optional IP to ASN mapping for netflow v5
Signed-off-by: jack <jack@k-net.pro>
2017-03-10 15:11:05 +01:00
jack
84931f2eca Don't set asn as value, but key, thanks manuelkasper
Signed-off-by: jack <jack@k-net.pro>
2017-01-20 20:44:05 +01:00
jack
79abab60d3 sFlow: handle multiple ASN, if you want to merge the statistics when you own more than a single network
Signed-off-by: jack <jack@k-net.pro>
2017-01-19 15:02:21 +01:00
jack
d649faf8d8 Forgot that code ..
Signed-off-by: jack <jack@k-net.pro>
2016-11-18 17:44:24 +01:00
jack
fc940ce20f Support extendedflow
Signed-off-by: jack <jack@k-net.pro>
2016-11-18 17:39:27 +01:00
Shane Mc Cormack
586e5f2d2c Allow separate samplerates for in/out traffic 2016-04-15 15:13:24 +01:00
Manuel Kasper
ac2faaf01b peer-as improvements
* add warning when trying to use peer-as stats with NetFlow
* slightly optimize packet handling when peer-as is disabled
* default peer-as stats to disable
2014-09-11 14:59:24 +02:00
jack
705fc9c262 store peer-as data 2014-06-25 17:05:29 +02:00
jack
0063facbb8 add the forgotten 'type' in recursive handflow() 2014-06-25 16:17:06 +02:00
jack
a7ccd7568d wait for children before exit; avoid a 'socket already used' issue on restart; 2014-06-25 15:32:19 +02:00
jack
cf5a549db0 Revert "wait for children before exit; avoid a 'socket already used' issue on restart;"
This reverts commit 86ddfe44b48afd55f741c6bcce91a2e5627d80a4.
2014-06-25 15:28:07 +02:00
jack
faaec24eca Revert "store peer-as in /peeras/* (only for sFlow)"
This reverts commit 4662f2f75dab181ce05bfb60bc903704dab88b15.
2014-06-25 15:28:06 +02:00
jack
e8009e9e00 Revert "fix help info to add the 'n' switch"
This reverts commit c67e0bc0d9b5f53545a9c087126a7c2fa34dd9de.
2014-06-25 15:27:31 +02:00
jack
c67e0bc0d9 fix help info to add the 'n' switch 2014-06-20 13:53:29 +02:00
jack
4662f2f75d store peer-as in /peeras/* (only for sFlow) 2014-06-20 13:34:48 +02:00
jack
86ddfe44b4 wait for children before exit; avoid a 'socket already used' issue on restart; 2014-06-20 13:23:42 +02:00
Alexandre Bruyelles
788bdc338f flush cache on exit 2014-06-16 12:26:27 +02:00
Alexandre Bruyelles
705e1687ff fix bug: GatewayIpVersionNextHopRouter is 255.255.255.255 sometimes 2014-06-16 11:28:42 +02:00
Andre Grueneberg
b14b2ff392 Avoid warnings about undefined values 2014-06-14 20:31:07 +02:00
Andre Grueneberg
cde7650819 Corrected paramters to handleflow() 2014-06-14 20:25:58 +02:00
Andre Grueneberg
5c84c03765 Add support for multiple VLANs per ifIndex
sFlow and Netflow v9/v10 may provide VLAN information in flows, so
one can distinguish between different logical links on the same
physical connection (e.g. transit via private VLAN over IXP).
2014-06-14 20:16:05 +02:00
Manuel Kasper
1da6825579 Merge netflow/sflow-asstatd.pl into one script
Contributed by Wouter de Jong
2014-01-07 16:45:12 +01:00