Home
last modified time | relevance | path

Searched refs:rta (Results 1 – 2 of 2) sorted by relevance

/hostap-3.6.0/src/drivers/
Dpriv_netlink.h64 #define RTA_OK(rta,len) \ argument
65 ((len) > 0 && (rta)->rta_len >= sizeof(struct rtattr) && \
66 (rta)->rta_len <= (len))
67 #define RTA_NEXT(rta,attrlen) \ argument
68 ((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))) argument
73 #define RTA_PAYLOAD(rta) ((int) ((rta)->rta_len) - RTA_LENGTH(0)) argument
Dnetlink.c177 struct rtattr *rta; in netlink_send_oper_ifla() local
196 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()