/systemd-251/src/network/ |
D | networkd-wifi.c | 21 … r = sd_genl_message_new(link->manager->genl, NL80211_GENL_NAME, NL80211_CMD_GET_INTERFACE, &req); in link_get_wlan_interface() 29 r = sd_netlink_call(link->manager->genl, req, 0, &reply); in link_get_wlan_interface() 37 return manager_genl_process_nl80211_config(link->manager->genl, reply, link->manager); in link_get_wlan_interface() 40 int manager_genl_process_nl80211_config(sd_netlink *genl, sd_netlink_message *message, Manager *man… in manager_genl_process_nl80211_config() argument 49 assert(genl); in manager_genl_process_nl80211_config() 61 r = sd_genl_message_get_family_name(genl, message, &family); in manager_genl_process_nl80211_config() 71 r = sd_genl_message_get_command(genl, message, &cmd); in manager_genl_process_nl80211_config() 77 return manager_genl_process_nl80211_wiphy(genl, message, manager); in manager_genl_process_nl80211_config() 157 int manager_genl_process_nl80211_mlme(sd_netlink *genl, sd_netlink_message *message, Manager *manag… in manager_genl_process_nl80211_mlme() argument 164 assert(genl); in manager_genl_process_nl80211_mlme() [all …]
|
D | networkd-manager.c | 225 r = sd_genl_socket_open(&m->genl); in manager_connect_genl() 229 r = sd_netlink_inc_rcvbuf(m->genl, RCVBUF_SIZE); in manager_connect_genl() 233 r = sd_netlink_attach_event(m->genl, m->event, 0); in manager_connect_genl() 237 r = genl_add_match(m->genl, NULL, NL80211_GENL_NAME, NL80211_MULTICAST_GROUP_CONFIG, 0, in manager_connect_genl() 242 r = genl_add_match(m->genl, NULL, NL80211_GENL_NAME, NL80211_MULTICAST_GROUP_MLME, 0, in manager_connect_genl() 570 sd_netlink_unref(m->genl); in manager_free() 804 assert(m->genl); in manager_enumerate_nl80211_wiphy() 806 r = sd_genl_message_new(m->genl, NL80211_GENL_NAME, NL80211_CMD_GET_WIPHY, &req); in manager_enumerate_nl80211_wiphy() 810 return manager_enumerate_internal(m, m->genl, req, manager_genl_process_nl80211_wiphy); in manager_enumerate_nl80211_wiphy() 818 assert(m->genl); in manager_enumerate_nl80211_config() [all …]
|
D | networkd-wiphy.c | 123 int manager_genl_process_nl80211_wiphy(sd_netlink *genl, sd_netlink_message *message, Manager *mana… in manager_genl_process_nl80211_wiphy() argument 130 assert(genl); in manager_genl_process_nl80211_wiphy() 142 r = sd_genl_message_get_family_name(genl, message, &family); in manager_genl_process_nl80211_wiphy() 152 r = sd_genl_message_get_command(genl, message, &cmd); in manager_genl_process_nl80211_wiphy()
|
D | networkd-wifi.h | 8 int manager_genl_process_nl80211_config(sd_netlink *genl, sd_netlink_message *message, Manager *man… 9 int manager_genl_process_nl80211_mlme(sd_netlink *genl, sd_netlink_message *message, Manager *manag…
|
D | networkd-manager.h | 23 sd_netlink *genl; member
|
D | networkd-wiphy.h | 25 int manager_genl_process_nl80211_wiphy(sd_netlink *genl, sd_netlink_message *message, Manager *mana…
|
D | networkctl.c | 680 _cleanup_(sd_netlink_unrefp) sd_netlink *genl = NULL; in acquire_wlan_link_info() 689 r = sd_genl_socket_open(&genl); in acquire_wlan_link_info() 695 (void) sd_netlink_inc_rcvbuf(genl, RCVBUF_SIZE); in acquire_wlan_link_info() 697 r = wifi_get_interface(genl, link->ifindex, &link->wlan_iftype, &link->ssid); in acquire_wlan_link_info() 702 k = wifi_get_station(genl, link->ifindex, &link->bssid); in acquire_wlan_link_info()
|
/systemd-251/src/shared/ |
D | wifi-util.c | 8 int wifi_get_interface(sd_netlink *genl, int ifindex, enum nl80211_iftype *ret_iftype, char **ret_s… in wifi_get_interface() argument 16 assert(genl); in wifi_get_interface() 19 r = sd_genl_message_new(genl, NL80211_GENL_NAME, NL80211_CMD_GET_INTERFACE, &m); in wifi_get_interface() 27 r = sd_netlink_call(genl, m, 0, &reply); in wifi_get_interface() 46 r = sd_genl_message_get_family_name(genl, reply, &family); in wifi_get_interface() 87 int wifi_get_station(sd_netlink *genl, int ifindex, struct ether_addr *ret_bssid) { in wifi_get_station() argument 92 assert(genl); in wifi_get_station() 96 r = sd_genl_message_new(genl, NL80211_GENL_NAME, NL80211_CMD_GET_STATION, &m); in wifi_get_station() 108 r = sd_netlink_call(genl, m, 0, &reply); in wifi_get_station() 120 r = sd_genl_message_get_family_name(genl, reply, &family); in wifi_get_station()
|
D | wifi-util.h | 11 int wifi_get_interface(sd_netlink *genl, int ifindex, enum nl80211_iftype *ret_iftype, char **ret_s… 12 int wifi_get_station(sd_netlink *genl, int ifindex, struct ether_addr *ret_bssid);
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | test-netlink.c | 517 _cleanup_(sd_netlink_unrefp) sd_netlink *genl = NULL; in test_array() 522 assert_se(sd_genl_socket_open(&genl) >= 0); in test_array() 523 assert_se(sd_genl_message_new(genl, CTRL_GENL_NAME, CTRL_CMD_GETFAMILY, &m) >= 0); in test_array() 539 assert_se(sd_netlink_message_rewind(m, genl) >= 0); in test_array() 591 static int genl_ctrl_match_callback(sd_netlink *genl, sd_netlink_message *m, void *userdata) { in genl_ctrl_match_callback() argument 596 assert_se(genl); in genl_ctrl_match_callback() 599 assert_se(sd_genl_message_get_family_name(genl, m, &name) >= 0); in genl_ctrl_match_callback() 602 assert_se(sd_genl_message_get_command(genl, m, &cmd) >= 0); in genl_ctrl_match_callback() 628 _cleanup_(sd_netlink_unrefp) sd_netlink *genl = NULL; in test_genl() 636 assert_se(sd_genl_socket_open(&genl) >= 0); in test_genl() [all …]
|
D | netlink-genl.c | 13 sd_netlink *genl; member 34 if (f->genl) { in genl_family_free() 36 hashmap_remove(f->genl->genl_family_by_id, UINT_TO_PTR(f->id)); in genl_family_free() 38 hashmap_remove(f->genl->genl_family_by_name, f->name); in genl_family_free() 87 f->genl = nl; in genl_family_new_unsupported() 203 f->genl = nl; in genl_family_new()
|
D | netlink-types-genl.c | 236 DEFINE_TYPE_SYSTEM_UNION_MATCH_SIBLING(genl, 0);
|
/systemd-251/src/network/netdev/ |
D | wlan.c | 101 static int wlan_create_handler(sd_netlink *genl, sd_netlink_message *m, NetDev *netdev) { in wlan_create_handler() argument 128 assert(netdev->manager->genl); in wlan_create() 130 … r = sd_genl_message_new(netdev->manager->genl, NL80211_GENL_NAME, NL80211_CMD_NEW_INTERFACE, &m); in wlan_create() 138 r = netlink_call_async(netdev->manager->genl, NULL, m, wlan_create_handler, in wlan_create()
|
D | batadv.c | 172 … r = sd_genl_message_new(netdev->manager->genl, BATADV_NL_NAME, BATADV_CMD_SET_MESH, &message); in netdev_batadv_post_create() 180 r = netlink_call_async(netdev->manager->genl, NULL, message, netdev_batman_set_handler, in netdev_batadv_post_create()
|
D | fou-tunnel.c | 96 r = sd_genl_message_new(netdev->manager->genl, FOU_GENL_NAME, FOU_CMD_ADD, &m); in netdev_create_fou_tunnel_message() 139 r = netlink_call_async(netdev->manager->genl, NULL, m, fou_tunnel_create_handler, in netdev_fou_tunnel_create()
|
D | l2tp-tunnel.c | 105 r = sd_genl_message_new(netdev->manager->genl, L2TP_GENL_NAME, L2TP_CMD_TUNNEL_CREATE, &m); in netdev_l2tp_create_message_tunnel() 196 r = sd_genl_message_new(netdev->manager->genl, L2TP_GENL_NAME, L2TP_CMD_SESSION_CREATE, &m); in netdev_l2tp_create_message_session() 396 r = netlink_call_async(netdev->manager->genl, NULL, n, l2tp_create_session_handler, in l2tp_create_session() 459 r = netlink_call_async(netdev->manager->genl, NULL, m, l2tp_create_tunnel_handler, in l2tp_create_tunnel()
|
D | macsec.c | 228 r = sd_genl_message_new(netdev->manager->genl, MACSEC_GENL_NAME, command, &m); in netdev_macsec_create_message() 349 r = netlink_call_async(netdev->manager->genl, NULL, m, macsec_receive_association_handler, in netdev_macsec_configure_receive_association() 419 r = netlink_call_async(netdev->manager->genl, NULL, m, macsec_receive_channel_handler, in netdev_macsec_configure_receive_channel() 467 r = netlink_call_async(netdev->manager->genl, NULL, m, macsec_transmit_association_handler, in netdev_macsec_configure_transmit_association()
|
D | wireguard.c | 242 … r = sd_genl_message_new(netdev->manager->genl, WG_GENL_NAME, WG_CMD_SET_DEVICE, &message); in wireguard_set_interface() 288 r = sd_netlink_send(netdev->manager->genl, message, &serial); in wireguard_set_interface()
|
/systemd-251/src/systemd/ |
D | sd-netlink.h | 241 int sd_genl_message_new(sd_netlink *genl, const char *family_name, uint8_t cmd, sd_netlink_message … 242 int sd_genl_message_get_family_name(sd_netlink *genl, sd_netlink_message *m, const char **ret); 243 int sd_genl_message_get_command(sd_netlink *genl, sd_netlink_message *m, uint8_t *ret);
|
/systemd-251/src/libsystemd/ |
D | meson.build | 136 'sd-netlink/netlink-genl.c', 137 'sd-netlink/netlink-genl.h', 145 'sd-netlink/netlink-types-genl.c',
|