sflow agent c code compile and execution

37 views
Skip to first unread message

Mehdi Moshiri

unread,
Jun 24, 2018, 3:05:15 AM6/24/18
to sFlow

Dear Mr./Mrs.

We need to analyse the sflow agent for research .we have problem for compile and execute the sflow agent c code(source code) that refer in this url:

https://inmon.com/technology/sflowVersion5.php#code

Could you help us?

Thanks for your kind

M.Moshiri

Peter Phaal

unread,
Jun 24, 2018, 12:43:37 PM6/24/18
to sFlow
On Sunday, June 24, 2018 at 12:05:15 AM UTC-7, Mehdi Moshiri wrote:

We need to analyse the sflow agent for research .we have problem for compile and execute the sflow agent c code(source code) that refer in this url:

https://inmon.com/technology/sflowVersion5.php#code

Could you help us?


The code depends on libpcap, so you need to install the libraries:
sudo apt-get install libpcap0.8 libpcap-dev

When I compiled the code, I needed to edit the Makefile to point to the correct path for libpcap.a on the Ubuntu 16 system:
PCAPLIB = /usr/lib/x86_64-linux-gnu/libpcap.a

The following step build the binary:
cd InMon_Agent-6.4
make

You should consider using the Host sFlow agent instead:

The Host sFlow agent is actively developed open source software with source code on github. You can download packaged binaries from the site and ask questions of the mailing list:

 
Reply all
Reply to author
Forward
0 new messages