Home
last modified time | relevance | path

Searched refs:ghdr (Results 1 – 12 of 12) sorted by relevance

/external/libnl/lib/genl/
Dgenl.c119 struct genlmsghdr *ghdr; in genlmsg_valid_hdr() local
124 ghdr = nlmsg_data(nlh); in genlmsg_valid_hdr()
125 if (genlmsg_len(ghdr) < NLMSG_ALIGN(hdrlen)) in genlmsg_valid_hdr()
154 struct genlmsghdr *ghdr; in genlmsg_validate() local
159 ghdr = nlmsg_data(nlh); in genlmsg_validate()
160 return nla_validate(genlmsg_attrdata(ghdr, hdrlen), in genlmsg_validate()
161 genlmsg_attrlen(ghdr, hdrlen), maxtype, policy); in genlmsg_validate()
194 struct genlmsghdr *ghdr; in genlmsg_parse() local
199 ghdr = nlmsg_data(nlh); in genlmsg_parse()
200 return nla_parse(tb, maxtype, genlmsg_attrdata(ghdr, hdrlen), in genlmsg_parse()
[all …]
Dmngt.c51 struct genlmsghdr *ghdr; in cmd_msg_parser() local
54 ghdr = genlmsg_hdr(nlh); in cmd_msg_parser()
56 if (!(cmd = lookup_cmd(ops, ghdr->cmd))) { in cmd_msg_parser()
68 .genlhdr = ghdr, in cmd_msg_parser()
69 .userhdr = genlmsg_user_hdr(ghdr), in cmd_msg_parser()
/external/iproute2/genl/
Dctrl.c57 struct genlmsghdr *ghdr = &req.g; in genl_ctrl_resolve_family() local
82 if (ghdr->cmd != CTRL_CMD_NEWFAMILY) { in genl_ctrl_resolve_family()
83 fprintf(stderr, "Unknown controller command %d\n", ghdr->cmd); in genl_ctrl_resolve_family()
94 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in genl_ctrl_resolve_family()
180 struct genlmsghdr *ghdr = NLMSG_DATA(n); in print_ctrl() local
192 if (ghdr->cmd != CTRL_CMD_GETFAMILY && in print_ctrl()
193 ghdr->cmd != CTRL_CMD_DELFAMILY && in print_ctrl()
194 ghdr->cmd != CTRL_CMD_NEWFAMILY && in print_ctrl()
195 ghdr->cmd != CTRL_CMD_NEWMCAST_GRP && in print_ctrl()
196 ghdr->cmd != CTRL_CMD_DELMCAST_GRP) { in print_ctrl()
[all …]
/external/iproute2/lib/
Dlibgenl.c15 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/
Dipseg6.c62 struct genlmsghdr *ghdr; in process_msg() local
73 ghdr = NLMSG_DATA(n); in process_msg()
75 parse_rtattr(attrs, SEG6_ATTR_MAX, (void *)ghdr + GENL_HDRLEN, len); in process_msg()
77 switch (ghdr->cmd) { in process_msg()
Dipila.c98 struct genlmsghdr *ghdr; in print_ila_mapping() local
109 ghdr = NLMSG_DATA(n); in print_ila_mapping()
110 parse_rtattr(tb, ILA_ATTR_MAX, (void *) ghdr + GENL_HDRLEN, len); in print_ila_mapping()
Dtcp_metrics.c95 struct genlmsghdr *ghdr; in process_msg() local
108 ghdr = NLMSG_DATA(n); in process_msg()
109 if (ghdr->cmd != TCP_METRICS_CMD_GET) in process_msg()
112 parse_rtattr(attrs, TCP_METRICS_ATTR_MAX, (void *) ghdr + GENL_HDRLEN, in process_msg()
Dipl2tp.c295 struct genlmsghdr *ghdr; in get_response() local
306 ghdr = NLMSG_DATA(n); in get_response()
307 len = n->nlmsg_len - NLMSG_LENGTH(sizeof(*ghdr)); in get_response()
311 parse_rtattr(attrs, L2TP_ATTR_MAX, (void *)ghdr + GENL_HDRLEN, len); in get_response()
Dipmacsec.c878 struct genlmsghdr *ghdr; in process() local
894 ghdr = NLMSG_DATA(n); in process()
895 if (ghdr->cmd != MACSEC_CMD_GET_TXSC) in process()
898 parse_rtattr(attrs, MACSEC_ATTR_MAX, (void *) ghdr + GENL_HDRLEN, len); in process()
/external/libnl/lib/
Dmsg.c826 struct genlmsghdr *ghdr = start; in print_genl_hdr() local
829 fprintf(ofd, " .cmd = %u\n", ghdr->cmd); in print_genl_hdr()
830 fprintf(ofd, " .version = %u\n", ghdr->version); in print_genl_hdr()
831 fprintf(ofd, " .unused = %#x\n", ghdr->reserved); in print_genl_hdr()
/external/dhcpcd-6.8.2/
Dif-linux.c940 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()
/external/libnl/
Dmake.log163 if (genlmsg_len(ghdr) < NLMSG_ALIGN(hdrlen))
320 if (genlmsg_len(ghdr) < NLMSG_ALIGN(hdrlen))