Home
last modified time | relevance | path

Searched refs:genl (Results 1 – 20 of 20) sorted by relevance

/systemd-251/src/network/
Dnetworkd-wifi.c21 … 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 …]
Dnetworkd-manager.c225 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 …]
Dnetworkd-wiphy.c123 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()
Dnetworkd-wifi.h8 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…
Dnetworkd-manager.h23 sd_netlink *genl; member
Dnetworkd-wiphy.h25 int manager_genl_process_nl80211_wiphy(sd_netlink *genl, sd_netlink_message *message, Manager *mana…
Dnetworkctl.c680 _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/
Dwifi-util.c8 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()
Dwifi-util.h11 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/
Dtest-netlink.c517 _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 …]
Dnetlink-genl.c13 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()
Dnetlink-types-genl.c236 DEFINE_TYPE_SYSTEM_UNION_MATCH_SIBLING(genl, 0);
/systemd-251/src/network/netdev/
Dwlan.c101 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()
Dbatadv.c172 … 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()
Dfou-tunnel.c96 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()
Dl2tp-tunnel.c105 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()
Dmacsec.c228 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()
Dwireguard.c242 … 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/
Dsd-netlink.h241 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/
Dmeson.build136 'sd-netlink/netlink-genl.c',
137 'sd-netlink/netlink-genl.h',
145 'sd-netlink/netlink-types-genl.c',