Home
last modified time | relevance | path

Searched refs:RTA_LENGTH (Results 1 – 14 of 14) sorted by relevance

/external/wpa_supplicant_8/src/drivers/
Dpriv_netlink.h70 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) macro
71 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))
72 #define RTA_DATA(rta) ((void *) (((char *) (rta)) + RTA_LENGTH(0)))
73 #define RTA_PAYLOAD(rta) ((int) ((rta)->rta_len) - RTA_LENGTH(0))
Dnetlink.c200 rta->rta_len = RTA_LENGTH(sizeof(char)); in netlink_send_oper_ifla()
209 rta->rta_len = RTA_LENGTH(sizeof(char)); in netlink_send_oper_ifla()
/external/linux-kselftest/tools/testing/selftests/net/
Dudpgso.c375 NLMSG_ALIGN(RTA_LENGTH(sizeof(addr6))) + in set_route_mtu()
376 NLMSG_ALIGN(RTA_LENGTH(sizeof(int))) + in set_route_mtu()
377 NLMSG_ALIGN(RTA_LENGTH(0) + RTA_LENGTH(sizeof(int)))]; in set_route_mtu()
404 rta->rta_len = RTA_LENGTH(alen); in set_route_mtu()
413 rta->rta_len = RTA_LENGTH(sizeof(int)); in set_route_mtu()
420 rta->rta_len = RTA_LENGTH(0) + RTA_LENGTH(sizeof(int)); in set_route_mtu()
424 rta = (void *)(((char *) rta) + RTA_LENGTH(0)); in set_route_mtu()
426 rta->rta_len = RTA_LENGTH(sizeof(int)); in set_route_mtu()
/external/libnl/include/linux-private/linux/
Drtnetlink.h151 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) macro
152 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))
153 #define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0)))
154 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
/external/ltp/testcases/kernel/containers/share/
Dns_ifmove.c113 rta->rta_len = RTA_LENGTH(sizeof(int)); in main()
115 RTA_LENGTH(sizeof(pid)); in main()
/external/iproute2/include/uapi/linux/
Drtnetlink.h181 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) macro
182 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))
183 #define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0)))
184 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
/external/kernel-headers/original/uapi/linux/
Drtnetlink.h188 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) macro
189 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))
190 #define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0)))
191 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
/external/iproute2/lib/
Dlibnetlink.c223 .ext_req.rta_len = RTA_LENGTH(sizeof(__u32)), in rtnl_wilddump_req_filter()
863 int len = RTA_LENGTH(alen); in addattr_l()
931 int len = RTA_LENGTH(4); in rta_addattr32()
952 int len = RTA_LENGTH(alen); in rta_addattr_l()
/external/iproute2/ip/
Dipntable.c83 parms_rta->rta_len = RTA_LENGTH(0); in ipntable_modify()
302 if (parms_rta->rta_len > RTA_LENGTH(0)) { in ipntable_modify()
Diproute.c822 rta->rta_len = RTA_LENGTH(0); in parse_nexthops()
841 if (rta->rta_len > RTA_LENGTH(0)) in parse_nexthops()
879 mxrta->rta_len = RTA_LENGTH(0); in iproute_modify()
1199 rta->rta_len = RTA_LENGTH(0); in iproute_modify()
1203 if (rta->rta_len > RTA_LENGTH(0)) in iproute_modify()
1261 if (mxrta->rta_len > RTA_LENGTH(0)) { in iproute_modify()
/external/iproute2/bridge/
Dfdb.c363 msg_size += RTA_LENGTH(4); in fdb_show()
/external/iproute2/misc/
Dss.c2511 rta.rta_len = RTA_LENGTH(bclen); in tcpdiag_send()
2514 req.nlh.nlmsg_len += RTA_LENGTH(bclen); in tcpdiag_send()
2571 rta.rta_len = RTA_LENGTH(bclen); in sockdiag_send()
2574 req.nlh.nlmsg_len += RTA_LENGTH(bclen); in sockdiag_send()
/external/toybox/toys/pending/
Dip.c430 int len = RTA_LENGTH(alen); in add_string_to_rtattr()
1925 mxrta->rta_len = RTA_LENGTH(0); in route_update()
1996 if (mxrta->rta_len > RTA_LENGTH(0)) { in route_update()
/external/webrtc/webrtc/test/channel_transport/
Dudp_transport_impl.cc2523 rta->rta_len = RTA_LENGTH(16); in LocalHostAddressIPV6()