Skip to content
Snippets Groups Projects
Commit ca570d61 authored by Guy Zana's avatar Guy Zana
Browse files

net: add missing SA_SIZE_ALWAYS macro

parent 24b49d7c
No related branches found
No related tags found
No related merge requests found
......@@ -307,6 +307,11 @@ struct rt_addrinfo {
sizeof(long) : \
1 + ( (((struct sockaddr *)(sa))->sa_len - 1) | (sizeof(long) - 1) ) )
#define SA_SIZE_ALWAYS(sa) \
( (((struct sockaddr *)(sa))->sa_len == 0) ? \
sizeof(long) : \
1 + ( (((struct sockaddr *)(sa))->sa_len - 1) | (sizeof(long) - 1) ) )
#ifdef _KERNEL
#define RT_LINK_IS_UP(ifp) (!((ifp)->if_capabilities & IFCAP_LINKSTATE) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment