Searched refs:ghdr (Results 1 – 2 of 2) sorted by relevance
46 struct genlmsghdr *ghdr; in genl_ctrl_resolve_family() local60 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() local87 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() local196 if (ghdr->cmd != CTRL_CMD_GETFAMILY && in print_ctrl()197 ghdr->cmd != CTRL_CMD_DELFAMILY && in print_ctrl()[all …]
269 struct genlmsghdr *ghdr; in get_response() local280 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() local732 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()