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.



From BoxMatrix
(Redirected from NETLINK GENERIC)

BoxMatrix >> System >> NETLINK_GENERIC @ 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

Devices Filesystems Partitions Sockets Netlink Pipes Interfaces Bridges Ports Events Sources Sinks AVMIPC Processes Watchdogs Memory Slab Vmalloc ProcFS SysFS Research


Goto:   FRITZ!OS  -  Examples  -  Dependencies   -   Model-Matrix   -   Help Supportdata2   -   SMW-Browser


NETLINK_GENERIC is a family of Netlink-Sockets defined in include/uapi/linux/netlink.h (blame, raw).
It is an interface to the Generic Netlink (genetlink) family for simplified netlink usage.

Excerpt from the netlink(7) man page:

NETLINK_GENERIC (since Linux 2.6.15)

    Generic netlink family for simplified netlink usage.

See also the Generic Netlink Howto.



In fw 7.14 AVM started to add the libnl-3.so netlink socket API suite to FRITZ!OS.
It includes libnl-genl-3.so to handle genetlink sockets, used by many third party commands.

See also the Netlink Protocol Library Suite (libnl) docs.


In fw 5.55 AVM implemented genetlink functions in libewnwlinux.so:

  • genetlink_init
  • genetlink_poll   -   used by l2tpv3d (5.55+) and libavmpcp.so (7.39+)
  • genetlink_exit
  • genetlink_is_exit_complete

In fw 6.10 they added:

In fw 6.98 they added:

  • genetlink_add_membership   -   only used by libavmpcp.so.
  • genetlink_dump_families   -   used by nltest (7.39+) and library internal for this aicmd enhancement:
aicmd <daemon> ewnwlinux show genetlink 

This lists all generic netlink families registered through libewnwlinux.so from aicmd listeners which use this library.
This only works if the respective listener has an open genetlink csock, otherwise the list is empty. This could be queried:

aicmd <daemon> avmcsock show csock | grep genetlink

The most reliable and box mode independent aicmd listener capable to list genetlink sockets is l2tpv3d.


fw 7.39 example:

root@fritz:/var/mod/root# aicmd l2tpv3d 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)


Daily updated index of all dependencies of this netlink family. Last update: 2022-09-30 05:23 GMT.
A ** in the Mod column marks info from Supportdata2 probes, which will always stay incomplete.
A - in the Mod column marks manual research, the Firmware then shows where the Object occurs, not the Relation.

Relation Typ Object Mod Firmware Info Group
Kernel cmd (kernel) 7** 6.88 - 7.39 Dummy representing the Linux kernel 0x00000000
Multicast cmd (unknown) 1** 7.01 Dummy unresolvable command 0x00000004
Multicast cmd (unknown) 1** 7.29 Dummy unresolvable command 0x00000008
Multicast cmd (unknown) 1** 6.88 Dummy unresolvable command 0xFFFFFFFF
Multicast cmd (unknown) 4** 7.01 - 7.29 Dummy unresolvable command AVMGGRP_NLCTRL_NOTIFY
Multicast cmd ctlmgr (avmcmd) 1** 7.01 System meta daemon also serving the Webinterface. 0x00000004
Multicast cmd ctlmgr (avmcmd) 1** 7.29 System meta daemon also serving the Webinterface. 0x00000008
Multicast cmd ctlmgr (avmcmd) 1** 6.88 System meta daemon also serving the Webinterface. 0xFFFFFFFF
Multicast cmd ctlmgr (avmcmd) 2** 7.01 - 7.29 System meta daemon also serving the Webinterface. AVMGGRP_NLCTRL_NOTIFY
Multicast cmd l2tpv3d (avmcmd) 1** 7.39 Layer 2 tunneling protocol v3 daemon. AVMGGRP_NLCTRL_NOTIFY
Multicast cmd multid (avmcmd) 1** 7.01 LAN management daemon. 0x00000004
Multicast cmd multid (avmcmd) 1** 7.29 LAN management daemon. 0x00000008
Multicast cmd multid (avmcmd) 1** 6.88 LAN management daemon. 0xFFFFFFFF
Multicast cmd multid (avmcmd) 2** 7.01 - 7.29 LAN management daemon. AVMGGRP_NLCTRL_NOTIFY
Multicast cmd nltest 1** 7.39 Netlink MDB / FDB test daemon. AVMGGRP_NLCTRL_NOTIFY
Multicast cmd pcpd (avmcmd) 1** 7.01 Port Control Protocol (PCP) daemon. 0x00000004
Multicast cmd pcpd (avmcmd) 1** 7.29 Port Control Protocol (PCP) daemon. 0x00000008
Multicast cmd pcpd (avmcmd) 1** 6.88 Port Control Protocol (PCP) daemon. 0xFFFFFFFF
Multicast cmd pcpd (avmcmd) 2** 7.01 - 7.29 Port Control Protocol (PCP) daemon. AVMGGRP_NLCTRL_NOTIFY
19 dependencies for this netlink family


Daily updated index of the presence, path and size of this netlink family for each model. Last update: 2022-09-30 05:23 GMT.
Showing all models using this netlink family. 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 comes from Supportdata2 probes, which can have arbitrary settings and come from different firmware versions.
It doesn't say much if a model is not listed here. It may be a missing supportdata2 file or just a disabled feature.

Help Supportdata2

The data in this article is incomplete since it was manually collected using the Supportdata2 project.

Unlike the Supportdata-Probes which have been collected for years Supportdata2 is brand new and only has a few probes.
If you have access to a shell then please help to extend the Supportdata2 collection to improve this data.

It's easy and it's done in minutes. Please send created data as an Email attachment to the address listed here. Thanks!


Information is currently being retrieved from the backend.


Showing 1 related property.