• Home
  • Raw
  • Download

Lines Matching refs:nlh

45 	struct nlmsghdr *nlh;  in genl_ctrl_resolve_family()  local
55 nlh = &req.n; in genl_ctrl_resolve_family()
56 nlh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in genl_ctrl_resolve_family()
57 nlh->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in genl_ctrl_resolve_family()
58 nlh->nlmsg_type = GENL_ID_CTRL; in genl_ctrl_resolve_family()
68 addattr_l(nlh, 128, CTRL_ATTR_FAMILY_NAME, family, strlen(family) + 1); in genl_ctrl_resolve_family()
70 if (rtnl_talk(&rth, nlh, 0, 0, nlh, NULL, NULL) < 0) { in genl_ctrl_resolve_family()
77 struct genlmsghdr *ghdr = NLMSG_DATA(nlh); in genl_ctrl_resolve_family()
78 int len = nlh->nlmsg_len; in genl_ctrl_resolve_family()
81 if (nlh->nlmsg_type != GENL_ID_CTRL) { in genl_ctrl_resolve_family()
83 "nlmsg_type=0x%x\n", nlh->nlmsg_len, nlh->nlmsg_type); in genl_ctrl_resolve_family()
287 struct nlmsghdr *nlh; in ctrl_list() local
298 nlh = &req.n; in ctrl_list()
299 nlh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in ctrl_list()
300 nlh->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in ctrl_list()
301 nlh->nlmsg_type = GENL_ID_CTRL; in ctrl_list()
320 addattr_l(nlh, 128, CTRL_ATTR_FAMILY_NAME, in ctrl_list()
330 addattr_l(nlh, 128, CTRL_ATTR_FAMILY_ID, &id, 2); in ctrl_list()
337 if (rtnl_talk(&rth, nlh, 0, 0, nlh, NULL, NULL) < 0) { in ctrl_list()
342 if (print_ctrl(NULL, nlh, (void *) stdout) < 0) { in ctrl_list()
350 nlh->nlmsg_flags = NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST; in ctrl_list()
351 nlh->nlmsg_seq = rth.dump = ++rth.seq; in ctrl_list()
353 if (rtnl_send(&rth, (const char *) nlh, nlh->nlmsg_len) < 0) { in ctrl_list()