On Mon, Sep 13, 2021 at 12:29 PM Ryan McClue
wrote:
> Currently, I'm listening to NETLINK_KOBJECT_UEVENT messages with the
> following code:
>
> union UeventBuffer {
> struct nlmsghdr netlink_header;
> char raw[8192];
> };
> int sock = socket(PF_NETLINK, SOCK_RAW | SOCK_NONBLOCK,
> NETLINK_
On Mo, 13.09.21 09:29, Ryan McClue (re.mcc...@protonmail.com) wrote:
> Currently, I'm listening to NETLINK_KOBJECT_UEVENT messages with the
> following code:
Don't. Use the sd-device API from C. Or the old libudev API.
Listening to uevents directly means you either only get the kernel's
own dat
(Added list back again)
On Mon, Sep 13, 2021 at 1:55 PM Ryan McClue
wrote:
> Thank you for the response Mantas.
> If I change the nl_groups to 2, it prints libudev a handle of times and I
> then get a segfault.
> In regards to this picking up all devices: if I add/remove my Bose
> speakers conne
Currently, I'm listening to NETLINK_KOBJECT_UEVENT messages with the following
code:
union UeventBuffer {
struct nlmsghdr netlink_header;
char raw[8192];
};
int sock = socket(PF_NETLINK, SOCK_RAW | SOCK_NONBLOCK, NETLINK_KOBJECT_UEVENT);
struct sockaddr_nl addr = {};
addr.nl_family = AF_NETLINK;
The function is used.. only when HAVE_LIBCRYPTSETUP.
You either need to define it on an #ifdef HAVE_LIBCRYPTSETUP or add add an
__attribute__(__unused__) to it, then the warning will shut up and the
linker may garbage collect it later.
On Fri, Sep 10, 2021 at 12:50 PM Marcus Harrison
wrote:
>
I understand this is slightly off-topic, but I'm completely new to BPF.
Analyzing libudev source and Internet I understand the general idea. However, I
don't understand how information/what information is passed to the filter from
the socket. For example, in my case the socket payload, i.e. buf_
On Tue, Sep 14, 2021 at 4:08 AM Ryan McClue
wrote:
> I understand this is slightly off-topic, but I'm completely new to BPF.
> Analyzing libudev source and Internet I understand the general idea.
> However, I don't understand how information/what information is passed to
> the filter from the soc