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()
466 int nfnl_send(struct nfnl_handle *nfnlh, struct nlmsghdr *n) in nfnl_send()
519 struct nlmsghdr *nlh, unsigned int len, in nfnl_fill_hdr()
552 const struct nlmsghdr *nlh, in nfnl_parse_hdr()
598 || len < sizeof(struct nlmsghdr)) { in nfnl_recv()
645 int (*handler)(struct sockaddr_nl *, struct nlmsghdr *n, in nfnl_listen()
652 struct nlmsghdr *h; in nfnl_listen()
691 for (h = (struct nlmsghdr *)buf; remain >= sizeof(*h);) { in nfnl_listen()
724 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in nfnl_listen()
753 int nfnl_talk(struct nfnl_handle *nfnlh, struct nlmsghdr *n, pid_t peer, in nfnl_talk()
754 unsigned groups, struct nlmsghdr *answer, in nfnl_talk()
755 int (*junk)(struct sockaddr_nl *, struct nlmsghdr *n, void *), in nfnl_talk()
760 struct nlmsghdr *h; in nfnl_talk()
809 for (h = (struct nlmsghdr *)buf; status >= sizeof(*h); ) { in nfnl_talk()
856 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len)); in nfnl_talk()
875 int nfnl_addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data, in nfnl_addattr_l()
940 int nfnl_addattr8(struct nlmsghdr *n, int maxlen, int type, u_int8_t data) in nfnl_addattr8()
977 int nfnl_addattr16(struct nlmsghdr *n, int maxlen, int type, in nfnl_addattr16()
1015 int nfnl_addattr32(struct nlmsghdr *n, int maxlen, int type, in nfnl_addattr32()
1128 struct nlmsghdr *nfnl_get_msg_first(struct nfnl_handle *h, in nfnl_get_msg_first()
1132 struct nlmsghdr *nlh; in nfnl_get_msg_first()
1139 nlh = (struct nlmsghdr *)buf; in nfnl_get_msg_first()
1147 struct nlmsghdr *nfnl_get_msg_next(struct nfnl_handle *h, in nfnl_get_msg_next()
1151 struct nlmsghdr *nlh; in nfnl_get_msg_next()
1237 const struct nlmsghdr *nlh, in nfnl_check_attributes()
1292 static int __nfnl_handle_msg(struct nfnl_handle *h, struct nlmsghdr *nlh, in __nfnl_handle_msg()
1328 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in nfnl_handle_packet()
1330 if (nlh->nlmsg_len < sizeof(struct nlmsghdr) in nfnl_handle_packet()
1347 static int nfnl_is_error(struct nfnl_handle *h, struct nlmsghdr *nlh) in nfnl_is_error()
1366 static int nfnl_step(struct nfnl_handle *h, struct nlmsghdr *nlh) in nfnl_step()
1454 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in nfnl_process()
1481 struct nlmsghdr *nlh;
1503 struct nlmsghdr *nlh; in nfnl_iterator_create()
1517 nlh = (struct nlmsghdr *)buf; in nfnl_iterator_create()
1646 int nfnl_query(struct nfnl_handle *h, struct nlmsghdr *nlh) in nfnl_query()