Lines Matching refs:snl
35 union sockaddr_union snl; member
75 union sockaddr_union snl; in monitor_set_nl_address() local
83 if (getsockname(m->sock, &snl.sa, &addrlen) < 0) in monitor_set_nl_address()
86 m->snl.nl.nl_pid = snl.nl.nl_pid; in monitor_set_nl_address()
94 m->snl_trusted_sender.nl.nl_pid = sender->snl.nl.nl_pid; in device_monitor_allow_unicast_sender()
160 .snl.nl.nl_family = AF_NETLINK, in device_monitor_new_full()
161 .snl.nl.nl_groups = group, in device_monitor_new_full()
324 if (bind(m->sock, &m->snl.sa, sizeof(struct sockaddr_nl)) < 0) in device_monitor_enable_receiving()
429 union sockaddr_union snl; in device_monitor_receive_device() local
435 .msg_name = &snl, in device_monitor_receive_device()
436 .msg_namelen = sizeof(snl), in device_monitor_receive_device()
458 if (snl.nl.nl_groups == MONITOR_GROUP_NONE) { in device_monitor_receive_device()
461 snl.nl.nl_pid != m->snl_trusted_sender.nl.nl_pid) in device_monitor_receive_device()
465 } else if (snl.nl.nl_groups == MONITOR_GROUP_KERNEL) { in device_monitor_receive_device()
466 if (snl.nl.nl_pid > 0) in device_monitor_receive_device()
468 … "sd-device-monitor: Multicast kernel netlink message from PID %"PRIu32" ignored.", snl.nl.nl_pid); in device_monitor_receive_device()
614 smsg.msg_name = destination ? &destination->snl : &default_destination; in device_monitor_send_device()
659 if (m->snl.nl.nl_groups == MONITOR_GROUP_KERNEL || in sd_device_monitor_filter_update()