|
|
|
@ -86,7 +86,7 @@ struct ifaddrmsg { |
|
|
|
#define RTA_DATALEN(rta) ((rta)->rta_len-sizeof(struct rtattr)) |
|
|
|
#define RTA_DATAEND(rta) ((char*)(rta)+(rta)->rta_len) |
|
|
|
#define RTA_NEXT(rta) (struct rtattr*)((char*)(rta)+NETLINK_ALIGN((rta)->rta_len)) |
|
|
|
#define RTA_OK(nlh,end) ((char*)(end)-(char*)(rta) >= sizeof(struct rtattr)) |
|
|
|
#define RTA_OK(rta,end) ((char*)(end)-(char*)(rta) >= sizeof(struct rtattr)) |
|
|
|
|
|
|
|
#define NLMSG_RTA(nlh,len) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr)+NETLINK_ALIGN(len))) |
|
|
|
#define NLMSG_RTAOK(rta,nlh) RTA_OK(rta,NLMSG_DATAEND(nlh)) |
|
|
|
|