addattr_l(&req.n,sizeof(req), RTA_PRIORITY, &metric,sizeof(metric));intstatus =0;// opening the netlink socket to communicate with the kernelif(rtnl_open(&rth,0) <0){printf("cannot open rtnetlink\n");return-1; }// sending the packet to the kernel.status = rtnl_talk(&rth, &...
{if(genl_get_family_status(ACPI_EVENT_FAMILY_NAME,1) <0)return-1;if(rtnl_open_byproto(&rt_handle, nl_mgrp(acpi_event_mcast_group_id), NETLINK_GENERIC) <0) {fprintf(stderr,"Canot open generic netlink socket\n");return-1; } thd_engine = engine;return0; } 开发者ID:sanyaade-mob...
hostapd: use rtnl to set up interfaces Browse files In wpa_supplicant, set up wlan interfaces before adding them Signed-off-by: Felix Fietkau <nbd@nbd.name> ipq50xx-pr (openwrt/openwrt#15257) nbd168 committed Nov 8, 2023 1 parent 5313142 commit c2a30b6 Showing 3 changed files...
Openwrt for Redmi AX3000 / Xiaomi CR880x / Xiaomi CR881x - hostapd: use rtnl to set up interfaces · hzyitc/openwrt-redmi-ax3000@6de0e0d