/external/libnl/lib/ |
D | attr.c | 109 int nla_type(const struct nlattr *nla) in nla_type() argument 111 return nla->nla_type & NLA_TYPE_MASK; in nla_type() 120 void *nla_data(const struct nlattr *nla) in nla_data() argument 122 return (char *) nla + NLA_HDRLEN; in nla_data() 131 int nla_len(const struct nlattr *nla) in nla_len() argument 133 return nla->nla_len - NLA_HDRLEN; in nla_len() 148 int nla_ok(const struct nlattr *nla, int remaining) in nla_ok() argument 150 return remaining >= sizeof(*nla) && in nla_ok() 151 nla->nla_len >= sizeof(*nla) && in nla_ok() 152 nla->nla_len <= remaining; in nla_ok() [all …]
|
D | data.c | 84 struct nl_data *nl_data_alloc_attr(struct nlattr *nla) in nl_data_alloc_attr() argument 86 return nl_data_alloc(nla_data(nla), nla_len(nla)); in nl_data_alloc_attr()
|
D | msg.c | 876 struct nlattr *nla; in dump_attrs() local 878 nla_for_each_attr(nla, attrs, attrlen, rem) { in dump_attrs() 879 int padlen, alen = nla_len(nla); in dump_attrs() 883 if (nla->nla_type == 0) in dump_attrs() 886 fprintf(ofd, " [ATTR %02d%s] %d octets\n", nla_type(nla), in dump_attrs() 887 nla_is_nested(nla) ? " NESTED" : "", in dump_attrs() 890 if (nla_is_nested(nla)) in dump_attrs() 891 dump_attrs(ofd, nla_data(nla), alen, prefix+1); in dump_attrs() 893 dump_attr(ofd, nla, prefix); in dump_attrs() 900 dump_hex(ofd, nla_data(nla) + alen, in dump_attrs()
|
D | nl.c | 625 int nl_recv(struct nl_sock *sk, struct sockaddr_nl *nla, in nl_recv() argument 633 .msg_name = (void *) nla, in nl_recv() 641 if (!buf || !nla) in nl_recv() 786 struct sockaddr_nl nla = {0}; in recvmsgs() local 793 n = cb->cb_recv_ow(sk, &nla, &buf, &creds); in recvmsgs() 795 n = nl_recv(sk, &nla, &buf, &creds); in recvmsgs() 814 nlmsg_set_src(msg, &nla); in recvmsgs() 931 err = cb->cb_err(&nla, e, in recvmsgs()
|
/external/strace/tests-m32/ |
D | nlattr.c | 63 struct nlattr *nla; in test_nlattr() local 71 nla = NLMSG_ATTR(msg, sizeof(msg->udm)); in test_nlattr() 72 memcpy(nla, "12", 2); in test_nlattr() 82 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + sizeof(*nla); in test_nlattr() 95 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + sizeof(*nla); in test_nlattr() 98 nla = NLMSG_ATTR(msg, sizeof(msg->udm)); in test_nlattr() 99 *nla = (struct nlattr) { in test_nlattr() 100 .nla_len = sizeof(*nla), in test_nlattr() 109 fd, msg_len, nla->nla_len, msg_len, sprintrc(rc)); in test_nlattr() 112 nla->nla_len += 8; in test_nlattr() [all …]
|
D | test_nlattr.h | 38 init_nlattr(struct nlattr *const nla, in init_nlattr() argument 44 SET_STRUCT(struct nlattr, nla, in init_nlattr() 49 memcpy(RTA_DATA(nla), src, n); in init_nlattr() 65 struct nlattr *const nla = NLMSG_ATTR(nlh, (hdrlen_)); \ 72 init_nlattr(nla, nla_len, (nla_type_), \
|
/external/strace/tests-mx32/ |
D | nlattr.c | 63 struct nlattr *nla; in test_nlattr() local 71 nla = NLMSG_ATTR(msg, sizeof(msg->udm)); in test_nlattr() 72 memcpy(nla, "12", 2); in test_nlattr() 82 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + sizeof(*nla); in test_nlattr() 95 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + sizeof(*nla); in test_nlattr() 98 nla = NLMSG_ATTR(msg, sizeof(msg->udm)); in test_nlattr() 99 *nla = (struct nlattr) { in test_nlattr() 100 .nla_len = sizeof(*nla), in test_nlattr() 109 fd, msg_len, nla->nla_len, msg_len, sprintrc(rc)); in test_nlattr() 112 nla->nla_len += 8; in test_nlattr() [all …]
|
D | test_nlattr.h | 38 init_nlattr(struct nlattr *const nla, in init_nlattr() argument 44 SET_STRUCT(struct nlattr, nla, in init_nlattr() 49 memcpy(RTA_DATA(nla), src, n); in init_nlattr() 65 struct nlattr *const nla = NLMSG_ATTR(nlh, (hdrlen_)); \ 72 init_nlattr(nla, nla_len, (nla_type_), \
|
/external/strace/tests/ |
D | nlattr.c | 63 struct nlattr *nla; in test_nlattr() local 71 nla = NLMSG_ATTR(msg, sizeof(msg->udm)); in test_nlattr() 72 memcpy(nla, "12", 2); in test_nlattr() 82 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + sizeof(*nla); in test_nlattr() 95 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + sizeof(*nla); in test_nlattr() 98 nla = NLMSG_ATTR(msg, sizeof(msg->udm)); in test_nlattr() 99 *nla = (struct nlattr) { in test_nlattr() 100 .nla_len = sizeof(*nla), in test_nlattr() 109 fd, msg_len, nla->nla_len, msg_len, sprintrc(rc)); in test_nlattr() 112 nla->nla_len += 8; in test_nlattr() [all …]
|
D | test_nlattr.h | 38 init_nlattr(struct nlattr *const nla, in init_nlattr() argument 44 SET_STRUCT(struct nlattr, nla, in init_nlattr() 49 memcpy(RTA_DATA(nla), src, n); in init_nlattr() 65 struct nlattr *const nla = NLMSG_ATTR(nlh, (hdrlen_)); \ 72 init_nlattr(nla, nla_len, (nla_type_), \
|
/external/strace/ |
D | nlattr.c | 50 print_nlattr(const struct nlattr *const nla, in print_nlattr() argument 54 tprintf("{nla_len=%u, nla_type=", nla->nla_len); in print_nlattr() 55 if (nla->nla_type & NLA_F_NESTED) in print_nlattr() 57 if (nla->nla_type & NLA_F_NET_BYTEORDER) in print_nlattr() 59 printxval(table, nla->nla_type & NLA_TYPE_MASK, dflt); in print_nlattr() 65 const struct nlattr *const nla, in decode_nlattr_with_data() argument 74 const unsigned int nla_len = nla->nla_len > len ? len : nla->nla_len; in decode_nlattr_with_data() 79 print_nlattr(nla, table, dflt); in decode_nlattr_with_data() 84 || nla->nla_type >= size in decode_nlattr_with_data() 85 || !decoders[nla->nla_type] in decode_nlattr_with_data() [all …]
|
/external/tcpdump/tests/ |
D | epgmv.out | 2 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 471 trail 0 lead 281 nla 10.0.0.45 [36] 4 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 472 trail 0 lead 281 nla 10.0.0.45 [36] 6 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 473 trail 0 lead 281 nla 10.0.0.45 [36] 8 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 474 trail 0 lead 281 nla 10.0.0.45 [36] 10 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 475 trail 0 lead 281 nla 10.0.0.45 [36] 18 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 476 trail 0 lead 284 nla 10.0.0.45 [36] 22 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 477 trail 0 lead 284 nla 10.0.0.45 [36] 24 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 478 trail 0 lead 284 nla 10.0.0.45 [36] 26 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 479 trail 0 lead 284 nla 10.0.0.45 [36] 28 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 480 trail 0 lead 284 nla 10.0.0.45 [36] [all …]
|
D | pgmv.out | 2 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92190 trail 21618 lead 54950 nla 10.0.0.45 [36] 4 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92191 trail 21618 lead 54950 nla 10.0.0.45 [36] 6 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92192 trail 21618 lead 54950 nla 10.0.0.45 [36] 14 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92193 trail 21621 lead 54953 nla 10.0.0.45 [36] 18 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92194 trail 21621 lead 54953 nla 10.0.0.45 [36] 20 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92195 trail 21621 lead 54953 nla 10.0.0.45 [36] 22 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92196 trail 21621 lead 54953 nla 10.0.0.45 [36] 24 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92197 trail 21621 lead 54953 nla 10.0.0.45 [36] 26 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92198 trail 21621 lead 54953 nla 10.0.0.45 [36] 28 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92199 trail 21621 lead 54953 nla 10.0.0.45 [36]
|
D | epgm_zmtp1v.out | 2 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 471 trail 0 lead 281 nla 10.0.0.45 [36] 4 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 472 trail 0 lead 281 nla 10.0.0.45 [36] 6 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 473 trail 0 lead 281 nla 10.0.0.45 [36] 8 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 474 trail 0 lead 281 nla 10.0.0.45 [36] 10 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 475 trail 0 lead 281 nla 10.0.0.45 [36] 67 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 476 trail 0 lead 284 nla 10.0.0.45 [36] 71 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 477 trail 0 lead 284 nla 10.0.0.45 [36] 73 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 478 trail 0 lead 284 nla 10.0.0.45 [36] 75 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 479 trail 0 lead 284 nla 10.0.0.45 [36] 77 …16.5563: 39236 > 5563: PGM, length 0 0x47e3fdad9a9c SPM seq 480 trail 0 lead 284 nla 10.0.0.45 [36] [all …]
|
D | pgm_zmtp1v.out | 2 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92190 trail 21618 lead 54950 nla 10.0.0.45 [36] 4 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92191 trail 21618 lead 54950 nla 10.0.0.45 [36] 6 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92192 trail 21618 lead 54950 nla 10.0.0.45 [36] 62 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92193 trail 21621 lead 54953 nla 10.0.0.45 [36] 66 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92194 trail 21621 lead 54953 nla 10.0.0.45 [36] 68 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92195 trail 21621 lead 54953 nla 10.0.0.45 [36] 70 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92196 trail 21621 lead 54953 nla 10.0.0.45 [36] 72 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92197 trail 21621 lead 54953 nla 10.0.0.45 [36] 74 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92198 trail 21621 lead 54953 nla 10.0.0.45 [36] 76 …255.0.16.5563: PGM, length 0 0x3329041eba74 SPM seq 92199 trail 21621 lead 54953 nla 10.0.0.45 [36]
|
/external/libnl/lib/netfilter/ |
D | queue_msg.c | 268 struct nlattr nla; in nfnl_queue_msg_send_verdict_payload() local 279 nla.nla_type = NFQA_PAYLOAD; in nfnl_queue_msg_send_verdict_payload() 280 nla.nla_len = payload_len + sizeof(nla); in nfnl_queue_msg_send_verdict_payload() 281 nlmsg_hdr(nlmsg)->nlmsg_len += nla.nla_len; in nfnl_queue_msg_send_verdict_payload() 283 iov[1].iov_base = (void *) &nla; in nfnl_queue_msg_send_verdict_payload() 284 iov[1].iov_len = sizeof(nla); in nfnl_queue_msg_send_verdict_payload()
|
/external/libnl/lib/route/link/ |
D | vlan.c | 115 struct nlattr *nla; in vlan_parse() local 120 nla_for_each_nested(nla, tb[IFLA_VLAN_INGRESS_QOS], remaining) { in vlan_parse() 121 if (nla_len(nla) < sizeof(*map)) in vlan_parse() 124 map = nla_data(nla); in vlan_parse() 137 struct nlattr *nla; in vlan_parse() local 140 nla_for_each_nested(nla, tb[IFLA_VLAN_EGRESS_QOS], remaining) { in vlan_parse() 141 if (nla_len(nla) < sizeof(*map)) in vlan_parse() 153 nla_for_each_nested(nla, tb[IFLA_VLAN_EGRESS_QOS], remaining) { in vlan_parse() 154 map = nla_data(nla); in vlan_parse()
|
D | inet.c | 125 struct nlattr *nla; in inet_fill_af() local 128 if (!(nla = nla_nest_start(msg, IFLA_INET_CONF))) in inet_fill_af() 135 nla_nest_end(msg, nla); in inet_fill_af()
|
/external/dhcpcd-6.8.2/ |
D | if-linux.c | 920 nla_next(struct nlattr *nla, size_t *rem) in nla_next() argument 923 *rem -= NLA_ALIGN(nla->nla_len); in nla_next() 924 return (struct nlattr *)(void *)((char *)nla + NLA_ALIGN(nla->nla_len)); in nla_next() 927 #define NLA_TYPE(nla) ((nla)->nla_type & NLA_TYPE_MASK) argument 928 #define NLA_LEN(nla) (unsigned int)((nla)->nla_len - NLA_HDRLEN) argument 929 #define NLA_OK(nla, rem) \ argument 931 (nla)->nla_len >= sizeof(struct nlattr) && \ 932 (nla)->nla_len <= rem) 933 #define NLA_DATA(nla) ((char *)(nla) + NLA_HDRLEN) argument 949 struct nlattr *nla; in nla_put_32() local [all …]
|
/external/libnl/lib/genl/ |
D | ctrl.c | 66 struct nlattr *nla; in parse_mcast_grps() local 72 nla_for_each_nested(nla, grp_attr, remaining) { in parse_mcast_grps() 77 err = nla_parse_nested(tb, CTRL_ATTR_MCAST_GRP_MAX, nla, in parse_mcast_grps() 150 struct nlattr *nla, *nla_ops; in ctrl_msg_parser() local 154 nla_for_each_nested(nla, nla_ops, remaining) { in ctrl_msg_parser() 158 err = nla_parse_nested(tb, CTRL_ATTR_OP_MAX, nla, in ctrl_msg_parser()
|
/external/libnl/include/netlink/ |
D | attr.h | 274 #define nla_for_each_nested(pos, nla, rem) \ argument 275 for (pos = nla_data(nla), rem = nla_len(nla); \
|
/external/libnl/lib/route/ |
D | act.c | 390 struct nlattr *nla[TCA_ACT_MAX_PRIO + 1]; in rtnl_act_parse() local 394 err = nla_parse(nla, TCA_ACT_MAX_PRIO, nla_data(tb), in rtnl_act_parse() 402 if (nla[i] == NULL) in rtnl_act_parse() 411 err = nla_parse(tb2, TCA_ACT_MAX, nla_data(nla[i]), in rtnl_act_parse() 412 nla_len(nla[i]), NULL); in rtnl_act_parse()
|
/external/libnl/ |
D | make.log | 48 struct sockaddr_nl nla = {0}; 107 dump_hex(ofd, nla_data(nla) + alen, 118 return remaining >= sizeof(*nla) && 121 if (nla_len(nla) < minlen) 127 if (nla && nla_len(nla) >= sizeof(tmp)) 210 struct sockaddr_nl nla = {0}; 254 dump_hex(ofd, nla_data(nla) + alen, 266 return remaining >= sizeof(*nla) && 269 if (nla_len(nla) < minlen) 275 if (nla && nla_len(nla) >= sizeof(tmp))
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_macsec_linux.c | 475 struct nlattr *nla; in dump_callback() local 478 nla_for_each_nested(nla, tb_msg[MACSEC_ATTR_TXSA_LIST], rem) { in dump_callback() 481 err = nla_parse_nested(tb, MACSEC_SA_ATTR_MAX, nla, in dump_callback() 502 struct nlattr *nla; in dump_callback() local 505 nla_for_each_nested(nla, tb_msg[MACSEC_ATTR_RXSC_LIST], rem) { in dump_callback() 508 err = nla_parse_nested(tb, MACSEC_RXSC_ATTR_MAX, nla, in dump_callback() 519 nla_for_each_nested(nla, tb[MACSEC_RXSC_ATTR_SA_LIST], in dump_callback() 524 MACSEC_SA_ATTR_MAX, nla, in dump_callback()
|
/external/android-clat/ |
D | netlink_callbacks.c | 42 static int error_handler(__attribute__((unused)) struct sockaddr_nl *nla, in error_handler() argument
|