Home
last modified time | relevance | path

Searched refs:NFA_DATA (Results 1 – 11 of 11) sorted by relevance

/external/libnetfilter_conntrack/src/conntrack/
Dparse.c26 tuple->src.v4 = *(uint32_t *)NFA_DATA(tb[CTA_IP_V4_SRC-1]); in __parse_ip()
41 tuple->dst.v4 = *(uint32_t *)NFA_DATA(tb[CTA_IP_V4_DST-1]); in __parse_ip()
56 memcpy(&tuple->src.v6, NFA_DATA(tb[CTA_IP_V6_SRC-1]), in __parse_ip()
72 memcpy(&tuple->dst.v6, NFA_DATA(tb[CTA_IP_V6_DST-1]), in __parse_ip()
98 tuple->protonum = *(uint8_t *)NFA_DATA(tb[CTA_PROTO_NUM-1]); in __parse_proto()
114 *(uint16_t *)NFA_DATA(tb[CTA_PROTO_SRC_PORT-1]); in __parse_proto()
130 *(uint16_t *)NFA_DATA(tb[CTA_PROTO_DST_PORT-1]); in __parse_proto()
146 *(uint8_t *)NFA_DATA(tb[CTA_PROTO_ICMP_TYPE-1]); in __parse_proto()
152 *(uint8_t *)NFA_DATA(tb[CTA_PROTO_ICMP_CODE-1]); in __parse_proto()
158 *(uint16_t *)NFA_DATA(tb[CTA_PROTO_ICMP_ID-1]); in __parse_proto()
[all …]
Dapi.c929 nfnl_parse_attr(cda, CTA_MAX, NFA_DATA(nfhdr), len); in nfct_parse_conntrack()
Dparse_mnl.c744 ct->secctx = strdup(NFA_DATA(tb[CTA_SECCTX_NAME])); in nfct_parse_secctx()
/external/libnetfilter_conntrack/src/expect/
Dparse.c68 ntohl(*(uint32_t *)NFA_DATA(cda[CTA_EXPECT_TIMEOUT-1])); in __parse_expect()
74 ntohs(*(uint16_t *)NFA_DATA(cda[CTA_EXPECT_ZONE-1])); in __parse_expect()
79 ntohl(*(uint32_t *)NFA_DATA(cda[CTA_EXPECT_FLAGS-1])); in __parse_expect()
83 strncpy(exp->helper_name, NFA_DATA(cda[CTA_EXPECT_HELP_NAME-1]), in __parse_expect()
89 ntohl(*(uint32_t *)NFA_DATA(cda[CTA_EXPECT_CLASS-1])); in __parse_expect()
111 NFA_DATA(tb[CTA_EXPECT_NAT_DIR-1]))); in __parse_expect()
116 strcpy(exp->expectfn, NFA_DATA(cda[CTA_EXPECT_FN-1])); in __parse_expect()
Dapi.c643 nfnl_parse_attr(cda, CTA_EXPECT_MAX, NFA_DATA(nfhdr), len); in nfexp_parse_expect()
/external/libnfnetlink/include/libnfnetlink/
Dlibnfnetlink.h173 __ret = *(type *)NFA_DATA(tb[attr-1]); \
180 __ret = NFA_DATA(tb[attr-1]); \
198 nfnl_parse_attr((tb), (max), NFA_DATA((nfa)), NFA_PAYLOAD((nfa)))
Dlinux_nfnetlink_compat.h42 #define NFA_DATA(nfa) ((void *)(((char *)(nfa)) + NFA_LENGTH(0))) macro
/external/kernel-headers/original/uapi/linux/netfilter/
Dnfnetlink_compat.h45 #define NFA_DATA(nfa) ((void *)(((char *)(nfa)) + NFA_LENGTH(0))) macro
/external/libnl/include/linux-private/linux/netfilter/
Dnfnetlink_compat.h44 #define NFA_DATA(nfa) ((void *)(((char *)(nfa)) + NFA_LENGTH(0))) macro
/external/libpcap/
Dpcap-netfilter-linux.c207 … const struct nfqnl_msg_packet_hdr *pkt_hdr = (const struct nfqnl_msg_packet_hdr *) NFA_DATA(attr); in netfilter_read_linux()
229 payload = NFA_DATA(payload_attr); in netfilter_read_linux()
344 memcpy(NFA_DATA(nfa), mynfa->data, mynfa->nfa_len); in netfilter_send_config_msg()
/external/libnfnetlink/src/
Dlibnfnetlink.c893 memcpy(NFA_DATA(nfa), data, alen); in nfnl_addattr_l()
926 memcpy(NFA_DATA(subnfa), data, alen); in nfnl_nfa_addattr_l()