Searched refs:ghdr (Results 1 – 7 of 7) sorted by relevance
/external/libnl/lib/genl/ |
D | genl.c | 148 struct genlmsghdr *ghdr; in genlmsg_valid_hdr() local 153 ghdr = nlmsg_data(nlh); in genlmsg_valid_hdr() 154 if (genlmsg_len(ghdr) < NLMSG_ALIGN(hdrlen)) in genlmsg_valid_hdr() 163 struct genlmsghdr *ghdr; in genlmsg_validate() local 168 ghdr = nlmsg_data(nlh); in genlmsg_validate() 169 return nla_validate(genlmsg_attrdata(ghdr, hdrlen), in genlmsg_validate() 170 genlmsg_attrlen(ghdr, hdrlen), maxtype, policy); in genlmsg_validate() 176 struct genlmsghdr *ghdr; in genlmsg_parse() local 181 ghdr = nlmsg_data(nlh); in genlmsg_parse() 182 return nla_parse(tb, maxtype, genlmsg_attrdata(ghdr, hdrlen), in genlmsg_parse() [all …]
|
D | mngt.c | 97 struct genlmsghdr *ghdr; in genl_msg_parser() local 100 ghdr = nlmsg_data(nlh); in genl_msg_parser() 107 if (cmd->c_id == ghdr->cmd) in genl_msg_parser() 122 .genlhdr = ghdr, in genl_msg_parser() 123 .userhdr = genlmsg_data(ghdr), in genl_msg_parser()
|
/external/iproute2/genl/ |
D | ctrl.c | 46 struct genlmsghdr *ghdr; in genl_ctrl_resolve_family() local 60 ghdr = NLMSG_DATA(&req.n); in genl_ctrl_resolve_family() 61 ghdr->cmd = CTRL_CMD_GETFAMILY; in genl_ctrl_resolve_family() 77 struct genlmsghdr *ghdr = NLMSG_DATA(nlh); in genl_ctrl_resolve_family() local 87 if (ghdr->cmd != CTRL_CMD_NEWFAMILY) { in genl_ctrl_resolve_family() 88 fprintf(stderr, "Unknown controller command %d\n", ghdr->cmd); in genl_ctrl_resolve_family() 99 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in genl_ctrl_resolve_family() 185 struct genlmsghdr *ghdr = NLMSG_DATA(n); in print_ctrl() local 197 if (ghdr->cmd != CTRL_CMD_GETFAMILY && in print_ctrl() 198 ghdr->cmd != CTRL_CMD_DELFAMILY && in print_ctrl() [all …]
|
/external/iproute2/lib/ |
D | libgenl.c | 15 struct genlmsghdr *ghdr = NLMSG_DATA(nlh); in genl_parse_getfamily() local 32 if (ghdr->cmd != CTRL_CMD_NEWFAMILY) { in genl_parse_getfamily() 33 fprintf(stderr, "Unknown controller command %d\n", ghdr->cmd); in genl_parse_getfamily() 37 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in genl_parse_getfamily()
|
/external/iproute2/ip/ |
D | tcp_metrics.c | 95 struct genlmsghdr *ghdr; in process_msg() local 109 ghdr = NLMSG_DATA(n); in process_msg() 110 if (ghdr->cmd != TCP_METRICS_CMD_GET) in process_msg() 113 parse_rtattr(attrs, TCP_METRICS_ATTR_MAX, (void *) ghdr + GENL_HDRLEN, in process_msg()
|
D | ipl2tp.c | 245 struct genlmsghdr *ghdr; in get_response() local 256 ghdr = NLMSG_DATA(n); in get_response() 257 len = n->nlmsg_len - NLMSG_LENGTH(sizeof(*ghdr)); in get_response() 261 parse_rtattr(attrs, L2TP_ATTR_MAX, (void *)ghdr + GENL_HDRLEN, len); in get_response()
|
/external/dhcpcd-6.8.2/ |
D | if-linux.c | 940 struct genlmsghdr ghdr; member 991 struct genlmsghdr *ghdr; in gnl_parse() local 997 ghdr = NLMSG_DATA(nlm); in gnl_parse() 998 head = (struct nlattr *)(void *)((char *) ghdr + GENL_HDRLEN); in gnl_parse() 1035 nlm.ghdr.cmd = CTRL_CMD_GETFAMILY; in gnl_getfamily() 1036 nlm.ghdr.version = 1; in gnl_getfamily() 1087 nlm.ghdr.cmd = NL80211_CMD_GET_INTERFACE; in if_getssid_nl80211()
|