crypto/heimdal/lib/roken/getifaddrs.c
141
struct nlmsghdr *nlh;
crypto/heimdal/lib/roken/getifaddrs.c
277
char reqbuf[NLMSG_ALIGN(sizeof(struct nlmsghdr)) +
crypto/heimdal/lib/roken/getifaddrs.c
280
struct nlmsghdr *req_hdr;
crypto/heimdal/lib/roken/getifaddrs.c
286
req_hdr = (struct nlmsghdr *)reqbuf;
crypto/heimdal/lib/roken/getifaddrs.c
329
struct nlmsghdr **nlhp,
crypto/heimdal/lib/roken/getifaddrs.c
332
struct nlmsghdr *nh;
crypto/heimdal/lib/roken/getifaddrs.c
352
nh = (struct nlmsghdr *)buff;
crypto/heimdal/lib/roken/getifaddrs.c
353
for (nh = (struct nlmsghdr *)buff;
crypto/heimdal/lib/roken/getifaddrs.c
355
nh = (struct nlmsghdr *)NLMSG_NEXT(nh, read_size)){
crypto/heimdal/lib/roken/getifaddrs.c
381
*nlhp = (struct nlmsghdr *)buff;
crypto/heimdal/lib/roken/getifaddrs.c
391
struct nlmsghdr *nlh = NULL;
crypto/heimdal/lib/roken/getifaddrs.c
430
nlm_next->nlh = (struct nlmsghdr *)nlh;
crypto/heimdal/lib/roken/getifaddrs.c
549
struct nlmsghdr *nlh, *nlh0;
lib/libc/rpc/svc_nl.c
179
struct nlmsghdr *hdr = sc->hdr;
lib/libc/rpc/svc_nl.c
183
if (recv(xprt->xp_fd, hdr, sizeof(struct nlmsghdr),
lib/libc/rpc/svc_nl.c
184
MSG_PEEK) != sizeof(struct nlmsghdr))
lib/libc/rpc/svc_nl.c
351
recv(xprt->xp_fd, sc->hdr, sizeof(struct nlmsghdr),
lib/libc/rpc/svc_nl.c
352
MSG_PEEK | MSG_DONTWAIT) == sizeof(struct nlmsghdr))
lib/libc/rpc/svc_nl.c
76
struct nlmsghdr *hdr;
lib/libifconfig/libifconfig_carp.c
151
struct nlmsghdr *hdr;
lib/libifconfig/libifconfig_carp.c
74
struct nlmsghdr *hdr;
lib/libifconfig/libifconfig_nl.c
25
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
119
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
1352
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
1399
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
1730
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
1843
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
1977
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
2098
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
2458
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
2525
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
2626
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
2800
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
2838
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
2883
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
2924
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
2956
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3000
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3038
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3082
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3131
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3167
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3214
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3277
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3324
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3361
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3422
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3466
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3508
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3546
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3632
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3681
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3727
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3813
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3861
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
3925
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
4028
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
4061
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
408
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
4124
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
4168
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
4229
struct nlmsghdr *hdr;
lib/libpfctl/libpfctl.c
4270
struct nlmsghdr *hdr;
lib/libsysdecode/netlink.c
26
const struct nlmsghdr *nl = buf;
lib/libsysdecode/netlink.c
31
if (remaining < sizeof(struct nlmsghdr))
lib/libsysdecode/netlink.c
38
if (nl->nlmsg_len < sizeof(struct nlmsghdr) || nl->nlmsg_len > remaining)
lib/libsysdecode/netlink.c
43
while (remaining >= sizeof(struct nlmsghdr)) {
lib/libsysdecode/netlink.c
48
if (nl->nlmsg_len < sizeof(struct nlmsghdr) ||
lib/libsysdecode/netlink.c
88
nl = (const struct nlmsghdr *)(const void *)((const char *)nl + aligned_len);
lib/libusb/libusb10_hotplug.c
131
struct nlmsghdr *hdr;
sbin/ifconfig/af_inet.c
336
struct nlmsghdr *hdr;
sbin/ifconfig/af_inet.c
410
struct nlmsghdr *hdr = snl_create_msg_request(&nw, action);
sbin/ifconfig/af_inet6.c
475
struct nlmsghdr *hdr = snl_create_msg_request(&nw, action);
sbin/ifconfig/ifconfig_netlink.c
149
struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_GETLINK);
sbin/ifconfig/ifconfig_netlink.c
192
struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_GETLINK);
sbin/ifconfig/ifconfig_netlink.c
227
struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_GETADDR);
sbin/pflowctl/pflowctl.c
100
struct nlmsghdr *hdr;
sbin/pflowctl/pflowctl.c
152
struct nlmsghdr *hdr;
sbin/pflowctl/pflowctl.c
190
struct nlmsghdr *hdr;
sbin/pflowctl/pflowctl.c
323
struct nlmsghdr *hdr;
sbin/pflowctl/pflowctl.c
404
struct nlmsghdr *hdr;
sbin/route/route_netlink.c
177
struct nlmsghdr *hdr = snl_create_msg_request(&nw, nl_type);
sbin/route/route_netlink.c
321
struct nlmsghdr *hdr = snl_create_msg_request(&nw, NL_RTM_GETLINK);
sbin/route/route_netlink.c
346
print_getmsg(struct nl_helper *h, struct nlmsghdr *hdr, struct sockaddr *dst)
sbin/route/route_netlink.c
43
static void print_getmsg(struct nl_helper *h, struct nlmsghdr *hdr,
sbin/route/route_netlink.c
444
print_line_prefix(struct nlmsghdr *hdr, struct snl_msg_info *cinfo,
sbin/route/route_netlink.c
45
static void print_nlmsg(struct nl_helper *h, struct nlmsghdr *hdr,
sbin/route/route_netlink.c
462
get_action_name(struct nlmsghdr *hdr, int new_cmd)
sbin/route/route_netlink.c
511
print_nlmsg_route(struct nl_helper *h, struct nlmsghdr *hdr,
sbin/route/route_netlink.c
578
print_nlmsg_link(struct nl_helper *h, struct nlmsghdr *hdr,
sbin/route/route_netlink.c
602
print_nlmsg_addr(struct nl_helper *h, struct nlmsghdr *hdr,
sbin/route/route_netlink.c
652
print_nlmsg_neigh(struct nl_helper *h, struct nlmsghdr *hdr,
sbin/route/route_netlink.c
711
print_nlmsg_generic(struct nl_helper *h, struct nlmsghdr *hdr, struct snl_msg_info *cinfo)
sbin/route/route_netlink.c
719
print_nlmsg(struct nl_helper *h, struct nlmsghdr *hdr, struct snl_msg_info *cinfo)
sbin/route/route_netlink.c
784
struct nlmsghdr *hdr;
sbin/route/route_netlink.c
819
struct nlmsghdr *hdr = snl_create_msg_request(&nw, NL_RTM_DELROUTE);
sbin/route/route_netlink.c
868
struct nlmsghdr *hdr = snl_create_msg_request(&nw, NL_RTM_GETROUTE);
sys/compat/linux/linux_netlink.c
112
rtnl_route_from_linux(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/compat/linux/linux_netlink.c
120
if (hdr->nlmsg_len < sizeof(struct nlmsghdr) + sizeof(struct rtmsg))
sys/compat/linux/linux_netlink.c
129
attrs_len = hdr->nlmsg_len - sizeof(struct nlmsghdr);
sys/compat/linux/linux_netlink.c
158
rtnl_from_linux(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/compat/linux/linux_netlink.c
185
nlmsg_from_linux(int netlink_family, struct nlmsghdr **hdr,
sys/compat/linux/linux_netlink.c
202
handle_default_out(struct nlmsghdr *hdr, struct nl_writer *nw)
sys/compat/linux/linux_netlink.c
216
nlmsg_copy_header(struct nlmsghdr *hdr, struct nl_writer *nw)
sys/compat/linux/linux_netlink.c
223
_nlmsg_copy_next_header(struct nlmsghdr *hdr, struct nl_writer *nw, int sz)
sys/compat/linux/linux_netlink.c
265
nlmsg_translate_all_nla(struct nlmsghdr *hdr, struct nlattr *nla,
sys/compat/linux/linux_netlink.c
286
nlmsg_copy_all_nla(struct nlmsghdr *hdr, int raw_hdrlen, struct nl_writer *nw)
sys/compat/linux/linux_netlink.c
292
int attrs_len = hdr->nlmsg_len - sizeof(struct nlmsghdr) - hdrlen;
sys/compat/linux/linux_netlink.c
353
rtnl_newlink_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp,
sys/compat/linux/linux_netlink.c
388
rtnl_newaddr_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp,
sys/compat/linux/linux_netlink.c
410
rtnl_newneigh_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp,
sys/compat/linux/linux_netlink.c
431
rtnl_newroute_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp,
sys/compat/linux/linux_netlink.c
444
int attrs_len = hdr->nlmsg_len - sizeof(struct nlmsghdr) - hdrlen;
sys/compat/linux/linux_netlink.c
479
rtnl_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_writer *nw)
sys/compat/linux/linux_netlink.c
506
nlmsg_error_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_writer *nw)
sys/compat/linux/linux_netlink.c
515
int copied_len = sizeof(struct nlmsghdr) + sizeof(struct nlmsgerr);
sys/compat/linux/linux_netlink.c
540
nlmsg_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_writer *nw)
sys/compat/linux/linux_netlink.c
578
offset + sizeof(struct nlmsghdr) <= orig->datalen;
sys/compat/linux/linux_netlink.c
580
struct nlmsghdr *hdr = (struct nlmsghdr *)&orig->data[offset];
sys/compat/linux/linux_netlink.c
76
rtnl_neigh_from_linux(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/compat/linux/linux_netlink.c
81
if (hdr->nlmsg_len < sizeof(struct nlmsghdr) + sizeof(struct ndmsg))
sys/compat/linux/linux_netlink.c
92
rtnl_ifaddr_from_linux(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/compat/linux/linux_netlink.c
97
if (hdr->nlmsg_len < sizeof(struct nlmsghdr) +
sys/netinet/ip_carp.c
2568
carp_nl_get(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netinet/ip_carp.c
2671
carp_nl_set(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netlink/netlink.h
174
struct nlmsghdr msg;
sys/netlink/netlink.h
214
#define NLMSG_HDRLEN (sizeof(struct nlmsghdr))
sys/netlink/netlink.h
225
#define NLMSG_HDRLEN (NLMSG_ALIGN(sizeof(struct nlmsghdr)))
sys/netlink/netlink_ctl.h
74
typedef int (*nl_handler_f)(struct nlmsghdr *hdr, struct nl_pstate *npt);
sys/netlink/netlink_domain.c
211
struct nlmsghdr *hdr = (struct nlmsghdr *)nb->data;
sys/netlink/netlink_domain.c
574
if (__predict_false(uio->uio_resid < sizeof(struct nlmsghdr)))
sys/netlink/netlink_domain.c
668
struct nlmsghdr *hdr;
sys/netlink/netlink_domain.c
741
hdr = (struct nlmsghdr *)&nb->data[offset];
sys/netlink/netlink_generic.c
114
genl_handle_message(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netlink/netlink_generic.c
121
if (__predict_false(hdr->nlmsg_len < sizeof(struct nlmsghdr) +
sys/netlink/netlink_generic.c
171
dump_family(struct nlmsghdr *hdr, struct genlmsghdr *ghdr,
sys/netlink/netlink_generic.c
254
nlctrl_handle_getfamily(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netlink/netlink_generic.c
307
struct nlmsghdr hdr = {.nlmsg_type = NETLINK_GENERIC };
sys/netlink/netlink_generic.c
50
static int nlctrl_handle_getfamily(struct nlmsghdr *, struct nl_pstate *);
sys/netlink/netlink_glue.c
163
nlmsg_end_dump_stub(struct nl_writer *nw, int error, struct nlmsghdr *hdr)
sys/netlink/netlink_glue.c
267
nlmsg_end_dump(struct nl_writer *nw, int error, struct nlmsghdr *hdr)
sys/netlink/netlink_io.c
212
struct nlmsghdr *hdr = (struct nlmsghdr *)nw->buf->data;
sys/netlink/netlink_io.c
260
nl_receive_message(struct nlmsghdr *hdr, int remaining_length,
sys/netlink/netlink_io.c
327
struct nlmsghdr *hdr;
sys/netlink/netlink_io.c
347
for (; nb->offset + sizeof(struct nlmsghdr) <= nb->datalen;) {
sys/netlink/netlink_io.c
348
hdr = (struct nlmsghdr *)&nb->data[nb->offset];
sys/netlink/netlink_linux.h
42
typedef int msg_from_linux_cb_t(int netlink_family, struct nlmsghdr **hdr,
sys/netlink/netlink_message_parser.h
320
nl_parse_nlmsg(struct nlmsghdr *hdr, const struct nlhdr_parser *parser,
sys/netlink/netlink_message_parser.h
328
nl_get_attrs_bmask_nlmsg(struct nlmsghdr *hdr,
sys/netlink/netlink_message_parser.h
70
struct nlmsghdr *hdr; /* Current parsed message header */
sys/netlink/netlink_message_writer.c
195
nw->hdr = (last_len > 0) ? (struct nlmsghdr *)new->data : NULL;
sys/netlink/netlink_message_writer.c
207
struct nlmsghdr *hdr;
sys/netlink/netlink_message_writer.c
212
required_len = NETLINK_ALIGN(len + sizeof(struct nlmsghdr));
sys/netlink/netlink_message_writer.c
219
hdr = (struct nlmsghdr *)(&nb->data[nb->datalen]);
sys/netlink/netlink_message_writer.c
228
nb->datalen += sizeof(struct nlmsghdr);
sys/netlink/netlink_message_writer.c
267
nlmsg_ack(struct nlpcb *nlp, int error, struct nlmsghdr *hdr,
sys/netlink/netlink_message_writer.c
285
payload_len += hdr->nlmsg_len - sizeof(struct nlmsghdr);
sys/netlink/netlink_message_writer.c
319
_nlmsg_end_dump(struct nl_writer *nw, int error, struct nlmsghdr *hdr)
sys/netlink/netlink_message_writer.h
139
nlmsg_end_dump(struct nl_writer *nw, int error, struct nlmsghdr *hdr)
sys/netlink/netlink_message_writer.h
159
bool nlmsg_end_dump(struct nl_writer *nw, int error, struct nlmsghdr *hdr);
sys/netlink/netlink_message_writer.h
164
nlmsg_reply(struct nl_writer *nw, const struct nlmsghdr *hdr, int payload_len)
sys/netlink/netlink_message_writer.h
47
struct nlmsghdr *hdr; /* Pointer to the currently-filled msg */
sys/netlink/netlink_message_writer.h
84
bool _nlmsg_end_dump(struct nl_writer *nw, int error, struct nlmsghdr *hdr);
sys/netlink/netlink_route.c
67
rtnl_handle_message(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netlink/netlink_snl.h
1037
static inline struct nlmsghdr *
sys/netlink/netlink_snl.h
1040
struct nlmsghdr *hdr = snl_read_reply(ss, nlmsg_seq);
sys/netlink/netlink_snl.h
1061
struct nlmsghdr *hdr;
sys/netlink/netlink_snl.h
1104
nw->hdr = (struct nlmsghdr *)(void *)(new_base + hdr_off);
sys/netlink/netlink_snl.h
1282
static inline struct nlmsghdr *
sys/netlink/netlink_snl.h
1285
struct nlmsghdr *hdr;
sys/netlink/netlink_snl.h
1290
snl_reserve_msg_object(nw, struct nlmsghdr)) == NULL))
sys/netlink/netlink_snl.h
1310
static inline struct nlmsghdr *
sys/netlink/netlink_snl.h
1316
struct nlmsghdr *hdr = nw->hdr;
sys/netlink/netlink_snl.h
309
snl_send_message(struct snl_state *ss, struct nlmsghdr *hdr)
sys/netlink/netlink_snl.h
332
static inline struct nlmsghdr *
sys/netlink/netlink_snl.h
365
struct nlmsghdr *hdr = (struct nlmsghdr *)(void *)&ss->buf[ss->off];
sys/netlink/netlink_snl.h
371
static inline struct nlmsghdr *
sys/netlink/netlink_snl.h
397
struct nlmsghdr *hdr = (struct nlmsghdr *)(void *)&ss->buf[ss->off];
sys/netlink/netlink_snl.h
402
static inline struct nlmsghdr *
sys/netlink/netlink_snl.h
405
struct nlmsghdr *hdr;
sys/netlink/netlink_snl.h
477
snl_parse_attrs(struct snl_state *ss, struct nlmsghdr *hdr, int hdrlen,
sys/netlink/netlink_snl.h
488
snl_parse_fields(struct snl_state *ss, struct nlmsghdr *hdr, int hdrlen __unused,
sys/netlink/netlink_snl.h
507
snl_parse_fields(ss, (struct nlmsghdr *)hdr, parser->in_hdr_size,
sys/netlink/netlink_snl.h
521
snl_parse_nlmsg(struct snl_state *ss, struct nlmsghdr *hdr,
sys/netlink/netlink_snl.h
943
struct nlmsghdr *orig_hdr;
sys/netlink/netlink_snl.h
976
snl_parse_errmsg(struct snl_state *ss, struct nlmsghdr *hdr, struct snl_errmsg_data *e)
sys/netlink/netlink_snl.h
985
int attr_len = hdr->nlmsg_len - sizeof(struct nlmsghdr) - hdrlen;
sys/netlink/netlink_snl.h
987
snl_parse_fields(ss, (struct nlmsghdr *)errmsg, hdrlen, ps->fp, ps->fp_size, e);
sys/netlink/netlink_snl.h
994
struct nlmsghdr *hdr = snl_read_reply(ss, nlmsg_seq);
sys/netlink/netlink_snl_generic.h
125
struct nlmsghdr *hdr;
sys/netlink/netlink_snl_generic.h
35
static inline struct nlmsghdr *
sys/netlink/netlink_snl_generic.h
39
struct nlmsghdr *hdr;
sys/netlink/netlink_snl_generic.h
44
hdr = snl_reserve_msg_object(nw, struct nlmsghdr);
sys/netlink/netlink_sysevent.c
90
struct nlmsghdr hdr = { .nlmsg_type = ctrl_family_id };
sys/netlink/netlink_var.h
109
struct nlmsghdr;
sys/netlink/netlink_var.h
131
void nlmsg_ack(struct nlpcb *nlp, int error, struct nlmsghdr *nlmsg,
sys/netlink/netlink_var.h
170
bool (*nlmsg_end_dump)(struct nl_writer *nw, int error, struct nlmsghdr *hdr);
sys/netlink/netlink_var.h
87
#define ALIGNED_NL_SZ(_data) roundup2((((struct nlmsghdr *)(_data))->nlmsg_len), 16)
sys/netlink/route/iface.c
1074
rtnl_handle_getaddr(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt)
sys/netlink/route/iface.c
1126
handle_newaddr_inet(struct nlmsghdr *hdr, struct nl_parsed_ifa *attrs,
sys/netlink/route/iface.c
1210
handle_deladdr_inet(struct nlmsghdr *hdr, struct nl_parsed_ifa *attrs,
sys/netlink/route/iface.c
1231
handle_newaddr_inet6(struct nlmsghdr *hdr, struct nl_parsed_ifa *attrs,
sys/netlink/route/iface.c
1294
handle_deladdr_inet6(struct nlmsghdr *hdr, struct nl_parsed_ifa *attrs,
sys/netlink/route/iface.c
1315
rtnl_handle_addr(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt)
sys/netlink/route/iface.c
1379
struct nlmsghdr hdr = {};
sys/netlink/route/iface.c
1416
struct nlmsghdr hdr = { .nlmsg_type = nlmsg_type };
sys/netlink/route/iface.c
292
dump_iface(struct nl_writer *nw, if_t ifp, const struct nlmsghdr *hdr,
sys/netlink/route/iface.c
458
rtnl_handle_getlink(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt)
sys/netlink/route/iface.c
539
rtnl_handle_dellink(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt)
sys/netlink/route/iface.c
594
create_link(struct nlmsghdr *hdr, struct nl_parsed_link *lattrs,
sys/netlink/route/iface.c
619
modify_link(struct nlmsghdr *hdr, struct nl_parsed_link *lattrs,
sys/netlink/route/iface.c
64
struct nlmsghdr hdr;
sys/netlink/route/iface.c
676
rtnl_handle_newlink(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt)
sys/netlink/route/iface.c
970
const struct nlmsghdr *hdr)
sys/netlink/route/neigh.c
136
struct nlmsghdr *hdr = &wa->hdr;
sys/netlink/route/neigh.c
360
rtnl_handle_newneigh(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt)
sys/netlink/route/neigh.c
473
rtnl_handle_delneigh(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt)
sys/netlink/route/neigh.c
500
rtnl_handle_getneigh(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt)
sys/netlink/route/neigh.c
61
struct nlmsghdr hdr;
sys/netlink/route/nexthop.c
1001
rtnl_handle_getnhop(struct nlmsghdr *hdr, struct nlpcb *nlp,
sys/netlink/route/nexthop.c
379
struct nlmsghdr hdr;
sys/netlink/route/nexthop.c
389
dump_nhgrp(const struct user_nhop *unhop, struct nlmsghdr *hdr,
sys/netlink/route/nexthop.c
432
dump_nhop(const struct nhop_object *nh, uint32_t uidx, struct nlmsghdr *hdr,
sys/netlink/route/nexthop.c
492
dump_unhop(const struct user_nhop *unhop, struct nlmsghdr *hdr,
sys/netlink/route/nexthop.c
502
delete_unhop(struct unhop_ctl *ctl, struct nlmsghdr *hdr, uint32_t uidx)
sys/netlink/route/nexthop.c
877
rtnl_handle_newnhop(struct nlmsghdr *hdr, struct nlpcb *nlp,
sys/netlink/route/nexthop.c
962
rtnl_handle_delnhop(struct nlmsghdr *hdr, struct nlpcb *nlp,
sys/netlink/route/route_var.h
36
struct nlmsghdr;
sys/netlink/route/route_var.h
40
typedef int rtnl_msg_cb_f(struct nlmsghdr *hdr, struct nlpcb *nlp,
sys/netlink/route/rt.c
1007
rtnl_handle_delroute(struct nlmsghdr *hdr, struct nlpcb *nlp,
sys/netlink/route/rt.c
1037
rtnl_handle_getroute(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt)
sys/netlink/route/rt.c
1090
struct nlmsghdr hdr = {
sys/netlink/route/rt.c
268
dump_px(uint32_t fibnum, const struct nlmsghdr *hdr,
sys/netlink/route/rt.c
352
struct nlpcb *nlp, struct nlmsghdr *hdr)
sys/netlink/route/rt.c
547
struct nlmsghdr hdr;
sys/netlink/route/rt.c
626
struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netlink/route/rt.c
680
struct nlmsghdr *hdr, struct nl_writer *nw)
sys/netlink/route/rt.c
939
rtnl_handle_newroute(struct nlmsghdr *hdr, struct nlpcb *nlp,
sys/netpfil/pf/pf_nl.c
1093
pf_handle_killclear_states(struct nlmsghdr *hdr, struct nl_pstate *npt, int cmd)
sys/netpfil/pf/pf_nl.c
1134
pf_handle_clear_states(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1140
pf_handle_kill_states(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1156
pf_handle_set_statusif(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1227
pf_handle_get_status(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1293
pf_handle_clear_status(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1314
pf_handle_natlook(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1360
pf_handle_set_debug(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1390
pf_handle_set_timeout(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1403
pf_handle_get_timeout(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1448
pf_handle_set_limit(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1461
pf_handle_get_limit(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1493
pf_handle_begin_addrs(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
150
dump_state(struct nlpcb *nlp, const struct nlmsghdr *hdr, struct pf_kstate *s,
sys/netpfil/pf/pf_nl.c
1563
pf_handle_add_addr(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1581
pf_handle_get_addrs(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1616
pf_handle_get_addr(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1667
pf_handle_get_rulesets(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1699
pf_handle_get_ruleset(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1754
pf_handle_get_srcnodes(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1830
pf_handle_clear_tables(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1865
pf_handle_add_table(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1900
pf_handle_del_table(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
1953
pf_handle_get_tstats(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
2044
pf_handle_clear_tstats(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
2080
pf_handle_clear_addrs(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
2167
pf_handle_table_add_addrs(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
2198
pf_handle_table_del_addrs(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
2229
pf_handle_table_set_addrs(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
2281
pf_handle_table_get_addrs(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
2375
pf_handle_table_get_astats(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
2439
pf_handle_table_clear_astats(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
245
struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
2471
pf_handle_table_test_addrs(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
2523
pf_handle_state_limiter_add(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
2569
pf_handle_state_limiter_get(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
2628
pf_handle_source_limiter_add(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
2658
pf_handle_source_limiter_get(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
2727
pf_handle_source_get(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
2814
pf_handle_source_clear(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
302
struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
317
dump_creatorid(struct nlpcb *nlp, const struct nlmsghdr *hdr, uint32_t creator,
sys/netpfil/pf/pf_nl.c
339
pf_handle_getstates(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
357
pf_handle_getcreators(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
407
pf_handle_start(struct nlmsghdr *hdr __unused, struct nl_pstate *npt __unused)
sys/netpfil/pf/pf_nl.c
413
pf_handle_stop(struct nlmsghdr *hdr __unused, struct nl_pstate *npt __unused)
sys/netpfil/pf/pf_nl.c
813
pf_handle_addrule(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
842
pf_handle_getrules(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pf_nl.c
897
pf_handle_getrule(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pflow.c
1312
pflow_nl_list(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pflow.c
1351
pflow_nl_create(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pflow.c
1400
pflow_nl_del(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pflow.c
1455
pflow_nl_get(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/netpfil/pf/pflow.c
1710
pflow_nl_set(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/rpc/clnt_nl.c
107
static int clnt_nl_reply(struct nlmsghdr *, struct nl_pstate *);
sys/rpc/clnt_nl.c
393
clnt_nl_reply(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/tests/ktest.c
116
dump_mod_tests(struct nlmsghdr *hdr, struct nl_pstate *npt,
sys/tests/ktest.c
132
dump_tests(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/tests/ktest.c
163
run_test(struct nlmsghdr *hdr, struct nl_pstate *npt)
sys/tests/ktest.c
82
create_reply(struct nl_writer *nw, struct nlmsghdr *hdr, int cmd)
sys/tests/ktest.c
96
dump_mod_test(struct nlmsghdr *hdr, struct nl_pstate *npt,
sys/tests/ktest.h
40
struct nlmsghdr;
sys/tests/ktest.h
45
struct nlmsghdr *hdr;
tests/sys/netlink/netlink_socket.c
310
struct nlmsghdr hdr;
tests/sys/netlink/netlink_socket.c
63
static struct nlmsghdr hdr = (struct nlmsghdr) {
tests/sys/netlink/netlink_socket.c
66
.nlmsg_len = sizeof(struct nlmsghdr),
tests/sys/netlink/test_rtnl_gre.c
90
struct nlmsghdr *hdr, *rx_hdr;
tests/sys/netlink/test_snl.c
115
struct nlmsghdr *hdr = snl_create_msg_request(&nw, 255);
tests/sys/netlink/test_snl.c
123
struct nlmsghdr *rx_hdr = snl_read_reply(&ss, hdr->nlmsg_seq);
tests/sys/netlink/test_snl.c
130
ATF_CHECK(!memcmp(hdr, e.orig_hdr, sizeof(struct nlmsghdr)));
tests/sys/netlink/test_snl.c
154
struct nlmsghdr *hdr = snl_create_msg_request(&nw, 255);
tests/sys/netlink/test_snl.c
162
struct nlmsghdr *rx_hdr = snl_read_reply(&ss, hdr->nlmsg_seq);
tests/sys/netlink/test_snl.c
211
struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_GETLINK);
tests/sys/netlink/test_snl.c
74
struct nlmsghdr *hdr = snl_create_msg_request(&nw, 255);
tests/sys/netlink/test_snl.c
82
struct nlmsghdr *rx_hdr = snl_read_reply(&ss, hdr->nlmsg_seq);
tests/sys/netlink/test_snl.c
87
ATF_CHECK(rx_hdr->nlmsg_len == sizeof(struct nlmsghdr) + sizeof(struct nlmsgerr));
tests/sys/netlink/test_snl.c
90
ATF_CHECK(!memcmp(hdr, e.orig_hdr, sizeof(struct nlmsghdr)));
tests/sys/netlink/test_snl_generic.c
75
struct nlmsghdr *hdr;
usr.bin/genl/genl.c
265
parser_nlctrl_notify(struct snl_state *ss, struct nlmsghdr *hdr)
usr.bin/genl/genl.c
275
parser_nlsysevent(struct snl_state *ss, struct nlmsghdr *hdr)
usr.bin/genl/genl.c
289
parser_fallback(struct snl_state *ss __unused, struct nlmsghdr *hdr)
usr.bin/genl/genl.c
312
struct nlmsghdr *hdr;
usr.bin/genl/genl.c
392
struct nlmsghdr *hdr;
usr.bin/genl/genl.h
30
typedef void monitor_parser_t(struct snl_state *, struct nlmsghdr *);
usr.bin/genl/parser_rpc.c
62
parser_rpc(struct snl_state *ss __unused, struct nlmsghdr *hdr)
usr.bin/netstat/route_netlink.c
227
p_rtentry_netlink(struct snl_state *ss, const char *name, struct nlmsghdr *hdr)
usr.bin/netstat/route_netlink.c
276
struct nlmsghdr *hdr;
usr.bin/netstat/route_netlink.c
290
struct nlmsghdr hdr;
usr.bin/netstat/route_netlink.c
71
static void p_rtentry_netlink(struct snl_state *ss, const char *name, struct nlmsghdr *hdr);
usr.bin/netstat/route_netlink.c
81
struct nlmsghdr hdr;
usr.bin/netstat/route_netlink.c
95
struct nlmsghdr *hdr;
usr.sbin/arp/arp_netlink.c
113
struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_GETROUTE);
usr.sbin/arp/arp_netlink.c
289
struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_GETNEIGH);
usr.sbin/arp/arp_netlink.c
360
struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_DELNEIGH);
usr.sbin/arp/arp_netlink.c
405
struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_NEWNEIGH);
usr.sbin/arp/arp_netlink.c
61
struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_GETLINK);
usr.sbin/ndp/ndp_netlink.c
146
struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_GETROUTE);
usr.sbin/ndp/ndp_netlink.c
317
struct nlmsghdr *hdr;
usr.sbin/ndp/ndp_netlink.c
426
struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_DELNEIGH);
usr.sbin/ndp/ndp_netlink.c
490
struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_NEWNEIGH);
usr.sbin/ndp/ndp_netlink.c
73
struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_GETLINK);
usr.sbin/powerd/powerd.c
362
struct nlmsghdr *hdr;