Lines Matching refs:nlmsghdr

94 	struct nlmsghdr 	*last_nlhdr;
98 void nfnl_dump_packet(struct nlmsghdr *nlh, int received_len, char *desc) in nfnl_dump_packet()
384 int nfnl_send(struct nfnl_handle *nfnlh, struct nlmsghdr *n) in nfnl_send()
437 struct nlmsghdr *nlh, unsigned int len, in nfnl_fill_hdr()
470 const struct nlmsghdr *nlh, in nfnl_parse_hdr()
516 || len < sizeof(struct nlmsghdr)) { in nfnl_recv()
563 int (*handler)(struct sockaddr_nl *, struct nlmsghdr *n, in nfnl_listen()
570 struct nlmsghdr *h; in nfnl_listen()
609 for (h = (struct nlmsghdr *)buf; remain >= sizeof(*h);) { in nfnl_listen()
642 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in nfnl_listen()
671 int nfnl_talk(struct nfnl_handle *nfnlh, struct nlmsghdr *n, pid_t peer, in nfnl_talk()
672 unsigned groups, struct nlmsghdr *answer, in nfnl_talk()
673 int (*junk)(struct sockaddr_nl *, struct nlmsghdr *n, void *), in nfnl_talk()
678 struct nlmsghdr *h; in nfnl_talk()
727 for (h = (struct nlmsghdr *)buf; status >= sizeof(*h); ) { in nfnl_talk()
774 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in nfnl_talk()
793 int nfnl_addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data, in nfnl_addattr_l()
858 int nfnl_addattr8(struct nlmsghdr *n, int maxlen, int type, u_int8_t data) in nfnl_addattr8()
895 int nfnl_addattr16(struct nlmsghdr *n, int maxlen, int type, in nfnl_addattr16()
933 int nfnl_addattr32(struct nlmsghdr *n, int maxlen, int type, in nfnl_addattr32()
1046 struct nlmsghdr *nfnl_get_msg_first(struct nfnl_handle *h, in nfnl_get_msg_first()
1050 struct nlmsghdr *nlh; in nfnl_get_msg_first()
1057 nlh = (struct nlmsghdr *)buf; in nfnl_get_msg_first()
1065 struct nlmsghdr *nfnl_get_msg_next(struct nfnl_handle *h, in nfnl_get_msg_next()
1069 struct nlmsghdr *nlh; in nfnl_get_msg_next()
1155 const struct nlmsghdr *nlh, in nfnl_check_attributes()
1210 static int __nfnl_handle_msg(struct nfnl_handle *h, struct nlmsghdr *nlh, in __nfnl_handle_msg()
1246 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in nfnl_handle_packet()
1248 if (nlh->nlmsg_len < sizeof(struct nlmsghdr) in nfnl_handle_packet()
1265 static int nfnl_is_error(struct nfnl_handle *h, struct nlmsghdr *nlh) in nfnl_is_error()
1284 static int nfnl_step(struct nfnl_handle *h, struct nlmsghdr *nlh) in nfnl_step()
1372 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in nfnl_process()
1399 struct nlmsghdr *nlh;
1421 struct nlmsghdr *nlh; in nfnl_iterator_create()
1435 nlh = (struct nlmsghdr *)buf; in nfnl_iterator_create()
1564 int nfnl_query(struct nfnl_handle *h, struct nlmsghdr *nlh) in nfnl_query()