Home
last modified time | relevance | path

Searched refs:nla (Results 1 – 25 of 87) sorted by relevance

1234

/external/libnl/lib/
Dattr.c110 int nla_type(const struct nlattr *nla) in nla_type() argument
112 return nla->nla_type & NLA_TYPE_MASK; in nla_type()
121 void *nla_data(const struct nlattr *nla) in nla_data() argument
123 return (char *) nla + NLA_HDRLEN; in nla_data()
132 int nla_len(const struct nlattr *nla) in nla_len() argument
134 return nla->nla_len - NLA_HDRLEN; in nla_len()
149 int nla_ok(const struct nlattr *nla, int remaining) in nla_ok() argument
151 return remaining >= (int) sizeof(*nla) && in nla_ok()
152 nla->nla_len >= sizeof(*nla) && in nla_ok()
153 nla->nla_len <= remaining; in nla_ok()
[all …]
/external/strace/tests-m32/
Dnlattr.c63 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 …]
Dnlattr_mdba_mdb_entry.c68 struct nlattr *nla = NLMSG_ATTR(nlh, sizeof(*msg)); in init_br_port_msg() local
70 SET_STRUCT(struct nlattr, nla, in init_br_port_msg()
75 nla = nla + 1; in init_br_port_msg()
77 SET_STRUCT(struct nlattr, nla, in init_br_port_msg()
154 static const struct nlattr nla = { in main() local
155 .nla_len = sizeof(nla), in main()
158 char buf[NLMSG_ALIGN(sizeof(entry)) + sizeof(nla)]; in main()
160 memcpy(buf + NLMSG_ALIGN(sizeof(entry)), &nla, sizeof(nla)); in main()
176 nla.nla_len)); in main()
Dnlattr_rtmsg.c116 struct nlattr nla = { in main() local
118 .nla_len = sizeof(nla) in main()
122 RTA_METRICS, pattern, nla, in main()
124 nla.nla_len)); in main()
139 char buf[RTNH_ALIGN(sizeof(nh)) + sizeof(nla)]; in main()
141 nla.nla_type = RTA_DST; in main()
143 memcpy(buf + RTNH_ALIGN(sizeof(nh)), &nla, sizeof(nla)); in main()
150 nh.rtnh_len, nh.rtnh_hops, nla.nla_len)); in main()
Dnlattr_mdba_router_port.c68 struct nlattr *nla = NLMSG_ATTR(nlh, sizeof(*msg)); in init_br_port_msg() local
69 SET_STRUCT(struct nlattr, nla, in init_br_port_msg()
92 static const struct nlattr nla = { in main() local
112 memcpy(buf + NLMSG_ALIGN(ifindex), &nla, sizeof(nla)); in main()
120 nla.nla_len)); in main()
Dnetlink_netfilter.c102 static const struct nlattr nla = { in test_nfgenmsg() local
103 .nla_len = sizeof(nla), in test_nfgenmsg()
113 char nla_buf[NLMSG_ALIGN(sizeof(msg)) + sizeof(nla)]; in test_nfgenmsg()
176 memcpy(nla_buf + NLMSG_ALIGN(sizeof(msg)), &nla, sizeof(nla)); in test_nfgenmsg()
187 nla.nla_len, nla.nla_type)); in test_nfgenmsg()
Dnlattr_ifinfomsg.c331 struct nlattr nla = { in main() local
332 .nla_len = sizeof(nla), in main()
337 IFLA_LINKINFO, sizeof(nla), &nla, sizeof(nla), in main()
339 nla.nla_len)); in main()
341 nla.nla_type = IFLA_VF_PORT; in main()
344 IFLA_VF_PORTS, sizeof(nla), &nla, sizeof(nla), in main()
346 nla.nla_len)); in main()
/external/strace/tests/
Dnlattr.c63 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 …]
Dnlattr_mdba_mdb_entry.c68 struct nlattr *nla = NLMSG_ATTR(nlh, sizeof(*msg)); in init_br_port_msg() local
70 SET_STRUCT(struct nlattr, nla, in init_br_port_msg()
75 nla = nla + 1; in init_br_port_msg()
77 SET_STRUCT(struct nlattr, nla, in init_br_port_msg()
154 static const struct nlattr nla = { in main() local
155 .nla_len = sizeof(nla), in main()
158 char buf[NLMSG_ALIGN(sizeof(entry)) + sizeof(nla)]; in main()
160 memcpy(buf + NLMSG_ALIGN(sizeof(entry)), &nla, sizeof(nla)); in main()
176 nla.nla_len)); in main()
Dnlattr_rtmsg.c116 struct nlattr nla = { in main() local
118 .nla_len = sizeof(nla) in main()
122 RTA_METRICS, pattern, nla, in main()
124 nla.nla_len)); in main()
139 char buf[RTNH_ALIGN(sizeof(nh)) + sizeof(nla)]; in main()
141 nla.nla_type = RTA_DST; in main()
143 memcpy(buf + RTNH_ALIGN(sizeof(nh)), &nla, sizeof(nla)); in main()
150 nh.rtnh_len, nh.rtnh_hops, nla.nla_len)); in main()
Dnlattr_mdba_router_port.c68 struct nlattr *nla = NLMSG_ATTR(nlh, sizeof(*msg)); in init_br_port_msg() local
69 SET_STRUCT(struct nlattr, nla, in init_br_port_msg()
92 static const struct nlattr nla = { in main() local
112 memcpy(buf + NLMSG_ALIGN(ifindex), &nla, sizeof(nla)); in main()
120 nla.nla_len)); in main()
Dnetlink_netfilter.c102 static const struct nlattr nla = { in test_nfgenmsg() local
103 .nla_len = sizeof(nla), in test_nfgenmsg()
113 char nla_buf[NLMSG_ALIGN(sizeof(msg)) + sizeof(nla)]; in test_nfgenmsg()
176 memcpy(nla_buf + NLMSG_ALIGN(sizeof(msg)), &nla, sizeof(nla)); in test_nfgenmsg()
187 nla.nla_len, nla.nla_type)); in test_nfgenmsg()
Dnlattr_ifinfomsg.c331 struct nlattr nla = { in main() local
332 .nla_len = sizeof(nla), in main()
337 IFLA_LINKINFO, sizeof(nla), &nla, sizeof(nla), in main()
339 nla.nla_len)); in main()
341 nla.nla_type = IFLA_VF_PORT; in main()
344 IFLA_VF_PORTS, sizeof(nla), &nla, sizeof(nla), in main()
346 nla.nla_len)); in main()
/external/strace/tests-mx32/
Dnlattr.c63 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 …]
Dnlattr_mdba_mdb_entry.c68 struct nlattr *nla = NLMSG_ATTR(nlh, sizeof(*msg)); in init_br_port_msg() local
70 SET_STRUCT(struct nlattr, nla, in init_br_port_msg()
75 nla = nla + 1; in init_br_port_msg()
77 SET_STRUCT(struct nlattr, nla, in init_br_port_msg()
154 static const struct nlattr nla = { in main() local
155 .nla_len = sizeof(nla), in main()
158 char buf[NLMSG_ALIGN(sizeof(entry)) + sizeof(nla)]; in main()
160 memcpy(buf + NLMSG_ALIGN(sizeof(entry)), &nla, sizeof(nla)); in main()
176 nla.nla_len)); in main()
Dnlattr_rtmsg.c116 struct nlattr nla = { in main() local
118 .nla_len = sizeof(nla) in main()
122 RTA_METRICS, pattern, nla, in main()
124 nla.nla_len)); in main()
139 char buf[RTNH_ALIGN(sizeof(nh)) + sizeof(nla)]; in main()
141 nla.nla_type = RTA_DST; in main()
143 memcpy(buf + RTNH_ALIGN(sizeof(nh)), &nla, sizeof(nla)); in main()
150 nh.rtnh_len, nh.rtnh_hops, nla.nla_len)); in main()
Dnlattr_mdba_router_port.c68 struct nlattr *nla = NLMSG_ATTR(nlh, sizeof(*msg)); in init_br_port_msg() local
69 SET_STRUCT(struct nlattr, nla, in init_br_port_msg()
92 static const struct nlattr nla = { in main() local
112 memcpy(buf + NLMSG_ALIGN(ifindex), &nla, sizeof(nla)); in main()
120 nla.nla_len)); in main()
Dnetlink_netfilter.c102 static const struct nlattr nla = { in test_nfgenmsg() local
103 .nla_len = sizeof(nla), in test_nfgenmsg()
113 char nla_buf[NLMSG_ALIGN(sizeof(msg)) + sizeof(nla)]; in test_nfgenmsg()
176 memcpy(nla_buf + NLMSG_ALIGN(sizeof(msg)), &nla, sizeof(nla)); in test_nfgenmsg()
187 nla.nla_len, nla.nla_type)); in test_nfgenmsg()
Dnlattr_ifinfomsg.c331 struct nlattr nla = { in main() local
332 .nla_len = sizeof(nla), in main()
337 IFLA_LINKINFO, sizeof(nla), &nla, sizeof(nla), in main()
339 nla.nla_len)); in main()
341 nla.nla_type = IFLA_VF_PORT; in main()
344 IFLA_VF_PORTS, sizeof(nla), &nla, sizeof(nla), in main()
346 nla.nla_len)); in main()
/external/tcpdump/tests/
Depgmv.out2 …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 …]
Dpgmv.out2 …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]
Depgm_zmtp1v.out2 …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 …]
Dpgm_zmtp1v.out2 …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/strace/
Dnlattr.c65 print_nlattr(const struct nlattr *const nla, in print_nlattr() argument
72 tprintf("{nla_len=%u, nla_type=", nla->nla_len); in print_nlattr()
73 if (nla->nla_type & NLA_F_NESTED) { in print_nlattr()
77 if (nla->nla_type & NLA_F_NET_BYTEORDER) { in print_nlattr()
81 printxval(table, nla->nla_type & NLA_TYPE_MASK, dflt); in print_nlattr()
87 const struct nlattr *const nla, in decode_nlattr_with_data() argument
96 const unsigned int nla_len = MIN(nla->nla_len, len); in decode_nlattr_with_data()
101 print_nlattr(nla, table, dflt); in decode_nlattr_with_data()
105 size ? nla->nla_type & NLA_TYPE_MASK : 0; in decode_nlattr_with_data()
115 : (const void *) (uintptr_t) nla->nla_type) in decode_nlattr_with_data()
[all …]
/external/libnl/lib/netfilter/
Dqueue_msg.c257 struct nlattr nla; in nfnl_queue_msg_send_verdict_payload() local
268 nla.nla_type = NFQA_PAYLOAD; in nfnl_queue_msg_send_verdict_payload()
269 nla.nla_len = payload_len + sizeof(nla); in nfnl_queue_msg_send_verdict_payload()
270 nlmsg_hdr(nlmsg)->nlmsg_len += nla.nla_len; in nfnl_queue_msg_send_verdict_payload()
272 iov[1].iov_base = (void *) &nla; in nfnl_queue_msg_send_verdict_payload()
273 iov[1].iov_len = sizeof(nla); in nfnl_queue_msg_send_verdict_payload()

1234