Questions tagged [netlink]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
145 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 ...
user avatar
0 votes
1 answer
215 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-...
user avatar
0 votes
1 answer
137 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 ...
user avatar
0 votes
0 answers
24 views

Prevent Kernel from device binding until a response

I want to write somethings like udev in Linux. I know that udev uses Netlink socket to receive uevets from the kernel. so I can do this by defining a socket with AF_NETLINK type and listen to kernel ...
user avatar
  • 1
0 votes
1 answer
237 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 ...
user avatar
  • 477
3 votes
1 answer
536 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, ...
user avatar
1 vote
0 answers
169 views

Systemd netlink socket activation with custom netlink module

I have a custom netlink kernel module with netlink family ID 22. This module delivers raw bytes from a serial bus to user space applications. Communication through sockets works fine. I want to make ...
user avatar
0 votes
1 answer
556 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.
user avatar
  • 467
1 vote
1 answer
544 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 ...
user avatar
  • 1,263