Searched refs:gnlh (Results 1 – 2 of 2) sorted by relevance
/external/libnl/lib/genl/ |
D | genl.c | 190 void *genlmsg_data(const struct genlmsghdr *gnlh) in genlmsg_data() argument 192 return ((unsigned char *) gnlh + GENL_HDRLEN); in genlmsg_data() 199 int genlmsg_len(const struct genlmsghdr *gnlh) in genlmsg_len() argument 201 struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh - in genlmsg_len() 211 struct nlattr *genlmsg_attrdata(const struct genlmsghdr *gnlh, int hdrlen) in genlmsg_attrdata() argument 213 return genlmsg_data(gnlh) + NLMSG_ALIGN(hdrlen); in genlmsg_attrdata() 221 int genlmsg_attrlen(const struct genlmsghdr *gnlh, int hdrlen) in genlmsg_attrlen() argument 223 return genlmsg_len(gnlh) - NLMSG_ALIGN(hdrlen); in genlmsg_attrlen()
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_nl80211.c | 740 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in family_handler() local 744 nla_parse(tb, CTRL_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in family_handler() 745 genlmsg_attrlen(gnlh, 0), NULL); in family_handler() 810 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in netdev_info_handler() local 813 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in netdev_info_handler() 814 genlmsg_attrlen(gnlh, 0), NULL); in netdev_info_handler() 953 struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); in process_beacon_event() local 957 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in process_beacon_event() 958 genlmsg_attrlen(gnlh, 0), NULL); in process_beacon_event() 960 if (gnlh->cmd != NL80211_CMD_FRAME) { in process_beacon_event() [all …]
|