summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2015-12-16netlink: BUG() if we don't have parent informationThomas Graf
This would indicate that we hang a TC object to the tree root. Signed-off-by: Thomas Graf <tgraf@suug.ch>
2015-12-16netlink: Use ifindex of parent TC object when searching leaf qdiscsThomas Graf
The qdisc cache is host wide, the parent classid is not unique so the ifindex of the parent tc object must be set in the filter otherwise a leaf qdisc with an identical parent id in another device can be mistaken. This also converts the class_cache to be passed up through the stack to make clear it is not system wide but specific to the ifindex we are currently handling. Signed-off-by: Thomas Graf <tgraf@suug.ch>
2015-12-16bmon: Mark attr_def_free() and __lookup_element() staticThomas Graf
Fixes sparse warnings: attr.c:114:6: warning: symbol 'attr_def_free' was not declared. Should it be static? element.c:116:16: warning: symbol '__lookup_element' was not declared. Should it be static? Signed-off-by: Thomas Graf <tgraf@suug.ch>
2015-12-16bmon: Properly pass NULL pointers instead of 0Thomas Graf
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2015-12-16bmon: Remove dead code and make sig_exit() staticThomas Graf
Fixes sparse warnings: bmon.c:36:5: warning: symbol 'do_quit' was not declared. Should it be static? bmon.c:37:5: warning: symbol 'is_daemon' was not declared. Should it be static? bmon.c:91:12: warning: symbol 'sig_int' was not declared. Should it be static? bmon.c:98:6: warning: symbol 'sig_exit' was not declared. Should it be static? Signed-off-by: Thomas Graf <tgraf@suug.ch>
2015-12-16curses: Pass in proper NULL pointerThomas Graf
Fix sparse warning: out_curses.c:433:25: warning: Using plain integer as NULL pointer Signed-off-by: Thomas Graf <tgraf@suug.ch>
2015-12-16curses: Make float2str staticThomas Graf
Fix sparse message: out_curses.c:140:6: warning: symbol 'float2str' was not declared. Should it be static? Signed-off-by: Thomas Graf <tgraf@suug.ch>
2015-11-15Merge pull request #30 from tklauser/ip6-link-statsThomas Graf
Add additional IPv6 link stats
2015-08-06Add additional IPv6 link statsTobias Klauser
Hook up additional IPv6 link statistics counters available since libnl v3.2.25. Also add compatibility defines, so bmon can still be compiled against older libnl versions. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-07-25Update copyrightThomas Graf
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2015-07-25netlink: Only disable TC stats if QoS is not available in kernelThomas Graf
Up to now, the entire Netlink module was disable if QoS statistics were not available. Merely disable TC stats themselves but continue using the input module. Reported-by: Wen Chiu <Wen.Chiu@brocade.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
2015-06-30format: Don't print error message for unavailable attributesThomas Graf
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2015-05-31Fix wrong unit displayed when using "--use-bit" optionChocobo1
2015-05-31Fix inconsistency in format module exampleChocobo1
2015-04-30Explicitly include linux/if.h to fix cross-compile errorTobias Klauser
When compiling bmon with the Linaro 2014.01 ARM toolchain (gcc-linaro-arm-linux-gnueabihf-4.8-2014.01_linux) the following compile error occurs: in_netlink.c: In function ‘do_link’: in_netlink.c:688:53: error: ‘IFF_UP’ undeclared (first use in this function) Fix it by explicitly including linux/if.h, where IFF_UP is defined. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2015-01-19using `cfg_setint` is triggering an assertion in confuse library, should use ↵Chocobo1
`cfg_setbool` instead
2014-12-16BSD: Provide minimal interface informationThomas Graf
Including: - MTU - Metric - RX/TX IRQ Quota Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-25build: Enable -WallThomas Graf
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-25Annotate unused variablesThomas Graf
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-25Initialize t to silence uninit warningThomas Graf
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-25Remove unused write_column() functionThomas Graf
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-25Remove unused variablesThomas Graf
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-24curses: Handle out of memory return value of of vasprintf()fixesThomas Graf
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-24proc: Silence warning of unhandled fgets() return valueThomas Graf
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-24element: Remove unneeded condition, element is always member of groupThomas Graf
Fixes: CID 49003 Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-24utils: Fix copy_timestamp() accuracyThomas Graf
Fixes: CID 49000 Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-24curses: Check if value is provided for ngraphThomas Graf
Fixes: CID 49001 Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-24proc: Fix leakage of fd if element lookup failedThomas Graf
Fixes: CID 49002 Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-24Fix uint64_t printf modifiersThomas Graf
Reported by clang. Repo compiles cleanly with clang at this point. Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-08-24curses: Fix '?' to toggle quick helpThomas Graf
Previously, pressing '?' only made the quick help appear but not disappear again. Reported-by: Bill [github id "broomdodger"] Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-07-20bmon: unlink list element from list before xfree()Žilvinas Valinskas
2014-07-06conf: Read global config from $(sysconfdir)/bmon.confThomas Graf
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-06-05Fix spelling.Žilvinas Valinskas
Signed-off-by: Žilvinas Valinskas <zilvinas.valinskas@gmail.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-06-02osx: fix remaining compiler warningsŽilvinas Valinskas
Signed-off-by: Žilvinas Valinskas <zilvinas.valinskas@gmail.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-06-02osx: read interfaces, counters & etc.Žilvinas Valinskas
Signed-off-by: Žilvinas Valinskas <zilvinas.valinskas@gmail.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-06-02osx: Import src/in_sysctl.c from bmon v2.0.1.Žilvinas Valinskas
Signed-off-by: Žilvinas Valinskas <zilvinas.valinskas@gmail.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-06-02osx: bmon v3.2 compiles and linksŽilvinas Valinskas
Signed-off-by: Žilvinas Valinskas <zilvinas.valinskas@gmail.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-05-08unit: Do not cache unit divisor list resultThomas Graf
Now that we support multiple divisor variants caching no longer makes sense Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-05-08curses: only initialize curses module if actually being usedThomas Graf
Fixes display problems with plain ascii output Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-05-08Add -b / --use-bit option to display rates in bit/s instead of bytes/sThomas Graf
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-05-08conf: Correctly terminate default config with CFG_END()Thomas Graf
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-05-06ascii: Initialize prec variablesThomas Graf
Ensure that branching does not leave behind uninitialized variables Reported-by: dcb314 Signed-off-by: Thomas Graf <tgraf@suug.ch>
2014-05-06Merge pull request #8 from valinskas/zv/bmon-sigsegvThomas Graf
Fixes 'bmon -i dummy:randomize' SIGSEGV
2014-05-01Fixes 'bmon -i dummy:randomize' SIGSEGVŽilvinas Valinskas
Reverse 'value' and 'type' parameters order in dummy_parse_opt() function.
2014-04-30Fix spelling of Packets.Andrew McCarthy
2013-10-05man page corrections (lintianisation) + spelling:Dmitry Smirnov
* hyphen-used-as-minus-sign * spelling-error-in-binary usr/bin/bmon childs children
2013-07-13module: Support auto enabling and enforce single registration of moduleThomas Graf
Enforces a single registration of a module with a subsystem. module_register() now returns -EBUSY if module is already registered. Adds support for BMON_MODULE_AUTO to flag modules that should be autoloaded upon the first call to module_set(). Loading will succeed if the probe() function succeeds.
2013-07-13curses: Use RARROW to mark selected itemThomas Graf
2013-07-05Initial importThomas Graf