Searched refs:rta (Results 1 – 2 of 2) sorted by relevance
64 #define RTA_OK(rta,len) \ argument65 ((len) > 0 && (rta)->rta_len >= sizeof(struct rtattr) && \66 (rta)->rta_len <= (len))67 #define RTA_NEXT(rta,attrlen) \ argument68 ((attrlen) -= RTA_ALIGN((rta)->rta_len), \69 (struct rtattr *) (((char *)(rta)) + RTA_ALIGN((rta)->rta_len)))72 #define RTA_DATA(rta) ((void *) (((char *) (rta)) + RTA_LENGTH(0))) argument73 #define RTA_PAYLOAD(rta) ((int) ((rta)->rta_len) - RTA_LENGTH(0)) argument
177 struct rtattr *rta; in netlink_send_oper_ifla() local196 rta = aliasing_hide_typecast( in netlink_send_oper_ifla()199 rta->rta_type = IFLA_LINKMODE; in netlink_send_oper_ifla()200 rta->rta_len = RTA_LENGTH(sizeof(char)); in netlink_send_oper_ifla()201 *((char *) RTA_DATA(rta)) = linkmode; in netlink_send_oper_ifla()205 rta = aliasing_hide_typecast( in netlink_send_oper_ifla()208 rta->rta_type = IFLA_OPERSTATE; in netlink_send_oper_ifla()209 rta->rta_len = RTA_LENGTH(sizeof(char)); in netlink_send_oper_ifla()210 *((char *) RTA_DATA(rta)) = operstate; in netlink_send_oper_ifla()