Lines Matching refs:rtnl
229 int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer,
255 n->nlmsg_seq = seq = ++rtnl->seq;
260 status = sendmsg(rtnl->fd, &msg, 0);
273 status = recvmsg(rtnl->fd, &msg, 0);
304 h->nlmsg_pid != rtnl->local.nl_pid ||
350 int rtnl_listen(struct rtnl_handle *rtnl,
374 status = recvmsg(rtnl->fd, &msg, 0);
422 int rtnl_from_file(FILE *rtnl, rtnl_filter_t handler,
439 status = fread(&buf, 1, sizeof(*h), rtnl);
456 len, ftell(rtnl));
460 status = fread(NLMSG_DATA(h), 1, NLMSG_ALIGN(l), rtnl);
467 fprintf(stderr, "rtnl-from_file: truncated message\n");