If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:nltest

From BoxMatrix
(Redirected from nltest)


BoxMatrix >> Shell-Commands >> nltest @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

Startup-Scr Hotplug-Scr BusyBox-Cmds Bash-Cmds AVM-Cmds Chipset-Cmds Linux-Cmds Shared-Libs Kernel-Mods Research

AVM-Command

Goto:   Examples  -  Endpoints  -  Events  -  Source  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

nltest is a test daemon to list or manipulate the MDB or FDB databases by aicmd.
It's also a (nl) test for the Netlink-Sockets NETLINK_ROUTE and NETLINK_GENERIC.

The FDB is the Forwarding Database containing relations like:

<mac-addr> via <bridge> on <port> [permanent] [master]

The MDB is the Multicast group Database containing relations like:

<ip-addr> via <device> on <bridge> [permanent]

See also the bridge command and the bridge(8) man page.

fw 7.39 help:

root@fritz:/var/mod/root# nltest -?

usage: nltest [options]

options:
  -?                 - print this help
  -D STRING          - switch debug logs on. (FUNC)
  -z                 - run in background. (NOTSET)
  -b                 - listen for fdb/mdb changes via netlink. (NOTSET)
  -s                 - stop daemon. (NOTSET)

Examples

Only if the server is not running on fw 7.39:

root@fritz:/var/mod/root# nltest

16: nlctrl           ver 2 hdrsiz 0 maxattr 7  mcast 16 (notify)
19: thermal_event    ver 1 hdrsiz 0 maxattr 1  mcast 2 (thermal_mc_grp)
20: tcp_metrics      ver 1 hdrsiz 0 maxattr 12
21: switch           ver 1 hdrsiz 0 maxattr 24
22: l2tp             ver 1 hdrsiz 0 maxattr 34 mcast 3 (l2tp)
23: pcp              ver 1 hdrsiz 0 maxattr 24 mcast 4 (pcpannounce)

If the server is running you get the same on fw 7.39 calling:

root@fritz:/var/mod/root# aicmd nltest ewnwlinux show genetlink

16: nlctrl           ver 2 hdrsiz 0 maxattr 7  mcast 16 (notify)
19: thermal_event    ver 1 hdrsiz 0 maxattr 1  mcast 2 (thermal_mc_grp)
20: tcp_metrics      ver 1 hdrsiz 0 maxattr 12
21: switch           ver 1 hdrsiz 0 maxattr 24
22: l2tp             ver 1 hdrsiz 0 maxattr 34 mcast 3 (l2tp)
23: pcp              ver 1 hdrsiz 0 maxattr 24 mcast 4 (pcpannounce)

You can also call aicmd l2tpv3d ewnwlinux show genetlink independently of nltest and on pre 7.39 firmware.
More info in the NETLINK_GENERIC article.

Run nltest as daemon on fw 7.39:

root@fritz:/var/mod/root# nltest -z

1970-01-01 13:41:38 nltest[2749]: ready (1sec)

Endpoints

aicmd endpoint(s) provided by nltest, with these functions: (fw 7.39)

root@fritz:/var/mod/root# aicmd nltest

# provided by nltest: - fw 7.39+

HELP                                     - show help
SLABDUMP                                 - show slab allocation
SLABSHOW                                 - show slab information
QUIT                                     - disconnect
 
fdb                                      - fdb <add/del> <mac> <port> [permanent] [master]
mdb                                      - mdb <add/del> <ip addr> <port> <bridge> [permanent]
show fdb [dev]                           - show fdb [dev bridge] [port port]
show mdb [dev]                           - show mdb [dev bridge] [port port]

# provided by libewnwlinux.so: - fw 7.01+

ewnwlinux show csockshell                - show shells running
ewnwlinux show genetlink                 - show gerneric netlink families

# provided by libewnwlinux.so: - fw 7.90+

ewnwlinux netlink show                   - show internal information
ewnwlinux netlink getroute [address]     - get route for inet address
ewnwlinux netlink interfaces             - show interfaces
ewnwlinux netlink routes [ 4 | 6 ]       - show routes

# provided by libavmcsock.so: - fw 7.01+

avmcsock show csock                      - show all csock
avmcsock show dnsconfig                  - show all dns context
avmcsock show timercb                    - show all timer
avmcsock show debughandles               - show all debughandles
avmcsock show cprocess                   - show all processes
avmcsock set debug                       - set debug flags

# provided by libavmcsock.so: - fw 7.29+

avmcsock show cbcontext                  - show all cbdata
avmcsock show daemon                     - show daemon status
avmcsock show cbuf                       - show cbuf status

# provided by libavmcsock.so: - fw 7.39+

avmcsock getsymbol <address>             - get symbol for address
avmcsock show dnsglobal                  - show all dns global values
avmcsock show dnscache                   - show cache
avmcsock show dnsqueries                 - show all pending queries
avmcsock show avmipc [endpoint shmatch]  - show avmipc events and states
avmcsock ctimer show                     - show all timer
avmcsock ctimer overview                 - show ctimer overview
avmcsock iotrace format unctrl|hexdump   - set format for csock iotrace
avmcsock iotrace file                    - enable iotrace to file
avmcsock iotrace enable                  - enable iotrace via debugmsg
avmcsock iotrace disable                 - disable iotrace
avmcsock iotrace match help|<match>      - show allowed matches or set match
avmcsock iotrace reset                   - remove all matches
avmcsock iotrace show                    - show configuration

# provided by libavmcsock.so: - fw 7.90+

avmcsock show signals                    - show signal handler
avmcsock show connector [cache|stats]    - show connector information
avmcsock show clogger                    - show clogger information
avmcsock set clogmod [ <module> [ '.' <submodule ] ... ] [ '=' <level> ]
                                         - set clogmod log level
avmcsock slab check                      - red zone/free check
avmcsock slab reap [heavy]               - call slab_reap/slab_reap_heavy
avmcsock slab dump [long]                - show slab allocation
avmcsock slab show                       - show slab information
avmcsock slab ewma [show|activate|deactivate|reset]
                                         - show average allocates/freed per second
avmcsock avmipc notifier [endpoint shmatch]
                                         - show registered notifier
avmcsock avmipc set [endpoint shmatch]   - show states/events sent
avmcsock avmipc csv [endpoint shmatch]   - show states/events sent and listing as csv

Events

Daily updated index of AVM-Events and AVMIPC-Datastore nodes affecting this command. Last update: 2023-12-10 05:13 GMT.
The owners of Event-Sinks and Event-Sources are manual research, which may be incomplete or even wrong.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.
A ** in the Mod column marks info from Supportdata2 probes, which by their nature will stay way more incomplete.
A - in the Mod column marks manual research, the Firmware then shows where the item occurs, not the Relation.

Relation Typ Object Mod Firmware Info Origin
Netlink family NETLINK_GENERIC 1** 7.39 Generic Netlink (genetlink) family for simplified netlink usage (#16) Linux
Multicast group AVMGGRP_NLCTRL_NOTIFY 1** 7.39 Notification about changes in subscribed genetlink groups AVM
Netlink family NETLINK_ROUTE 1** 7.39 Communication channel between routing dæmons and the kernel packet forwarding (#0) Linux
Multicast group RTMGRP_IPV4_IFADD 1** 7.39 IPv4 address change of a Network-Interface Linux
Multicast group RTMGRP_IPV4_ROUTE 1** 7.39 IPv4 Routing Table change Linux
Multicast group RTMGRP_IPV6_IFADDR 1** 7.39 IPv6 address change of a Network-Interface Linux
Multicast group RTMGRP_IPV6_ROUTE 1** 7.39 IPv6 Routing Table change Linux
Multicast group RTMGRP_LINK 1** 7.39 Creation / deletion or up / down change of a Network-Interface. Linux
Multicast group RTMGRP_NOTIFY 1** 7.39 Enable notification about changes in subscribed rtnetlink groups Linux
Multicast group RTMGRP_TC 1** 7.39 Packet Scheduler Traffic Control change Linux
10 event relations for this command

Source

The names of source files compiled into an executable often help to understand function blocks (and show gaps in the docs).
fw 7.39 source files:

$ strings /bin/nltest | grep -e '\.c$' -e '\.cpp$'

<empty>  

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-12-07 07:42 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
Depends on lib ld.so 11 7.39 - 7.90 Dynamic linker / loader Linux
Depends on lib libavmcsock.so 28 7.39 - 7.90 Networking, I/O and helper functions AVM
Depends on lib libavmwdt.so 15 7.90 AVM-Watchdogs management API AVM
Depends on lib libc.so 28 7.39 - 7.90 Standard C library Linux
Depends on lib libdl.so 5 7.39 - 7.90 Dynamic linking library Linux
Depends on lib libewnwlinux.so 28 7.39 - 7.90 Linux networking functions AVM
Depends on lib libpthread.so 5 7.39 - 7.90 POSIX threading library Linux
Depends on lib librt.so 5 7.39 - 7.90 POSIX realtime extensions library Linux
Depends on lib libsvctl.so 28 7.39 - 7.90 supervisor notification library AVM
Depends on lib libwdt.so 25 7.39 - 7.70 AVM-Watchdogs management API AVM
Depends on lib libz.so 28 7.39 - 7.90 Zlib compressor / decompressor Linux
11 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2024-12-07 05:43 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom/rtl) label in the Model column shows which CPU is meant for Multi-Linux models.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size
FRITZ!Box 4040 7.39 - 7.90 /bin 13.5k - 13.6k
FRITZ!Box 4050 7.90 /bin 13.6k
FRITZ!Box 4060 7.39 - 7.90 /bin 13.5k - 13.6k
FRITZ!Box 5530 Fiber (main) 7.39 - 7.70 /bin 14.4k
FRITZ!Box 5590 Fiber (main) 7.39 - 7.90 /bin 13.5k - 13.6k
FRITZ!Box 6490 Cable (atom) 7.39 - 7.51 /bin 13.4k
FRITZ!Box 6590 Cable (atom) 7.39 - 7.51 /bin 13.4k
FRITZ!Box 6591 Cable (atom) 7.39 - 7.90 /bin 17.6k - 17.7k
FRITZ!Box 6660 Cable (atom) 7.39 - 7.90 /bin 17.6k - 17.8k
FRITZ!Box 6670 Cable (atom) 7.90 /bin 17.8k
FRITZ!Box 6690 Cable (atom) 7.39 - 7.90 /bin 17.6k - 17.8k
FRITZ!Box 6820 LTE v1 (main) 7.51 /bin 14.5k
FRITZ!Box 6820 LTE v2 (main) 7.51 /bin 14.5k
FRITZ!Box 6820 LTE v3 (main) 7.51 /bin 14.5k
FRITZ!Box 6850 LTE 7.39 - 7.90 /bin 13.5k - 14.4k
FRITZ!Box 6850 5G 7.39 - 7.90 /bin 13.5k - 13.6k
FRITZ!Box 6890 LTE (main) 7.39 - 7.51 /bin 14.4k
FRITZ!Box 6890 LTE v1 (main) 7.39 - 7.51 /bin 14.4k
FRITZ!Box 6890 LTE v2 (main) 7.39 - 7.51 /bin 14.4k
FRITZ!Box 7490 (main) 7.51 /bin 14.5k
FRITZ!Box 7510 7.39 - 7.90 /bin 13.5k - 13.6k
FRITZ!Box 7520 7.39 - 7.51 /bin 13.5k
FRITZ!Box 7520 v2 (main) 7.39 - 7.90 /bin 13.5k - 13.6k
FRITZ!Box 7530 7.39 - 7.90 /bin 13.5k - 13.6k
FRITZ!Box 7530 AX 7.39 - 7.70 /bin 13.6k - 13.7k
FRITZ!Box 7590 (main) 7.39 - 7.90 /bin 14.4k - 14.5k
FRITZ!Box 7590 AX (main) 7.39 - 7.70 /bin 14.4k
FRITZ!Box 7690 7.90 /bin 13.6k
28 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-12-07 07:42 GMT.

Firmware Symbol
7.39 - 7.90 main
1 symbol for this command

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

n