Bug #3128
closednetgraph7/ng_netflow does not compile
0%
Description
Adding "WANTS_NETGRAPH7" to /etc/make.conf and "options NETGRAPH7" to kernel does not provide ng_netflow, as there is no Makefile: https://github.com/DragonFlyBSD/DragonFlyBSD/tree/master/sys/netgraph7/netflow
Creating Makefile and referencing either "netflow.c" or "ng_netflow.c" results in compilation errors.
Possible to use netflow in DF 5.x?
Reference: https://en.wikipedia.org/wiki/NetFlow
Updated by aswell over 6 years ago
When attempting to compile using a Makefile that references netflow.c, there are a number of errors, shown here:
https://app.box.com/s/x4vqli09905xgomizenklkn9bddbf7er
Of note, there are several references to uma, which appears is part of FreeBSD 5.0 era memory management, and is not a part of DragonFly.
Updated by sepherosa over 6 years ago
You can replace uma w/ malloc safely.
On Fri, Apr 13, 2018 at 12:55 PM,
<bugtracker-admin@leaf.dragonflybsd.org> wrote:
Issue #3128 has been updated by aswell.
When attempting to compile using a Makefile that references netflow.c, there are a number of errors, shown here:
https://app.box.com/s/x4vqli09905xgomizenklkn9bddbf7erOf note, there are several references to uma, which appears is part of FreeBSD 5.0 era memory management, and is not a part of DragonFly.
----------------------------------------
Bug #3128: netgraph7/ng_netflow does not compile
http://bugs.dragonflybsd.org/issues/3128#change-13406
- Author: aswell
- Status: New
- Priority: Normal
- Assignee:
- Category: Kernel
- Target version: 5.0.0
----------------------------------------
Adding "WANTS_NETGRAPH7" to /etc/make.conf and "options NETGRAPH7" to kernel does not provide ng_netflow, as there is no Makefile: https://github.com/DragonFlyBSD/DragonFlyBSD/tree/master/sys/netgraph7/netflowCreating Makefile and referencing either "netflow.c" or "ng_netflow.c" results in compilation errors.
Possible to use netflow in DF 5.x?
Reference: https://en.wikipedia.org/wiki/NetFlow
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account
--
Tomorrow Will Never Die
Updated by aswell over 6 years ago
sepherosa wrote:
You can replace uma w/ malloc safely.
Correction: It is possible to replace uma w/ malloc safely.
Out of my area of expertise, have fixed some bad path statements and attempted to correct some syntax errors to get it to compile, but more or less just reporting a bug.
Was hoping to use netflow to gather metrics for a personal project, may contract someone to fix later if it turns into a commercial project.
Thanks for the feedback.
Updated by aswell over 6 years ago
aswell wrote:
Was hoping to use netflow to gather metrics for a personal project...
FYI- Using DF on an Atom box as a router/firewall and ntp/dhcp/dns server for a LAN in place of OPNsense/pfSense and was attempting this: https://forums.freebsd.org/threads/howto-monitor-network-traffic-with-netflow-nfdump-nfsen-on-freebsd.49724/
Updated by aswell over 6 years ago
- Status changed from New to Closed
After further research, and a brief exchange with Nuno Antunes, it seems getting ng_netflow working is not worth pursuing.
A brief search of the DF mailing list archives showed only a few inquiries related to ng_netflow availability in DF, and further research has shown there are similar tools available which offer more robust functionality and wider adoption and support, therefore interest for ng_netflow support in DF is not likely to grow.