Questions tagged [netlink]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
88 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 ...
3
votes
1answer
160 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, ...
0
votes
0answers
10 views

How to automate non-system commands when devices connect in linux (non-system udev?)

In linux, I have a bunch of commands that I need to run in my X session when devices get connected and disconnected. For example, whenever a bluetooth keyboard is connected I want to install some key ...
0
votes
0answers
22 views

Exception occurred while trying to decode the netlink messages using decoder.py

I cloned the pyroute2 repo, and tried to decode the message obtained via the command strace -s 100 -f -o out -x ip monitor route I get the error. python tests/decoder/decoder.py pyroute2.netlink....
1
vote
0answers
75 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 ...
0
votes
1answer
204 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.
1
vote
1answer
335 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 ...