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
7ded3afe
Commit
7ded3afe
authored
Apr 25, 2009
by
Jeff Latimer
Committed by
Alexandre Julliard
Apr 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Define IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT and code for IN6_IS_ADDR_LOOPBACK.
parent
758777d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
ws2ipdef.h
include/ws2ipdef.h
+16
-0
No files found.
include/ws2ipdef.h
View file @
7ded3afe
...
...
@@ -247,9 +247,25 @@ struct WS(ip_msfilter) {
#ifndef USE_WS_PREFIX
#define INET_ADDRSTRLEN 22
#define INET6_ADDRSTRLEN 65
#define IN6ADDR_ANY_INIT { 0 }
#define IN6ADDR_LOOPBACK_INIT { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 }
#else
#define WS_INET_ADDRSTRLEN 22
#define WS_INET6_ADDRSTRLEN 65
#define WS_IN6ADDR_ANY_INIT { 0 }
#define WS_IN6ADDR_LOOPBACK_INIT { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 }
#endif
/* USE_WS_PREFIX */
static
inline
BOOL
WS
(
IN6_IS_ADDR_LOOPBACK
)
(
const
IN6_ADDR
*
a
)
{
return
(
BOOL
)((
a
->
s6_words
[
0
]
==
0
)
&&
(
a
->
s6_words
[
1
]
==
0
)
&&
(
a
->
s6_words
[
2
]
==
0
)
&&
(
a
->
s6_words
[
3
]
==
0
)
&&
(
a
->
s6_words
[
4
]
==
0
)
&&
(
a
->
s6_words
[
5
]
==
0
)
&&
(
a
->
s6_words
[
6
]
==
0
)
&&
(
a
->
s6_words
[
7
]
==
0x0100
));
}
#endif
/* __WS2IPDEF__ */
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