Lines Matching refs:nlh
52 struct nlmsghdr *nlh;
307 struct nlmsghdr *nlh = NULL;
318 status = nl_getmsg (sd, request, seq, &nlh, &done);
321 if (nlh)
328 free (nlh);
335 nlm_next->nlh = (struct nlmsghdr *) nlh;
366 if (nlm->nlh)
367 free (nlm->nlh);
467 struct nlmsghdr *nlh, *nlh0;
509 if (!(nlh0 = nlm->nlh))
511 for (nlh = nlh0;
512 NLMSG_OK (nlh, nlmlen); nlh = NLMSG_NEXT (nlh, nlmlen))
530 if (nlh->nlmsg_pid != pid || nlh->nlmsg_seq != nlm->seq)
532 if (nlh->nlmsg_type == NLMSG_DONE)
536 switch (nlh->nlmsg_type)
539 ifim = (struct ifinfomsg *) NLMSG_DATA (nlh);
549 ifam = (struct ifaddrmsg *) NLMSG_DATA (nlh);
574 NLMSG_PAYLOAD (nlh, nlmlen) - NLMSG_ALIGN (nlm_struct_size);
576 (struct rtattr *) (((char *) NLMSG_DATA (nlh)) +
585 switch (nlh->nlmsg_type)
699 if (nlh->nlmsg_type == RTM_NEWADDR && nlm_family != AF_PACKET)