mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-19 21:27:57 +00:00
rename NLMSG_OK macro we have included to avoid name collision.
This commit is contained in:
parent
ef0a8a9b57
commit
e7cd17b607
@ -1167,8 +1167,7 @@ static int interface_unregister(const char *name,
|
||||
return 0;
|
||||
}
|
||||
|
||||
#undef NLSMSG_OK
|
||||
#define NLMSG_OK(nlh,len) ((int)(len) >= (int)sizeof(struct nlmsghdr) && \
|
||||
#define NLMSG_OK_OPENWRTSAFE(nlh,len) ((int)(len) >= (int)sizeof(struct nlmsghdr) && \
|
||||
(int)(nlh)->nlmsg_len >= (int)sizeof(struct nlmsghdr) && \
|
||||
(int)(nlh)->nlmsg_len <= (int)(len))
|
||||
|
||||
@ -1184,7 +1183,7 @@ void netlink_poll(struct sched_ent *alarm)
|
||||
|
||||
struct nlmsghdr *nlh = (struct nlmsghdr *)buff;
|
||||
for (nlh = (struct nlmsghdr *)buff;
|
||||
(NLMSG_OK (nlh, (int)len))
|
||||
(NLMSG_OK_OPENWRTSAFE (nlh, (int)len))
|
||||
&& (nlh->nlmsg_type != NLMSG_DONE);
|
||||
nlh = NLMSG_NEXT(nlh, len)){
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user