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 september. 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 Gallery

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 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

Events

Daily updated index of AVM-Events and AVMIPC-Datastore nodes affecting this command. Last update: 2022-12-05 06:45 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: 2022-12-05 07:30 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 6 7.39 Dynamic linker / loader Linux
Depends on lib libavmcsock.so 22 7.39 Networking, I/O and helper functions AVM
Depends on lib libc.so 22 7.39 Standard C library Linux
Depends on lib libdl.so 7 7.39 Dynamic linking library Linux
Depends on lib libewnwlinux.so 22 7.39 Linux networking functions AVM
Depends on lib libpthread.so 7 7.39 POSIX threading library Linux
Depends on lib librt.so 7 7.39 POSIX realtime extensions library Linux
Depends on lib libsvctl.so 22 7.39 supervisor control library AVM
Depends on lib libwdt.so 22 7.39 AVM-Watchdogs management API AVM
Depends on lib libz.so 22 7.39 Zlib compressor / decompressor Linux
10 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2022-12-05 05:58 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) label in the Model column shows which CPU is meant for models with multiple Linux instances.
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 /bin 13.5k
FRITZ!Box 4060 7.39 /bin 13.5k
FRITZ!Box 6490 Cable (arm) 7.39 /bin 13.4k
FRITZ!Box 6490 Cable (atom) 7.39 /bin 13.4k
FRITZ!Box 6590 Cable (arm) 7.39 /bin 13.4k
FRITZ!Box 6590 Cable (atom) 7.39 /bin 13.4k
FRITZ!Box 6591 Cable (arm) 7.39 /bin 17.6k
FRITZ!Box 6591 Cable (atom) 7.39 /bin 17.6k
FRITZ!Box 6660 Cable (arm) 7.39 /bin 17.6k
FRITZ!Box 6660 Cable (atom) 7.39 /bin 17.6k
FRITZ!Box 6690 Cable (arm) 7.39 /bin 17.6k
FRITZ!Box 6690 Cable (atom) 7.39 /bin 17.6k
FRITZ!Box 6850 LTE 7.39 /bin 13.5k - 14.4k
FRITZ!Box 6850 5G 7.39 /bin 13.5k
FRITZ!Box 6890 LTE 7.39 /bin 14.4k
FRITZ!Box 6890 LTE v1 7.39 /bin 14.4k
FRITZ!Box 6890 LTE v2 7.39 /bin 14.4k
FRITZ!Box 7490 (main) 7.39 /bin 14.5k
FRITZ!Box 7530 7.39 /bin 13.5k
FRITZ!Box 7530 AX 7.39 /bin 13.6k
FRITZ!Box 7590 7.39 /bin 14.4k
FRITZ!Box 7590 AX 7.39 /bin 14.4k
22 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2022-12-05 07:30 GMT.

Firmware Symbol
7.39 main
1 symbol for this command

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

n