Searched refs:RTA_LENGTH (Results 1 – 13 of 13) 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()
139 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) macro140 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))141 #define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0)))142 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
170 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) macro171 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))172 #define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0)))173 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
126 req.ext_req.rta_len = RTA_LENGTH(sizeof(__u32)); in rtnl_wilddump_req_filter()653 int len = RTA_LENGTH(alen); in addattr_l()716 int len = RTA_LENGTH(4); in rta_addattr32()735 int len = RTA_LENGTH(alen); in rta_addattr_l()
90 parms_rta->rta_len = RTA_LENGTH(0); in ipntable_modify()311 if (parms_rta->rta_len > RTA_LENGTH(0)) { in ipntable_modify()
793 rta->rta_len = RTA_LENGTH(0); in parse_nexthops()812 if (rta->rta_len > RTA_LENGTH(0)) in parse_nexthops()853 mxrta->rta_len = RTA_LENGTH(0); in iproute_modify()1130 rta->rta_len = RTA_LENGTH(0); in iproute_modify()1134 if (rta->rta_len > RTA_LENGTH(0)) in iproute_modify()1180 if (mxrta->rta_len > RTA_LENGTH(0)) { in iproute_modify()
820 if (hwaddr->rta_len == RTA_LENGTH(l)) in link_netlink()879 unsigned short len = (unsigned short)RTA_LENGTH(alen); in add_attr_l()901 unsigned short len = RTA_LENGTH(sizeof(data)); in add_attr_32()1502 unsigned short len = RTA_LENGTH(sizeof(data)); in rta_add_attr_32()1580 metrics->rta_len = RTA_LENGTH(0); in if_route6()
208 msg_size += RTA_LENGTH(4); in fdb_show()
2115 rta.rta_len = RTA_LENGTH(bclen); in tcpdiag_send()2118 req.nlh.nlmsg_len += RTA_LENGTH(bclen); in tcpdiag_send()2174 rta.rta_len = RTA_LENGTH(bclen); in sockdiag_send()2177 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()