Home
last modified time | relevance | path

Searched refs:nlmh (Results 1 – 3 of 3) sorted by relevance

/sysdeps/unix/sysv/linux/
A Dcheck_native.c133 struct nlmsghdr *nlmh; in __check_native() local
134 for (nlmh = (struct nlmsghdr *) buf; in __check_native()
135 NLMSG_OK (nlmh, (size_t) read_len); in __check_native()
136 nlmh = (struct nlmsghdr *) NLMSG_NEXT (nlmh, read_len)) in __check_native()
138 if (nladdr.nl_pid != 0 || (pid_t) nlmh->nlmsg_pid != pid in __check_native()
139 || nlmh->nlmsg_seq != req.nlh.nlmsg_seq) in __check_native()
142 if (nlmh->nlmsg_type == RTM_NEWLINK) in __check_native()
144 struct ifinfomsg *ifim = (struct ifinfomsg *) NLMSG_DATA (nlmh); in __check_native()
164 else if (nlmh->nlmsg_type == NLMSG_DONE) in __check_native()
A Dcheck_pf.c178 struct nlmsghdr *nlmh; in make_request() local
179 for (nlmh = (struct nlmsghdr *) buf; in make_request()
180 NLMSG_OK (nlmh, (size_t) read_len); in make_request()
181 nlmh = (struct nlmsghdr *) NLMSG_NEXT (nlmh, read_len)) in make_request()
183 if (nladdr.nl_pid != 0 || (pid_t) nlmh->nlmsg_pid != pid in make_request()
184 || nlmh->nlmsg_seq != req.nlh.nlmsg_seq) in make_request()
187 if (nlmh->nlmsg_type == RTM_NEWADDR) in make_request()
189 struct ifaddrmsg *ifam = (struct ifaddrmsg *) NLMSG_DATA (nlmh); in make_request()
191 size_t len = nlmh->nlmsg_len - NLMSG_LENGTH (sizeof (*ifam)); in make_request()
262 else if (nlmh->nlmsg_type == NLMSG_DONE) in make_request()
A Difaddrs.c130 struct nlmsghdr *nlmh; in __netlink_request() local
186 for (nlmh = (struct nlmsghdr *) buf; in __netlink_request()
187 NLMSG_OK (nlmh, remaining_len); in __netlink_request()
188 nlmh = (struct nlmsghdr *) NLMSG_NEXT (nlmh, remaining_len)) in __netlink_request()
190 if ((pid_t) nlmh->nlmsg_pid != h->pid in __netlink_request()
191 || nlmh->nlmsg_seq != h->seq) in __netlink_request()
195 if (nlmh->nlmsg_type == NLMSG_DONE) in __netlink_request()
201 if (nlmh->nlmsg_type == NLMSG_ERROR) in __netlink_request()
203 struct nlmsgerr *nlerr = (struct nlmsgerr *) NLMSG_DATA (nlmh); in __netlink_request()
204 if (nlmh->nlmsg_len < NLMSG_LENGTH (sizeof (struct nlmsgerr))) in __netlink_request()

Completed in 6 milliseconds