]> git.proxmox.com Git - mirror_ovs.git/commit - ofproto/ofproto-dpif-sflow.c
sflow: Set agent address properly based on collector address.
authorJustin Pettit <jpettit@ovn.org>
Wed, 19 Sep 2018 20:25:58 +0000 (13:25 -0700)
committerJustin Pettit <jpettit@ovn.org>
Thu, 27 Sep 2018 17:57:09 +0000 (10:57 -0700)
commit5c6590ecbe00af7df1e66b879382b3b1c70d3516
tree538b67fa290aae8dc179322d0848cb031c2091e0
parent49fd74c27ce8e3d02cf65f5814404f7e109dfcbf
sflow: Set agent address properly based on collector address.

If an agent address is not provided, OVS tries to choose a source
address based on the source IP that would be used to connect to the
sFlow collector.  The code previously set the agent address to the
collector's address instead of using the calculated source address.
This patch properly uses the source address.

Reported-by: Neil McKee <neil.mckee@inmon.com>
Signed-off-by: Justin Pettit <jpettit@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
ofproto/ofproto-dpif-sflow.c