Home | History | Annotate | Download | only in src

Lines Matching refs:nlmsghdr

94 	struct nlmsghdr 	*last_nlhdr;
98 void nfnl_dump_packet(struct nlmsghdr *nlh, int received_len, char *desc)
105 printf(" nlmsghdr = %p, received_len = %u\n", nlh, received_len);
466 int nfnl_send(struct nfnl_handle *nfnlh, struct nlmsghdr *n)
516 * at least the size of struct nlmsghdr + struct nfgenmsg.
519 struct nlmsghdr *nlh, unsigned int len,
552 const struct nlmsghdr *nlh,
598 || len < sizeof(struct nlmsghdr)) {
645 int (*handler)(struct sockaddr_nl *, struct nlmsghdr *n,
652 struct nlmsghdr *h;
691 for (h = (struct nlmsghdr *)buf; remain >= sizeof(*h);) {
724 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len));
753 int nfnl_talk(struct nfnl_handle *nfnlh, struct nlmsghdr *n, pid_t peer,
754 unsigned groups, struct nlmsghdr *answer,
755 int (*junk)(struct sockaddr_nl *, struct nlmsghdr *n, void *),
760 struct nlmsghdr *h;
809 for (h = (struct nlmsghdr *)buf; status >= sizeof(*h); ) {
856 h = (struct nlmsghdr *)((char *)h + NLMSG_ALIGN(len));
868 * nfnl_addattr_l - Add variable length attribute to nlmsghdr
875 int nfnl_addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data,
933 * nfnl_addattr8 - Add u_int8_t attribute to nlmsghdr
940 int nfnl_addattr8(struct nlmsghdr *n, int maxlen, int type, u_int8_t data)
969 * nfnl_addattr16 - Add u_int16_t attribute to nlmsghdr
977 int nfnl_addattr16(struct nlmsghdr *n, int maxlen, int type,
1007 * nfnl_addattr32 - Add u_int32_t attribute to nlmsghdr
1015 int nfnl_addattr32(struct nlmsghdr *n, int maxlen, int type,
1128 struct nlmsghdr *nfnl_get_msg_first(struct nfnl_handle *h,
1132 struct nlmsghdr *nlh;
1139 nlh = (struct nlmsghdr *)buf;
1147 struct nlmsghdr *nfnl_get_msg_next(struct nfnl_handle *h,
1151 struct nlmsghdr *nlh;
1237 const struct nlmsghdr *nlh,
1292 nlmsghdr *nlh,
1328 struct nlmsghdr *nlh = (struct nlmsghdr *)buf;
1330 if (nlh->nlmsg_len < sizeof(struct nlmsghdr)
1347 static int nfnl_is_error(struct nfnl_handle *h, struct nlmsghdr *nlh)
1366 static int nfnl_step(struct nfnl_handle *h, struct nlmsghdr *nlh)
1454 struct nlmsghdr *nlh = (struct nlmsghdr *)buf;
1481 struct nlmsghdr *nlh;
1503 struct nlmsghdr *nlh;
1517 nlh = (struct nlmsghdr *)buf;
1646 int nfnl_query(struct nfnl_handle *h, struct nlmsghdr *nlh)