Home
last modified time | relevance | path

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

/hardware/qcom/msm8996/original-kernel-headers/linux/
Dnetlink.h83 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) argument
84 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument
85 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
86 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument
87 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
88 (nlh)->nlmsg_len <= (len))
89 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
/hardware/qcom/msm8994/original-kernel-headers/linux/
Dnetlink.h83 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) argument
84 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument
85 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
86 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument
87 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
88 (nlh)->nlmsg_len <= (len))
89 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
/hardware/qcom/msm8994/kernel-headers/linux/
Dnetlink.h92 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) argument
94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)( argument
95 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(st… argument
96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
/hardware/qcom/msm8996/kernel-headers/linux/
Dnetlink.h92 #define NLMSG_DATA(nlh) ((void *) (((char *) nlh) + NLMSG_LENGTH(0))) argument
94 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr *) (((char *)… argument
95 #define NLMSG_OK(nlh,len) ((len) >= (int) sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(str… argument
96 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
/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/sdm845/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/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/qcwcn/wifi_hal/
Dwifi_hal.cpp1051 static int validate_cld80211_msg(nlmsghdr *nlh, int family, int cmd) in validate_cld80211_msg() argument
1055 hdr = (genlmsghdr *)nlmsg_data(nlh); in validate_cld80211_msg()
1057 if (nlh->nlmsg_len > DEFAULT_PAGE_SIZE - sizeof(wifihal_ctrl_req_t)) in validate_cld80211_msg()
1065 nlh->nlmsg_type, hdr->cmd); in validate_cld80211_msg()
1068 nlh->nlmsg_pid = getpid(); in validate_cld80211_msg()
1079 static int validate_genl_msg(nlmsghdr *nlh, int family, int cmd) in validate_genl_msg() argument
1083 hdr = (genlmsghdr *)nlmsg_data(nlh); in validate_genl_msg()
1085 if (nlh->nlmsg_len > DEFAULT_PAGE_SIZE - sizeof(wifihal_ctrl_req_t)) in validate_genl_msg()
1094 nlh->nlmsg_type, hdr->cmd); in validate_genl_msg()
1203 struct nlmsghdr *nlh = (struct nlmsghdr *)ctrl_msg->data; in register_monitor_sock() local
[all …]
Dwifilogger_diag.cpp2578 struct nlmsghdr *nlh = nlmsg_hdr(msg); in diag_message_handler() local
2580 genlh = (struct genlmsghdr *)nlmsg_data(nlh); in diag_message_handler()
2607 ctrl_evt = (wifihal_ctrl_event_t *)malloc(sizeof(*ctrl_evt) + nlh->nlmsg_len); in diag_message_handler()
2614 memset((char *)ctrl_evt, 0, sizeof(*ctrl_evt) + nlh->nlmsg_len); in diag_message_handler()
2618 ctrl_evt->data_len = nlh->nlmsg_len; in diag_message_handler()
2619 memcpy(ctrl_evt->data, (char *)nlh, ctrl_evt->data_len); in diag_message_handler()
2659 cmd = wnl->nlh.nlmsg_type; in diag_message_handler()
2665 if ((wnl->nlh.nlmsg_len <= sizeof(tAniNlHdr)) || in diag_message_handler()
2666 (wnl->nlh.nlmsg_len < (sizeof(tAniNlHdr) + ntohs(wnl->clh.wmsg.length)))) { in diag_message_handler()
2668 wnl->nlh.nlmsg_len); in diag_message_handler()
[all …]
Dwifilogger_diag.h133 struct nlmsghdr nlh; // Netlink Header member