/external/tcpdump/ |
D | print-802_15_4.c | 69 u_int hdrlen; in ieee802_15_4_if_print() local 78 hdrlen = 3; in ieee802_15_4_if_print() 102 return hdrlen; in ieee802_15_4_if_print() 110 return hdrlen; in ieee802_15_4_if_print() 114 return hdrlen; in ieee802_15_4_if_print() 119 hdrlen += 2; in ieee802_15_4_if_print() 122 return hdrlen; in ieee802_15_4_if_print() 128 hdrlen += 2; in ieee802_15_4_if_print() 133 return hdrlen; in ieee802_15_4_if_print() 138 hdrlen += 2; in ieee802_15_4_if_print() [all …]
|
D | print-pktap.c | 74 uint32_t dlt, hdrlen; in pktap_header_print() local 80 hdrlen = EXTRACT_LE_32BITS(&hdr->pkt_len); in pktap_header_print() 84 (dltname != NULL ? dltname : "UNKNOWN"), dlt, hdrlen)); in pktap_header_print() 102 uint32_t dlt, hdrlen, rectype; in pktap_if_print() local 115 hdrlen = EXTRACT_LE_32BITS(&hdr->pkt_len); in pktap_if_print() 116 if (hdrlen < sizeof(pktap_header_t)) { in pktap_if_print() 127 if (caplen < hdrlen || length < hdrlen) { in pktap_if_print() 129 return (hdrlen); in pktap_if_print() 135 length -= hdrlen; in pktap_if_print() 136 caplen -= hdrlen; in pktap_if_print() [all …]
|
D | print-llc.c | 155 int hdrlen; in llc_print() local 184 hdrlen = 3; /* DSAP, SSAP, 1-byte control field */ in llc_print() 206 hdrlen = 4; /* DSAP, SSAP, 2-byte control field */ in llc_print() 254 p += hdrlen; in llc_print() 255 length -= hdrlen; in llc_print() 256 caplen -= hdrlen; in llc_print() 271 return (-(hdrlen + 5)); /* include LLC and SNAP header */ in llc_print() 273 return (hdrlen + 5); /* include LLC and SNAP header */ in llc_print() 279 return (hdrlen); in llc_print() 291 return (hdrlen); in llc_print() [all …]
|
D | print-pflog.c | 112 u_int hdrlen; in pflog_if_print() local 129 hdrlen = BPF_WORDALIGN(hdr->length); in pflog_if_print() 131 if (caplen < hdrlen) { in pflog_if_print() 133 return (hdrlen); /* XXX: true? */ in pflog_if_print() 143 length -= hdrlen; in pflog_if_print() 144 caplen -= hdrlen; in pflog_if_print() 145 p += hdrlen; in pflog_if_print() 174 return (hdrlen); in pflog_if_print() 177 return (hdrlen); in pflog_if_print()
|
/external/libnl/lib/genl/ |
D | genl.c | 117 int genlmsg_valid_hdr(struct nlmsghdr *nlh, int hdrlen) in genlmsg_valid_hdr() argument 125 if (genlmsg_len(ghdr) < NLMSG_ALIGN(hdrlen)) in genlmsg_valid_hdr() 151 int genlmsg_validate(struct nlmsghdr *nlh, int hdrlen, int maxtype, in genlmsg_validate() argument 156 if (!genlmsg_valid_hdr(nlh, hdrlen)) in genlmsg_validate() 160 return nla_validate(genlmsg_attrdata(ghdr, hdrlen), in genlmsg_validate() 161 genlmsg_attrlen(ghdr, hdrlen), maxtype, policy); in genlmsg_validate() 191 int genlmsg_parse(struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], in genlmsg_parse() argument 196 if (!genlmsg_valid_hdr(nlh, hdrlen)) in genlmsg_parse() 200 return nla_parse(tb, maxtype, genlmsg_attrdata(ghdr, hdrlen), in genlmsg_parse() 201 genlmsg_attrlen(ghdr, hdrlen), policy); in genlmsg_parse() [all …]
|
/external/strace/tests-m32/ |
D | nlattr_ifla_af_spec.c | 72 struct nlattr *nla = NLMSG_ATTR(nlh, hdrlen); \ 75 .nla_len = msg_len - NLMSG_SPACE(hdrlen) \ 86 msg_len - NLMSG_SPACE(hdrlen) - NLA_HDRLEN); \ 174 const unsigned int hdrlen = sizeof(struct ifinfomsg); in main() local 175 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), 3 * NLA_HDRLEN + 256); in main() 182 TEST_NESTED_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 188 TEST_NESTED_NLATTR_OBJECT_EX_(fd, nlh0, hdrlen, in main() 193 TEST_NESTED_NLATTR_OBJECT_EX_(fd, nlh0, hdrlen, in main() 201 TEST_NESTED_NLATTR_ARRAY_EX(fd, nlh0, hdrlen, in main() 207 TEST_NESTED_NLATTR_OBJECT_EX_(fd, nlh0, hdrlen, in main() [all …]
|
D | nlattr_rtmsg.c | 83 const unsigned int hdrlen = sizeof(struct rtmsg); in main() local 86 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), in main() 93 TEST_NLATTR_(fd, nlh0, hdrlen, in main() 99 TEST_NLATTR(fd, nlh0, hdrlen, in main() 105 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 111 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 120 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 131 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 144 TEST_NLATTR(fd, nlh0, hdrlen, in main() 162 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() [all …]
|
D | nlattr_inet_diag_req_v2.c | 43 static const unsigned int hdrlen = sizeof(struct inet_diag_req_v2); variable 94 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in test_inet_diag_bc_op() 126 TEST_NLATTR(fd, nlh0, hdrlen, in test_inet_diag_bc_s_cond() 134 TEST_NLATTR(fd, nlh0, hdrlen, in test_inet_diag_bc_s_cond() 142 TEST_NLATTR(fd, nlh0, hdrlen, in test_inet_diag_bc_s_cond() 179 TEST_NLATTR(fd, nlh0, hdrlen, in test_in_addr() 189 TEST_NLATTR(fd, nlh0, hdrlen, in test_in_addr() 200 TEST_NLATTR(fd, nlh0, hdrlen, in test_in_addr() 230 TEST_NLATTR(fd, nlh0, hdrlen, in test_in6_addr() 240 TEST_NLATTR(fd, nlh0, hdrlen, in test_in6_addr() [all …]
|
D | nlattr_inet_diag_msg.c | 139 const unsigned int hdrlen = sizeof(struct inet_diag_msg); in main() local 140 void *const nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), in main() 147 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 156 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 166 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 176 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 186 TEST_NLATTR_ARRAY(fd, nlh0, hdrlen, in main() 192 TEST_NLATTR_ARRAY(fd, nlh0, hdrlen, in main() 196 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 201 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() [all …]
|
D | nlattr_fib_rule_hdr.c | 94 const unsigned int hdrlen = sizeof(struct rtmsg); in main() local 95 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), NLA_HDRLEN + 8); in main() 103 TEST_NLATTR_(fd, nlh0, hdrlen, in main() 109 TEST_NLATTR(fd, nlh0, hdrlen, in main() 115 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 125 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 134 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 156 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 173 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 183 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() [all …]
|
D | nlattr_crypto_user_alg.c | 74 const unsigned int hdrlen = sizeof(struct crypto_user_alg); in main() local 79 void *const nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), in main() 87 TEST_NLATTR(fd, nlh0, hdrlen, in main() 93 TEST_NLATTR(fd, nlh0, hdrlen, in main() 105 TEST_NLATTR_OBJECT_EX(fd, nlh0, hdrlen, in main() 124 TEST_NLATTR_OBJECT_EX(fd, nlh0, hdrlen, in main() 144 TEST_NLATTR_OBJECT_EX(fd, nlh0, hdrlen, in main() 160 TEST_NLATTR_OBJECT_EX(fd, nlh0, hdrlen, in main() 176 TEST_NLATTR_OBJECT_EX(fd, nlh0, hdrlen, in main()
|
D | nlattr_tc_stats.c | 39 const unsigned int hdrlen = sizeof(struct tcmsg); variable 58 .nla_len = msg_len - NLMSG_SPACE(hdrlen), in init_tcmsg() 71 msg_len, msg_len - NLMSG_SPACE(hdrlen)); in print_tcmsg() 80 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), NLA_HDRLEN + 8 * 5); in main() 91 TEST_NESTED_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 103 TEST_NESTED_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 119 TEST_NESTED_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 135 TEST_NESTED_NLATTR_OBJECT(fd, nlh0, hdrlen, in main()
|
D | nlattr_ifaddrmsg.c | 100 const unsigned int hdrlen = sizeof(struct ifaddrmsg); in main() local 101 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), in main() 111 TEST_NLATTR_(fd, nlh0, hdrlen, in main() 117 TEST_NLATTR(fd, nlh0, hdrlen, in main() 127 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 137 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 142 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 151 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main()
|
/external/strace/tests-mx32/ |
D | nlattr_ifla_af_spec.c | 72 struct nlattr *nla = NLMSG_ATTR(nlh, hdrlen); \ 75 .nla_len = msg_len - NLMSG_SPACE(hdrlen) \ 86 msg_len - NLMSG_SPACE(hdrlen) - NLA_HDRLEN); \ 174 const unsigned int hdrlen = sizeof(struct ifinfomsg); in main() local 175 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), 3 * NLA_HDRLEN + 256); in main() 182 TEST_NESTED_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 188 TEST_NESTED_NLATTR_OBJECT_EX_(fd, nlh0, hdrlen, in main() 193 TEST_NESTED_NLATTR_OBJECT_EX_(fd, nlh0, hdrlen, in main() 201 TEST_NESTED_NLATTR_ARRAY_EX(fd, nlh0, hdrlen, in main() 207 TEST_NESTED_NLATTR_OBJECT_EX_(fd, nlh0, hdrlen, in main() [all …]
|
D | nlattr_rtmsg.c | 83 const unsigned int hdrlen = sizeof(struct rtmsg); in main() local 86 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), in main() 93 TEST_NLATTR_(fd, nlh0, hdrlen, in main() 99 TEST_NLATTR(fd, nlh0, hdrlen, in main() 105 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 111 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 120 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 131 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 144 TEST_NLATTR(fd, nlh0, hdrlen, in main() 162 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() [all …]
|
D | nlattr_inet_diag_req_v2.c | 43 static const unsigned int hdrlen = sizeof(struct inet_diag_req_v2); variable 94 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in test_inet_diag_bc_op() 126 TEST_NLATTR(fd, nlh0, hdrlen, in test_inet_diag_bc_s_cond() 134 TEST_NLATTR(fd, nlh0, hdrlen, in test_inet_diag_bc_s_cond() 142 TEST_NLATTR(fd, nlh0, hdrlen, in test_inet_diag_bc_s_cond() 179 TEST_NLATTR(fd, nlh0, hdrlen, in test_in_addr() 189 TEST_NLATTR(fd, nlh0, hdrlen, in test_in_addr() 200 TEST_NLATTR(fd, nlh0, hdrlen, in test_in_addr() 230 TEST_NLATTR(fd, nlh0, hdrlen, in test_in6_addr() 240 TEST_NLATTR(fd, nlh0, hdrlen, in test_in6_addr() [all …]
|
D | nlattr_inet_diag_msg.c | 139 const unsigned int hdrlen = sizeof(struct inet_diag_msg); in main() local 140 void *const nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), in main() 147 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 156 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 166 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 176 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 186 TEST_NLATTR_ARRAY(fd, nlh0, hdrlen, in main() 192 TEST_NLATTR_ARRAY(fd, nlh0, hdrlen, in main() 196 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 201 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() [all …]
|
D | nlattr_fib_rule_hdr.c | 94 const unsigned int hdrlen = sizeof(struct rtmsg); in main() local 95 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), NLA_HDRLEN + 8); in main() 103 TEST_NLATTR_(fd, nlh0, hdrlen, in main() 109 TEST_NLATTR(fd, nlh0, hdrlen, in main() 115 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 125 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 134 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 156 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 173 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 183 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() [all …]
|
D | nlattr_crypto_user_alg.c | 74 const unsigned int hdrlen = sizeof(struct crypto_user_alg); in main() local 79 void *const nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), in main() 87 TEST_NLATTR(fd, nlh0, hdrlen, in main() 93 TEST_NLATTR(fd, nlh0, hdrlen, in main() 105 TEST_NLATTR_OBJECT_EX(fd, nlh0, hdrlen, in main() 124 TEST_NLATTR_OBJECT_EX(fd, nlh0, hdrlen, in main() 144 TEST_NLATTR_OBJECT_EX(fd, nlh0, hdrlen, in main() 160 TEST_NLATTR_OBJECT_EX(fd, nlh0, hdrlen, in main() 176 TEST_NLATTR_OBJECT_EX(fd, nlh0, hdrlen, in main()
|
/external/strace/tests/ |
D | nlattr_ifla_af_spec.c | 72 struct nlattr *nla = NLMSG_ATTR(nlh, hdrlen); \ 75 .nla_len = msg_len - NLMSG_SPACE(hdrlen) \ 86 msg_len - NLMSG_SPACE(hdrlen) - NLA_HDRLEN); \ 174 const unsigned int hdrlen = sizeof(struct ifinfomsg); in main() local 175 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), 3 * NLA_HDRLEN + 256); in main() 182 TEST_NESTED_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 188 TEST_NESTED_NLATTR_OBJECT_EX_(fd, nlh0, hdrlen, in main() 193 TEST_NESTED_NLATTR_OBJECT_EX_(fd, nlh0, hdrlen, in main() 201 TEST_NESTED_NLATTR_ARRAY_EX(fd, nlh0, hdrlen, in main() 207 TEST_NESTED_NLATTR_OBJECT_EX_(fd, nlh0, hdrlen, in main() [all …]
|
D | nlattr_rtmsg.c | 83 const unsigned int hdrlen = sizeof(struct rtmsg); in main() local 86 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), in main() 93 TEST_NLATTR_(fd, nlh0, hdrlen, in main() 99 TEST_NLATTR(fd, nlh0, hdrlen, in main() 105 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 111 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 120 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 131 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 144 TEST_NLATTR(fd, nlh0, hdrlen, in main() 162 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() [all …]
|
D | nlattr_inet_diag_req_v2.c | 43 static const unsigned int hdrlen = sizeof(struct inet_diag_req_v2); variable 94 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in test_inet_diag_bc_op() 126 TEST_NLATTR(fd, nlh0, hdrlen, in test_inet_diag_bc_s_cond() 134 TEST_NLATTR(fd, nlh0, hdrlen, in test_inet_diag_bc_s_cond() 142 TEST_NLATTR(fd, nlh0, hdrlen, in test_inet_diag_bc_s_cond() 179 TEST_NLATTR(fd, nlh0, hdrlen, in test_in_addr() 189 TEST_NLATTR(fd, nlh0, hdrlen, in test_in_addr() 200 TEST_NLATTR(fd, nlh0, hdrlen, in test_in_addr() 230 TEST_NLATTR(fd, nlh0, hdrlen, in test_in6_addr() 240 TEST_NLATTR(fd, nlh0, hdrlen, in test_in6_addr() [all …]
|
D | nlattr_inet_diag_msg.c | 139 const unsigned int hdrlen = sizeof(struct inet_diag_msg); in main() local 140 void *const nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), in main() 147 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 156 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 166 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 176 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 186 TEST_NLATTR_ARRAY(fd, nlh0, hdrlen, in main() 192 TEST_NLATTR_ARRAY(fd, nlh0, hdrlen, in main() 196 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 201 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() [all …]
|
D | nlattr_fib_rule_hdr.c | 94 const unsigned int hdrlen = sizeof(struct rtmsg); in main() local 95 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), NLA_HDRLEN + 8); in main() 103 TEST_NLATTR_(fd, nlh0, hdrlen, in main() 109 TEST_NLATTR(fd, nlh0, hdrlen, in main() 115 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 125 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 134 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 156 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 173 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() 183 TEST_NLATTR_OBJECT(fd, nlh0, hdrlen, in main() [all …]
|
D | nlattr_crypto_user_alg.c | 74 const unsigned int hdrlen = sizeof(struct crypto_user_alg); in main() local 79 void *const nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), in main() 87 TEST_NLATTR(fd, nlh0, hdrlen, in main() 93 TEST_NLATTR(fd, nlh0, hdrlen, in main() 105 TEST_NLATTR_OBJECT_EX(fd, nlh0, hdrlen, in main() 124 TEST_NLATTR_OBJECT_EX(fd, nlh0, hdrlen, in main() 144 TEST_NLATTR_OBJECT_EX(fd, nlh0, hdrlen, in main() 160 TEST_NLATTR_OBJECT_EX(fd, nlh0, hdrlen, in main() 176 TEST_NLATTR_OBJECT_EX(fd, nlh0, hdrlen, in main()
|