Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c3c20fdc
Commit
c3c20fdc
authored
Jul 22, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Jul 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add IN6_IS_ADDR_LINKLOCAL() and IN6_IS_ADDR_SITELOCAL().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8d9d7fc5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
ws2ipdef.h
include/ws2ipdef.h
+10
-0
No files found.
include/ws2ipdef.h
View file @
c3c20fdc
...
...
@@ -323,6 +323,16 @@ static inline BOOLEAN WS(IN6_IS_ADDR_UNSPECIFIED) ( const IN6_ADDR *a )
(
a
->
s6_words
[
7
]
==
0
));
}
static
inline
BOOLEAN
WS
(
IN6_IS_ADDR_LINKLOCAL
)
(
const
IN6_ADDR
*
a
)
{
return
((
a
->
s6_bytes
[
0
]
==
0xfe
)
&&
((
a
->
s6_bytes
[
1
]
&
0xc0
)
==
0x80
));
}
static
inline
BOOLEAN
WS
(
IN6_IS_ADDR_SITELOCAL
)
(
const
IN6_ADDR
*
a
)
{
return
((
a
->
s6_bytes
[
0
]
==
0xfe
)
&&
((
a
->
s6_bytes
[
1
]
&
0xc0
)
==
0xc0
));
}
#ifdef __cplusplus
}
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment