Home
last modified time | relevance | path

Searched refs:nlh (Results 1 – 9 of 9) sorted by relevance

/hardware/google/pixel/thermal/utils/
Dthermal_watcher.cpp58 struct nlmsghdr *nlh = nlmsg_hdr(msg); in nlFinishHandle() local
60 LOG(VERBOSE) << __func__ << ": nlmsg type: " << nlh->nlmsg_type; in nlFinishHandle()
68 struct nlmsghdr *nlh = nlmsg_hdr(msg); in nlAckHandle() local
70 LOG(VERBOSE) << __func__ << ": nlmsg type: " << nlh->nlmsg_type; in nlAckHandle()
78 struct nlmsghdr *nlh = nlmsg_hdr(msg); in nlSeqCheckHandle() local
80 LOG(VERBOSE) << __func__ << ": nlmsg type: " << nlh->nlmsg_type; in nlSeqCheckHandle()
190 struct nlmsghdr *nlh = nlmsg_hdr(n); in handleEvent() local
191 struct genlmsghdr *glh = genlmsg_hdr(nlh); in handleEvent()
195 genlmsg_parse(nlh, 0, attrs, THERMAL_GENL_ATTR_MAX, NULL); in handleEvent()
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/
DIPACM_Netlink.cpp429 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; in ipa_nl_decode_rtm_link() local
432 link_info->metainfo = *(struct ifinfomsg *)NLMSG_DATA(nlh); in ipa_nl_decode_rtm_link()
446 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; /* NL message header */ in ipa_nl_decode_rtm_addr() local
450 addr_info->metainfo = *((struct ifaddrmsg *)NLMSG_DATA(nlh)); in ipa_nl_decode_rtm_addr()
456 rtah = IFA_RTA(NLMSG_DATA(nlh)); in ipa_nl_decode_rtm_addr()
487 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; /* NL message header */ in ipa_nl_decode_rtm_neigh() local
491 neigh_info->metainfo = *((struct ndmsg *)NLMSG_DATA(nlh)); in ipa_nl_decode_rtm_neigh()
497 rtah = NDA_RTA(NLMSG_DATA(nlh)); in ipa_nl_decode_rtm_neigh()
535 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; /* NL message header */ in ipa_nl_decode_rtm_route() local
539 route_info->metainfo = *((struct rtmsg *)NLMSG_DATA(nlh)); in ipa_nl_decode_rtm_route()
[all …]
/hardware/qcom/sm8150/data/ipacfg-mgr/ipacm/src/
DIPACM_Netlink.cpp429 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; in ipa_nl_decode_rtm_link() local
432 link_info->metainfo = *(struct ifinfomsg *)NLMSG_DATA(nlh); in ipa_nl_decode_rtm_link()
446 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; /* NL message header */ in ipa_nl_decode_rtm_addr() local
450 addr_info->metainfo = *((struct ifaddrmsg *)NLMSG_DATA(nlh)); in ipa_nl_decode_rtm_addr()
456 rtah = IFA_RTA(NLMSG_DATA(nlh)); in ipa_nl_decode_rtm_addr()
487 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; /* NL message header */ in ipa_nl_decode_rtm_neigh() local
491 neigh_info->metainfo = *((struct ndmsg *)NLMSG_DATA(nlh)); in ipa_nl_decode_rtm_neigh()
497 rtah = NDA_RTA(NLMSG_DATA(nlh)); in ipa_nl_decode_rtm_neigh()
535 struct nlmsghdr *nlh = (struct nlmsghdr *)buffer; /* NL message header */ in ipa_nl_decode_rtm_route() local
539 route_info->metainfo = *((struct rtmsg *)NLMSG_DATA(nlh)); in ipa_nl_decode_rtm_route()
[all …]
/hardware/qcom/wlan/wcn6740/qcwcn/wifi_hal/
Dwifilogger_diag.cpp2681 struct nlmsghdr *nlh = nlmsg_hdr(msg); in diag_message_handler() local
2683 genlh = (struct genlmsghdr *)nlmsg_data(nlh); in diag_message_handler()
2718 ctrl_evt = (wifihal_ctrl_event_t *)malloc(sizeof(*ctrl_evt) + nlh->nlmsg_len); in diag_message_handler()
2725 memset((char *)ctrl_evt, 0, sizeof(*ctrl_evt) + nlh->nlmsg_len); in diag_message_handler()
2729 ctrl_evt->data_len = nlh->nlmsg_len; in diag_message_handler()
2730 memcpy(ctrl_evt->data, (char *)nlh, ctrl_evt->data_len); in diag_message_handler()
2769 cmd = wnl->nlh.nlmsg_type; in diag_message_handler()
2775 if ((wnl->nlh.nlmsg_len <= sizeof(tAniNlHdr)) || in diag_message_handler()
2776 (wnl->nlh.nlmsg_len < (sizeof(tAniNlHdr) + ntohs(wnl->clh.wmsg.length)))) { in diag_message_handler()
2778 wnl->nlh.nlmsg_len); in diag_message_handler()
[all …]
Dwifi_hal.cpp1679 static int validate_cld80211_msg(nlmsghdr *nlh, int family, int cmd) in validate_cld80211_msg() argument
1683 hdr = (genlmsghdr *)nlmsg_data(nlh); in validate_cld80211_msg()
1685 if (nlh->nlmsg_len > DEFAULT_PAGE_SIZE - sizeof(wifihal_ctrl_req_t)) in validate_cld80211_msg()
1693 nlh->nlmsg_type, hdr->cmd); in validate_cld80211_msg()
1696 nlh->nlmsg_pid = getpid(); in validate_cld80211_msg()
1707 static int validate_genl_msg(nlmsghdr *nlh, int family, int cmd) in validate_genl_msg() argument
1711 hdr = (genlmsghdr *)nlmsg_data(nlh); in validate_genl_msg()
1713 if (nlh->nlmsg_len > DEFAULT_PAGE_SIZE - sizeof(wifihal_ctrl_req_t)) in validate_genl_msg()
1722 nlh->nlmsg_type, hdr->cmd); in validate_genl_msg()
1831 struct nlmsghdr *nlh = (struct nlmsghdr *)ctrl_msg->data; in register_monitor_sock() local
[all …]
Dwifilogger_diag.h133 struct nlmsghdr nlh; // Netlink Header member
/hardware/qcom/wlan/legacy/qcwcn/wifi_hal/
Dwifilogger_diag.cpp2658 struct nlmsghdr *nlh = nlmsg_hdr(msg); in diag_message_handler() local
2660 genlh = (struct genlmsghdr *)nlmsg_data(nlh); in diag_message_handler()
2687 ctrl_evt = (wifihal_ctrl_event_t *)malloc(sizeof(*ctrl_evt) + nlh->nlmsg_len); in diag_message_handler()
2694 memset((char *)ctrl_evt, 0, sizeof(*ctrl_evt) + nlh->nlmsg_len); in diag_message_handler()
2698 ctrl_evt->data_len = nlh->nlmsg_len; in diag_message_handler()
2699 memcpy(ctrl_evt->data, (char *)nlh, ctrl_evt->data_len); in diag_message_handler()
2740 cmd = wnl->nlh.nlmsg_type; in diag_message_handler()
2750 if ((wnl->nlh.nlmsg_len <= sizeof(tAniNlHdr)) || in diag_message_handler()
2751 (wnl->nlh.nlmsg_len < (sizeof(tAniNlHdr) + ntohs(wnl->clh.wmsg.length)))) { in diag_message_handler()
2753 wnl->nlh.nlmsg_len); in diag_message_handler()
[all …]
Dwifi_hal.cpp1594 static int validate_cld80211_msg(nlmsghdr *nlh, int family, int cmd) in validate_cld80211_msg() argument
1598 hdr = (genlmsghdr *)nlmsg_data(nlh); in validate_cld80211_msg()
1600 if (nlh->nlmsg_len > DEFAULT_PAGE_SIZE - sizeof(wifihal_ctrl_req_t)) in validate_cld80211_msg()
1608 nlh->nlmsg_type, hdr->cmd); in validate_cld80211_msg()
1611 nlh->nlmsg_pid = getpid(); in validate_cld80211_msg()
1622 static int validate_genl_msg(nlmsghdr *nlh, int family, int cmd) in validate_genl_msg() argument
1626 hdr = (genlmsghdr *)nlmsg_data(nlh); in validate_genl_msg()
1628 if (nlh->nlmsg_len > DEFAULT_PAGE_SIZE - sizeof(wifihal_ctrl_req_t)) in validate_genl_msg()
1637 nlh->nlmsg_type, hdr->cmd); in validate_genl_msg()
1746 struct nlmsghdr *nlh = (struct nlmsghdr *)ctrl_msg->data; in register_monitor_sock() local
[all …]
Dwifilogger_diag.h133 struct nlmsghdr nlh; // Netlink Header member