HomeSort by relevance Sort by last modified time
    Searched refs:NLA_HDRLEN (Results 1 - 25 of 123) sorted by null

1 2 3 4 5

  /external/libnl/tests/
check-attr.c 18 fail_if(nla_attr_size(0) != NLA_HDRLEN,
20 fail_if(nla_attr_size(1) != NLA_HDRLEN + 1,
21 "Length of 1 bytes payload should be NLA_HDRLEN + 1");
22 fail_if(nla_attr_size(2) != NLA_HDRLEN + 2,
23 "Length of 2 bytes payload should be NLA_HDRLEN + 2");
24 fail_if(nla_attr_size(3) != NLA_HDRLEN + 3,
25 "Length of 3 bytes payload should be NLA_HDRLEN + 3");
26 fail_if(nla_attr_size(4) != NLA_HDRLEN + 4,
27 "Length of 4 bytes payload should be NLA_HDRLEN + 4");
29 fail_if(nla_total_size(1) != NLA_HDRLEN + 4
    [all...]
  /external/strace/tests/
nlattr_mdba_router_port.c 93 .nla_len = NLA_HDRLEN + sizeof(type),
96 char buf[NLMSG_ALIGN(ifindex) + NLA_HDRLEN + sizeof(type)];
101 NLA_HDRLEN + sizeof(buf));
113 memcpy(buf + NLMSG_ALIGN(ifindex) + NLA_HDRLEN, &type, sizeof(type));
114 TEST_NLATTR(fd, nlh0 - NLA_HDRLEN, hdrlen + NLA_HDRLEN,
nlattr_ifla_linkinfo.c 80 .nla_len = NLA_HDRLEN + (objsz_), \
93 hdrlen + NLA_HDRLEN, \
101 (objsz_) + NLA_HDRLEN, \
115 + NLA_HDRLEN + (objsz_)); \
119 .nla_len = NLA_HDRLEN + (objsz_), \
131 (nlh0_) - NLA_HDRLEN, \
132 hdrlen + NLA_HDRLEN, \
141 (objsz_) + NLA_HDRLEN, \
148 TEST_NLATTR_EX_((fd_), (nlh0_) - NLA_HDRLEN, \
149 hdrlen + NLA_HDRLEN, \
    [all...]
nlattr_mdba_mdb_entry.c 76 len -= NLA_HDRLEN;
92 msg_len - NLMSG_SPACE(hdrlen) - NLA_HDRLEN);
102 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), NLA_HDRLEN + 4
104 - 4 + NLA_HDRLEN * 2 + sizeof(struct nlattr)
115 TEST_NLATTR_(fd, nlh0 - NLA_HDRLEN * 2, hdrlen + NLA_HDRLEN * 2,
161 TEST_NLATTR(fd, nlh0 - NLA_HDRLEN * 2, hdrlen + NLA_HDRLEN * 2,
nlattr.c 122 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN + 4;
127 .nla_len = NLA_HDRLEN + 4,
143 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN + 2;
148 .nla_len = NLA_HDRLEN,
159 fd, msg_len, NLA_HDRLEN, msg_len, sprintrc(rc));
162 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN * 2;
167 .nla_len = NLA_HDRLEN,
177 fd, msg_len, NLA_HDRLEN, nla + 1, msg_len, sprintrc(rc));
180 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN * 2;
185 .nla_len = NLA_HDRLEN,
    [all...]
test_nlattr.h 67 (nlh0_) - (NLA_HDRLEN + (slen_)); \
71 NLA_HDRLEN + (nla_data_len_); \
73 NLMSG_SPACE(hdrlen_) + NLA_HDRLEN + (nla_total_len_); \
234 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
235 (hdrlen_) + NLA_HDRLEN * depth_, \
244 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
245 (hdrlen_) + NLA_HDRLEN * depth_, \
255 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
256 (hdrlen_) + NLA_HDRLEN * depth_, \
297 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_,
    [all...]
nlattr_br_port_msg.c 72 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), NLA_HDRLEN + 4);
nlattr_dcbmsg.c 70 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), NLA_HDRLEN + 4);
nlattr_ifla_port.c 56 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), 2 * NLA_HDRLEN + 8);
nlattr_netconfmsg.c 69 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), NLA_HDRLEN + 4);
nlattr_nlmsgerr.c 77 NLA_HDRLEN + sizeof(cookie));
nlattr_rtgenmsg.c 72 NLA_HDRLEN + sizeof(nla_type_str));
nlattr_tcamsg.c 65 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), NLA_HDRLEN + 4);
  /external/strace/tests-m32/
nlattr_mdba_router_port.c 93 .nla_len = NLA_HDRLEN + sizeof(type),
96 char buf[NLMSG_ALIGN(ifindex) + NLA_HDRLEN + sizeof(type)];
101 NLA_HDRLEN + sizeof(buf));
113 memcpy(buf + NLMSG_ALIGN(ifindex) + NLA_HDRLEN, &type, sizeof(type));
114 TEST_NLATTR(fd, nlh0 - NLA_HDRLEN, hdrlen + NLA_HDRLEN,
nlattr_ifla_linkinfo.c 80 .nla_len = NLA_HDRLEN + (objsz_), \
93 hdrlen + NLA_HDRLEN, \
101 (objsz_) + NLA_HDRLEN, \
115 + NLA_HDRLEN + (objsz_)); \
119 .nla_len = NLA_HDRLEN + (objsz_), \
131 (nlh0_) - NLA_HDRLEN, \
132 hdrlen + NLA_HDRLEN, \
141 (objsz_) + NLA_HDRLEN, \
148 TEST_NLATTR_EX_((fd_), (nlh0_) - NLA_HDRLEN, \
149 hdrlen + NLA_HDRLEN, \
    [all...]
nlattr_mdba_mdb_entry.c 76 len -= NLA_HDRLEN;
92 msg_len - NLMSG_SPACE(hdrlen) - NLA_HDRLEN);
102 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), NLA_HDRLEN + 4
104 - 4 + NLA_HDRLEN * 2 + sizeof(struct nlattr)
115 TEST_NLATTR_(fd, nlh0 - NLA_HDRLEN * 2, hdrlen + NLA_HDRLEN * 2,
161 TEST_NLATTR(fd, nlh0 - NLA_HDRLEN * 2, hdrlen + NLA_HDRLEN * 2,
nlattr.c 122 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN + 4;
127 .nla_len = NLA_HDRLEN + 4,
143 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN + 2;
148 .nla_len = NLA_HDRLEN,
159 fd, msg_len, NLA_HDRLEN, msg_len, sprintrc(rc));
162 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN * 2;
167 .nla_len = NLA_HDRLEN,
177 fd, msg_len, NLA_HDRLEN, nla + 1, msg_len, sprintrc(rc));
180 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN * 2;
185 .nla_len = NLA_HDRLEN,
    [all...]
test_nlattr.h 67 (nlh0_) - (NLA_HDRLEN + (slen_)); \
71 NLA_HDRLEN + (nla_data_len_); \
73 NLMSG_SPACE(hdrlen_) + NLA_HDRLEN + (nla_total_len_); \
234 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
235 (hdrlen_) + NLA_HDRLEN * depth_, \
244 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
245 (hdrlen_) + NLA_HDRLEN * depth_, \
255 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
256 (hdrlen_) + NLA_HDRLEN * depth_, \
297 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_,
    [all...]
nlattr_br_port_msg.c 72 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), NLA_HDRLEN + 4);
  /external/strace/tests-mx32/
nlattr_mdba_router_port.c 93 .nla_len = NLA_HDRLEN + sizeof(type),
96 char buf[NLMSG_ALIGN(ifindex) + NLA_HDRLEN + sizeof(type)];
101 NLA_HDRLEN + sizeof(buf));
113 memcpy(buf + NLMSG_ALIGN(ifindex) + NLA_HDRLEN, &type, sizeof(type));
114 TEST_NLATTR(fd, nlh0 - NLA_HDRLEN, hdrlen + NLA_HDRLEN,
nlattr_ifla_linkinfo.c 80 .nla_len = NLA_HDRLEN + (objsz_), \
93 hdrlen + NLA_HDRLEN, \
101 (objsz_) + NLA_HDRLEN, \
115 + NLA_HDRLEN + (objsz_)); \
119 .nla_len = NLA_HDRLEN + (objsz_), \
131 (nlh0_) - NLA_HDRLEN, \
132 hdrlen + NLA_HDRLEN, \
141 (objsz_) + NLA_HDRLEN, \
148 TEST_NLATTR_EX_((fd_), (nlh0_) - NLA_HDRLEN, \
149 hdrlen + NLA_HDRLEN, \
    [all...]
nlattr_mdba_mdb_entry.c 76 len -= NLA_HDRLEN;
92 msg_len - NLMSG_SPACE(hdrlen) - NLA_HDRLEN);
102 void *nlh0 = midtail_alloc(NLMSG_SPACE(hdrlen), NLA_HDRLEN + 4
104 - 4 + NLA_HDRLEN * 2 + sizeof(struct nlattr)
115 TEST_NLATTR_(fd, nlh0 - NLA_HDRLEN * 2, hdrlen + NLA_HDRLEN * 2,
161 TEST_NLATTR(fd, nlh0 - NLA_HDRLEN * 2, hdrlen + NLA_HDRLEN * 2,
nlattr.c 122 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN + 4;
127 .nla_len = NLA_HDRLEN + 4,
143 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN + 2;
148 .nla_len = NLA_HDRLEN,
159 fd, msg_len, NLA_HDRLEN, msg_len, sprintrc(rc));
162 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN * 2;
167 .nla_len = NLA_HDRLEN,
177 fd, msg_len, NLA_HDRLEN, nla + 1, msg_len, sprintrc(rc));
180 msg_len = NLMSG_SPACE(sizeof(msg->udm)) + NLA_HDRLEN * 2;
185 .nla_len = NLA_HDRLEN,
    [all...]
test_nlattr.h 67 (nlh0_) - (NLA_HDRLEN + (slen_)); \
71 NLA_HDRLEN + (nla_data_len_); \
73 NLMSG_SPACE(hdrlen_) + NLA_HDRLEN + (nla_total_len_); \
234 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
235 (hdrlen_) + NLA_HDRLEN * depth_, \
244 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
245 (hdrlen_) + NLA_HDRLEN * depth_, \
255 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_, \
256 (hdrlen_) + NLA_HDRLEN * depth_, \
297 TEST_NLATTR_((fd_), (nlh0_) - NLA_HDRLEN * depth_,
    [all...]
  /external/strace/
netlink.h 58 #undef NLA_HDRLEN
59 #define NLA_HDRLEN ((unsigned int) NLA_ALIGN(sizeof(struct nlattr)))

Completed in 286 milliseconds

1 2 3 4 5