Searched defs:nlh (Results 76 - 83 of 83) sorted by relevance

1234

/external/libnetfilter_conntrack/src/conntrack/
H A Dapi.c299 int (*cb)(const struct nlmsghdr *nlh,
812 nfnl_fill_hdr(ssh, &req->nlh, 0, *family, 0, IPCTNL_MSG_CT_DELETE, NLM_F_REQUEST|NLM_F_ACK);
815 nfnl_fill_hdr(ssh, &req->nlh, 0, *family, 0, IPCTNL_MSG_CT_GET, NLM_F_REQUEST|NLM_F_DUMP);
818 nfnl_fill_hdr(ssh, &req->nlh, 0, *family, 0, IPCTNL_MSG_CT_GET_CTRZERO, NLM_F_REQUEST|NLM_F_DUMP);
824 nfnl_fill_hdr(ssh, &req->nlh, 0, AF_UNSPEC, 0, IPCTNL_MSG_CT_GET, NLM_F_REQUEST|NLM_F_DUMP);
828 nfnl_fill_hdr(ssh, &req->nlh, 0, AF_UNSPEC, 0, IPCTNL_MSG_CT_GET_CTRZERO, NLM_F_REQUEST|NLM_F_DUMP);
886 * \param nlh pointer to the netlink message
908 const struct nlmsghdr *nlh,
912 int len = nlh->nlmsg_len;
913 struct nfgenmsg *nfhdr = NLMSG_DATA(nlh);
297 nfct_callback_register2(struct nfct_handle *h, enum nf_conntrack_msg_type type, int (*cb)(const struct nlmsghdr *nlh, enum nf_conntrack_msg_type type, struct nf_conntrack *ct, void *data), void *data) argument
907 nfct_parse_conntrack(enum nf_conntrack_msg_type type, const struct nlmsghdr *nlh, struct nf_conntrack *ct) argument
[all...]
/external/libnfnetlink/src/
H A Dlibnfnetlink.c98 void nfnl_dump_packet(struct nlmsghdr *nlh, int received_len, char *desc) argument
100 void *nlmsg_data = NLMSG_DATA(nlh);
101 struct nfattr *nfa = NFM_NFA(NLMSG_DATA(nlh));
102 int len = NFM_PAYLOAD(nlh);
105 printf(" nlmsghdr = %p, received_len = %u\n", nlh, received_len);
106 printf(" NLMSG_DATA(nlh) = %p (+%td bytes)\n", nlmsg_data,
107 (nlmsg_data - (void *)nlh));
108 printf(" NFM_NFA(NLMSG_DATA(nlh)) = %p (+%td bytes)\n",
109 nfa, ((void *)nfa - (void *)nlh));
110 printf(" NFM_PAYLOAD(nlh)
436 nfnl_fill_hdr(struct nfnl_subsys_handle *ssh, struct nlmsghdr *nlh, unsigned int len, u_int8_t family, u_int16_t res_id, u_int16_t msg_type, u_int16_t msg_flags) argument
469 nfnl_parse_hdr(const struct nfnl_handle *nfnlh, const struct nlmsghdr *nlh, struct nfgenmsg **genmsg) argument
1050 struct nlmsghdr *nlh; local
1069 struct nlmsghdr *nlh; local
1154 nfnl_check_attributes(const struct nfnl_handle *h, const struct nlmsghdr *nlh, struct nfattr *nfa[]) argument
1210 __nfnl_handle_msg(struct nfnl_handle *h, struct nlmsghdr *nlh, int len) argument
1246 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; local
1265 nfnl_is_error(struct nfnl_handle *h, struct nlmsghdr *nlh) argument
1284 nfnl_step(struct nfnl_handle *h, struct nlmsghdr *nlh) argument
1372 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; local
1399 struct nlmsghdr *nlh; member in struct:nfnl_iterator
1421 struct nlmsghdr *nlh; local
1564 nfnl_query(struct nfnl_handle *h, struct nlmsghdr *nlh) argument
[all...]
/external/libnl/lib/
H A Dmsg.c101 * @arg nlh Netlink message header
105 void *nlmsg_data(const struct nlmsghdr *nlh) argument
107 return (unsigned char *) nlh + NLMSG_HDRLEN;
110 void *nlmsg_tail(const struct nlmsghdr *nlh) argument
112 return (unsigned char *) nlh + NLMSG_ALIGN(nlh->nlmsg_len);
117 * @arg nlh Netlink message header
121 int nlmsg_datalen(const struct nlmsghdr *nlh) argument
123 return nlh->nlmsg_len - NLMSG_HDRLEN;
126 static int nlmsg_len(const struct nlmsghdr *nlh) argument
143 nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen) argument
154 nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) argument
166 nlmsg_valid_hdr(const struct nlmsghdr *nlh, int hdrlen) argument
179 nlmsg_ok(const struct nlmsghdr *nlh, int remaining) argument
194 nlmsg_next(struct nlmsghdr *nlh, int *remaining) argument
213 nlmsg_parse(struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, struct nla_policy *policy) argument
231 nlmsg_find_attr(struct nlmsghdr *nlh, int hdrlen, int attrtype) argument
244 nlmsg_validate(struct nlmsghdr *nlh, int hdrlen, int maxtype, struct nla_policy *policy) argument
349 struct nlmsghdr nlh = { local
509 struct nlmsghdr *nlh; local
798 struct nlmsghdr *nlh = nlmsg_hdr(msg); local
[all...]
/external/libnl/lib/route/
H A Daddr.c197 struct nlmsghdr *nlh, struct nl_parser_param *pp)
210 addr->ce_msgtype = nlh->nlmsg_type;
212 err = nlmsg_parse(nlh, sizeof(*ifa), tb, IFA_MAX, addr_policy);
216 ifa = nlmsg_data(nlh);
196 addr_msg_parser(struct nl_cache_ops *ops, struct sockaddr_nl *who, struct nlmsghdr *nlh, struct nl_parser_param *pp) argument
H A Droute_obj.c1007 int rtnl_route_parse(struct nlmsghdr *nlh, struct rtnl_route **result) argument
1022 route->ce_msgtype = nlh->nlmsg_type;
1024 err = nlmsg_parse(nlh, sizeof(struct rtmsg), tb, RTA_MAX, route_policy);
1028 rtm = nlmsg_data(nlh);
/external/iptables/iptables/
H A Dnft.c58 int mnl_talk(struct nft_handle *h, struct nlmsghdr *nlh, argument
59 int (*cb)(const struct nlmsghdr *nlh, void *data),
65 if (mnl_socket_sendto(h->nl, nlh, nlh->nlmsg_len) < 0)
527 struct nlmsghdr *nlh; local
530 nlh = nftnl_table_nlmsg_build_hdr(buf, NFT_MSG_NEWTABLE, h->family,
532 nftnl_table_nlmsg_build_payload(nlh, t);
540 mnl_nlmsg_fprintf(stdout, nlh, nlh->nlmsg_len, sizeof(struct nfgenmsg));
543 ret = mnl_talk(h, nlh, NUL
597 struct nlmsghdr *nlh; local
800 nft_chain_print_debug(struct nftnl_chain *c, struct nlmsghdr *nlh) argument
994 nft_rule_print_debug(struct nftnl_rule *r, struct nlmsghdr *nlh) argument
1167 nftnl_chain_list_cb(const struct nlmsghdr *nlh, void *data) argument
1191 struct nlmsghdr *nlh; local
1269 nftnl_rule_list_cb(const struct nlmsghdr *nlh, void *data) argument
1294 struct nlmsghdr *nlh; local
1443 struct nlmsghdr *nlh; local
1460 struct nlmsghdr *nlh; local
1615 struct nlmsghdr *nlh; local
1629 nftnl_table_list_cb(const struct nlmsghdr *nlh, void *data) argument
1653 struct nlmsghdr *nlh; local
2290 struct nlmsghdr *nlh; local
2302 struct nlmsghdr *nlh; local
2315 struct nlmsghdr *nlh; local
2425 struct nlmsghdr *nlh; local
2680 struct nlmsghdr *nlh; local
[all...]
/external/toybox/toys/pending/
H A Dip.c144 struct nlmsghdr nlh; member in struct:__anon20992
150 req.nlh.nlmsg_len = sizeof(req);
151 req.nlh.nlmsg_type = type;
152 req.nlh.nlmsg_flags = flags;
/external/iproute2/misc/
H A Dss.c50 struct nlmsghdr nlh; \
53 .nlh = { \
1932 static void tcp_show_info(const struct nlmsghdr *nlh, struct inet_diag_msg *r, argument
2045 static int inet_show_sock(struct nlmsghdr *nlh, struct filter *f, int protocol) argument
2048 struct inet_diag_msg *r = NLMSG_DATA(nlh);
2052 nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*r)));
2111 tcp_show_info(nlh, r, tb);
2122 struct nlmsghdr nlh; member in struct:__anon7996
2137 req.nlh.nlmsg_len = sizeof(req);
2139 req.nlh
2710 unix_show_sock(const struct sockaddr_nl *addr, struct nlmsghdr *nlh, void *arg) argument
2956 packet_show_sock(const struct sockaddr_nl *addr, struct nlmsghdr *nlh, void *arg) argument
3244 netlink_show_sock(const struct sockaddr_nl *addr, struct nlmsghdr *nlh, void *arg) argument
3332 generic_show_sock(const struct sockaddr_nl *addr, struct nlmsghdr *nlh, void *arg) argument
[all...]

Completed in 339 milliseconds

1234