Lines Matching refs:ghdr
57 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()
197 fprintf(stderr, "Unknown controller command %d\n", ghdr->cmd); in print_ctrl()
208 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in print_ctrl()