Home
last modified time | relevance | path

Searched refs:protonum (Results 1 – 18 of 18) sorted by relevance

/external/libnetfilter_conntrack/src/conntrack/
Dsnprintf_xml.c56 const char *__proto2str(uint8_t protonum) in __proto2str() argument
58 return proto2str[protonum] ? proto2str[protonum] : "unknown"; in __proto2str()
61 const char *__l3proto2str(uint8_t protonum) in __l3proto2str() argument
63 return l3proto2str[protonum] ? l3proto2str[protonum] : "unknown"; in __l3proto2str()
130 switch(tuple->protonum) { in __snprintf_proto_xml()
321 tuple->protonum, __proto2str(tuple->protonum)); in __snprintf_tuple_xml()
Dcompare.c91 if (ct1->head.orig.protonum != ct2->head.orig.protonum) in cmp_orig_l4proto()
94 switch(ct1->head.orig.protonum) { in cmp_orig_l4proto()
212 if (ct1->repl.protonum != ct2->repl.protonum) in cmp_repl_l4proto()
215 switch(ct1->repl.protonum) { in cmp_repl_l4proto()
Dcopy.c142 dest->head.orig.protonum = orig->head.orig.protonum; in copy_attr_orig_l4proto()
148 dest->repl.protonum = orig->repl.protonum; in copy_attr_repl_l4proto()
198 dest->master.protonum = orig->master.protonum; in copy_attr_master_l4proto()
Dobjopt.c28 this->protonum = other->protonum; in __autocomplete()
33 switch(this->protonum) { in __autocomplete()
Dgetter.c109 return &ct->head.orig.protonum; in get_attr_orig_l4proto()
114 return &ct->repl.protonum; in get_attr_repl_l4proto()
154 return &ct->master.protonum; in get_attr_master_l4proto()
Dsnprintf_default.c27 proto2str[ct->head.orig.protonum] == NULL ? in __snprintf_protocol()
28 "unknown" : proto2str[ct->head.orig.protonum], in __snprintf_protocol()
29 ct->head.orig.protonum)); in __snprintf_protocol()
145 switch(tuple->protonum) { in __snprintf_proto()
Dbuild_mnl.c53 mnl_attr_put_u8(nlh, CTA_PROTO_NUM, t->protonum); in nfct_build_tuple_proto()
55 switch(t->protonum) { in nfct_build_tuple_proto()
118 switch(ct->head.orig.protonum) { in nfct_build_protoinfo()
253 switch (ct->head.orig.protonum) { in nfct_build_protonat()
Dbuild.c48 nfnl_addattr_l(&req->nlh, size, CTA_PROTO_NUM, &t->protonum, in __build_tuple_proto()
51 switch(t->protonum) { in __build_tuple_proto()
111 switch(ct->head.orig.protonum) { in __build_protoinfo()
264 switch (ct->head.orig.protonum) { in __build_protonat()
Dsetter.c180 ct->head.orig.protonum = *((uint8_t *) value); in set_attr_orig_l4proto()
186 ct->repl.protonum = *((uint8_t *) value); in set_attr_repl_l4proto()
350 ct->master.protonum = *((uint8_t *) value); in set_attr_master_l4proto()
Dparse.c98 tuple->protonum = *(uint8_t *)NFA_DATA(tb[CTA_PROTO_NUM-1]); in __parse_proto()
Dparse_mnl.c158 tuple->protonum = mnl_attr_get_u8(tb[CTA_PROTO_NUM]); in nfct_parse_proto()
/external/iptables/iptables/
Dnft-ipv6.c417 char protonum[strlen("255") + 1]; in nft_ipv6_xlate() local
420 snprintf(protonum, sizeof(protonum), "%u", in nft_ipv6_xlate()
422 protonum[sizeof(protonum) - 1] = '\0'; in nft_ipv6_xlate()
426 pent ? pent->p_name : protonum); in nft_ipv6_xlate()
Dnft-ipv4.c460 char protonum[strlen("255") + 1]; in nft_ipv4_xlate() local
463 snprintf(protonum, sizeof(protonum), "%u", in nft_ipv4_xlate()
465 protonum[sizeof(protonum) - 1] = '\0'; in nft_ipv4_xlate()
469 pent ? pent->p_name : protonum); in nft_ipv4_xlate()
/external/libnetfilter_conntrack/include/internal/
Dprototypes.h28 const char *__proto2str(uint8_t protonum);
29 const char *__l3proto2str(uint8_t protonum);
Dobject.h109 uint8_t protonum; member
/external/libnetfilter_conntrack/src/expect/
Dsnprintf_xml.c187 exp->expected.orig.protonum, in snprintf_expect_layer4_xml()
188 __proto2str(exp->expected.orig.protonum)); in snprintf_expect_layer4_xml()
Dsnprintf_default.c37 exp->expected.orig.protonum)); in __snprintf_expect_proto()
/external/iptables/extensions/
Dlibxt_conntrack.c37 __u16 protonum; member
349 sinfo->tuple[IP_CT_DIR_ORIGINAL].dst.protonum = cb->val.protocol; in conntrack_parse()
352 if (sinfo->tuple[IP_CT_DIR_ORIGINAL].dst.protonum == 0 in conntrack_parse()
709 printf(" %u", sinfo->tuple[IP_CT_DIR_ORIGINAL].dst.protonum); in matchinfo_print()