netlink Questions
2
My goal is to monitor sockets and relate them to the applications that created them.
I am aware of netstat, ss, lsof and so on and that they can list all sockets with their application.
And I also ...
Sternum asked 30/8, 2013 at 21:10
2
I was trying to write a simple program communicating between kernel and user space using Netlink. Basically here's what I wanted to achieve:
User space program starts binding to a user defined mu...
Farceuse asked 27/3, 2014 at 14:52
3
Solved
0
I've been gleaning information about the NETLINK socket which allows us to listen on what is happening in socket land. It seems to very partially work, but I'm wondering whether I missed something....
Correna asked 18/7, 2021 at 0:46
3
When I run this cmd:
tc qdisc add dev eth0 root red limit 51200000 min 128000 max 512000 avpkt 1024 burst 200 ecn probability 0.5
i get
RTNETLINK answers: No such file or directory
I have co...
2
My application does not break during Runtime. However, the following error messages always show up
E/NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
this log print continuousl...
3
Solved
I am getting compiler error while compiling my old kernel module which is using netlink functions.
int
init_module()
{
/* Initialize the Netlink kernel interface */
nl_sk = netlink_kernel_creat...
2
Solved
Can anyone help me make sense of the below error and others like it? I've Googled around, but nothing makes sense for my context. I download my Docker Image, but the container refuses to start. The...
2
I write a program which needs to get notified if the network interfaces have changed, in particular new one appeared or existed one gone. My research brought to the netlink and its RTMGRP_LINK sign...
Shue asked 18/11, 2014 at 15:46
1
Solved
I've been developing an application that monitors the USB device tree using libusb_hotplug_register_callback(). When a device that matches some criteria is attached, it will fork() and exec() an ap...
Megathere asked 9/2, 2017 at 19:13
3
Solved
2
i was going through ioctl sample programs to check how it communicates with kernel space. in program WRITE_IOCTL is used as command
#define WRITE_IOCTL _IOW(MY_MACIG, 1, int)
ioctl(fd, WRITE_IOCT...
1
Solved
Trying to figure out how one can use iproute2 to manage static label-switched MPLS routes in Linux kernel 4.1.
I am aware iproute2 support for MPLS might be incomplete right now [2].
Can anyone...
Burlie asked 10/8, 2015 at 18:13
1
Solved
I was trying to reproduce the example from a previous SO post on a kernel above 4 (4.1):
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/netlink.h>
#include &...
Amylopsin asked 8/3, 2016 at 19:28
2
Solved
I am trying to run following code, which was copied from here. I have made few changes to run it with older kernel versions.
When I insert kernel module, nlmsg_multicast() fails and logs as nlmsg...
Coulter asked 30/1, 2016 at 6:48
2
Solved
I have several kernel modules which need to interact with userspace. Hence, each module has a Netlink socket.
My problem is that these sockets interfere with each other. This is because all of the...
Saddle asked 1/10, 2015 at 23:7
2
The task I am trying to achieve is actually quite simple (multicast the string "TEST" to a userland daemon), but the kernel module doesn't compile. It stops with the error:
passing argument 4 of ‘...
Dynameter asked 8/10, 2014 at 20:4
1
I am working with Netlink sockets to send customized notifications regarding the state of an ethernet interface from a kernel module to a user space application over the NETLINK_ROUTE channel. I ha...
Caught asked 19/8, 2014 at 7:50
4
Solved
I am trying to write a linux kernel module that communicates with user process using netlink. I am using netlink because the user program I want to communicate to communicates only using sockets an...
Loganiaceous asked 21/7, 2010 at 12:51
1
Solved
I am planning to use netlink for communication between two userland processes. Part of the reason being so picky about netlink is - Most of the processing for one of the process would eventually go...
1
I tried this program. This program send "hello" to kernel and kernel replies "hello" to user space again for one time.
My requirement: user has to send "hello" and have to receive message for ever...
Cannelloni asked 25/5, 2014 at 7:2
1
Solved
I understand that Netlink is the modern and correct way to communicate kernel and userspace in Linux.
I have a kernel module that needs to be configurable, so I'm using Netlink to have it talk to ...
1
Please can someone give an simple example on how to use libnl to use nl80211.
I tried to go through iw source code but it is very confusing.
Can any one give a simple program on how to trigger nl80...
Almire asked 6/2, 2014 at 11:22
1
Solved
Good day. I would like to create two (almost same) modules - each module uses netlink socket and replies to the incoming message from userspace program.
During the initialization of the first modu...
Swats asked 12/9, 2013 at 14:32
1
Solved
I'm trying to send a struct from a LKM to userland, based on this answer: Netlink Sockets in C using the 3.X linux kernel
The code from the answer itself is perfectly compilable, but when I try to...
Apc asked 22/9, 2013 at 14:3
1 Next >
© 2022 - 2024 — McMap. All rights reserved.