Use the new helper functions rta_getattr_u* instead of direct cast of RTA_DATA(). Where RTA_DATA() is a structure, then remove the unnecessary cast since RTA_DATA() is void * Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>