diff --git a/README b/README index fccae54..9e308ab 100644 --- a/README +++ b/README @@ -1,11 +1,11 @@ -AS-Stats v1.32 (2010-08-02) +AS-Stats v1.33 (2011-01-27) a simple tool to generate per-AS traffic graphs from NetFlow/sFlow records by Manuel Kasper, Monzoon Networks AG -------------------------------------------------------------------- Changes ------- -xxx Fix for multiple entries with the same tag in the +v1.33 Fix for multiple entries with the same tag in the knownlinks file (e.g. for LACP) (contributed by Michal Buchtik) @@ -13,6 +13,11 @@ xxx Fix for multiple entries with the same tag in the synchronize the data sources of RRD files with the tags defined in the knownlinks file (contributed by Michal Buchtik) + + sflow-asstatd.pl now uses the agent IP instead of the + UDP source address - this makes it behave properly when + a proxy is being used + (contributed by Michel Moriniaux) v1.32 Fix add_ds.sh to support new directory structure (contributed by Sergei Veltistov) diff --git a/bin/sflow-asstatd.pl b/bin/sflow-asstatd.pl index 38b80db..ca7992f 100755 --- a/bin/sflow-asstatd.pl +++ b/bin/sflow-asstatd.pl @@ -94,6 +94,11 @@ while (1) { print "Warning: non-v5 packet received - not supported\n"; next; } + + # use agent IP if available (in case of proxy) + if ($sFlowDatagramRef->{'AgentIp'}) { + $ipaddr = inet_aton($sFlowDatagramRef->{'AgentIp'}); + } foreach my $sFlowSample (@{$sFlowSamplesRef}) { # only process standard structures