Home
last modified time | relevance | path

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

/external/iproute2/genl/
Dctrl.c46 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()
184 struct genlmsghdr *ghdr = NLMSG_DATA(n); in print_ctrl() local
196 if (ghdr->cmd != CTRL_CMD_GETFAMILY && in print_ctrl()
197 ghdr->cmd != CTRL_CMD_DELFAMILY && in print_ctrl()
[all …]
/external/iproute2/ip/
Dipl2tp.c269 struct genlmsghdr *ghdr; in get_response() local
280 ghdr = NLMSG_DATA(n); in get_response()
281 len = n->nlmsg_len - NLMSG_LENGTH(sizeof(*ghdr)); in get_response()
285 parse_rtattr(attrs, L2TP_ATTR_MAX, (void *)ghdr + GENL_HDRLEN, len); in get_response()
722 struct genlmsghdr *ghdr = NLMSG_DATA(nlh); in genl_parse_getfamily() local
732 if (ghdr->cmd != CTRL_CMD_NEWFAMILY) { in genl_parse_getfamily()
733 fprintf(stderr, "Unknown controller command %d\n", ghdr->cmd); in genl_parse_getfamily()
744 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in genl_parse_getfamily()