Searched refs:RTA_LENGTH (Results 1 – 14 of 14) sorted by relevance
70 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) macro71 #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))
200 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()
375 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()
151 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) macro152 #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))
113 rta->rta_len = RTA_LENGTH(sizeof(int)); in main()115 RTA_LENGTH(sizeof(pid)); in main()
181 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) macro182 #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))
188 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) macro189 #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))
223 .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()
83 parms_rta->rta_len = RTA_LENGTH(0); in ipntable_modify()302 if (parms_rta->rta_len > RTA_LENGTH(0)) { in ipntable_modify()
822 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()
363 msg_size += RTA_LENGTH(4); in fdb_show()
2511 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()
430 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()
2523 rta->rta_len = RTA_LENGTH(16); in LocalHostAddressIPV6()