As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [netlink]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
72 views

How does udev talk to daemons like NetworkManager?

On udev wiki page, it has this picture: Kernel -> udev -> NetworkManager <-> DBus <-> Firefox. Kernel sends uevents to udevd via netlink sockets. NetworkManager talks to Firefox via ...
QnA's user avatar
  • 515
1 vote
0 answers
14 views

Advertising VXLAN learned MACs into a different namespace

I would like to run a l2 evpn (vxlan) bgp speaker in a different namespace and advertise the learned addresses into another namespace. In building the following topology, the BGP daemon populates the ...
Alex Turner's user avatar
0 votes
0 answers
48 views

Route origin: ``RTPROT_BOOT`` vs. ``RTPROT_STATIC``

Setting up routes I need to supply a value for .rtm_protocol: struct rtmsg { … unsigned char rtm_protocol; /* Routing protocol; see below */ … }; According to rtnetlink(7) the meanings of ...
phg's user avatar
  • 1,692
0 votes
0 answers
481 views

Illegal "match" error when applying Linux tc, u32 filters mask

I want apply the following rules for TOS based traffic shaping. All rules works but the final rule which mask the IP header shows illegal "match" error sudo tc qdisc del dev tun0 root handle ...
Javad Rahimi's user avatar
1 vote
1 answer
664 views

Is there an in-kernel way to debug netlink protocol communications?

Netlink (as in, the kernel internal protocol) seems to be very difficult to debug without additional tools - which I can't actually use because I'm on a very confined embedded system. Is there an in-...
David Roberts's user avatar
0 votes
1 answer
312 views

Retrieve "managed" flag of router advertisement from build-in IPv6 SLAAC support

The linux kernel has support for IPv6 SLAAC (stateless address auto-configuration) and is able to process received router advertisement messages. BUT: As much as I can understand, the kernel is not ...
FooBaron's user avatar
0 votes
1 answer
470 views

How to determine active/passive end of TCP connection

If I inspect information about established TCP connections as returned by sock_diag(7) (or in /proc/net/tcp), how can I determine whether a given connection originated with the local side owning the ...
Drux's user avatar
  • 537
3 votes
1 answer
865 views

What could cause AF_NETLINK socket transactions to take many seconds?

My problem AF_NETLINK queries to the kernel intermittently take many seconds before being answered, for example in this strace trace: 10:42:38.864353 socket(AF_NETLINK, SOCK_RAW|SOCK_CLOEXEC, ...
Guntram Blohm's user avatar
0 votes
1 answer
1k views

Linux ss to inspect netlink socket, what does 'Local Address' and 'Port' mean?

What do Local Address and Port mean in ss -f netlink output? I was expecting the -n numeric version Local Address to be pid but they do not seem to match.
QnA's user avatar
  • 515
1 vote
1 answer
750 views

Decode netlink message for veth device creation in Linux

I want to understand the netlink messages exchanged with the kernel when I run the following commmand to create a pair of veth devices (I am using Ubuntu 16.04): $ sudo ip link add veth1 type veth ...
Jake's user avatar
  • 1,293