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
6d1a1d49
Commit
6d1a1d49
authored
May 15, 2003
by
Gerald Pfeifer
Committed by
Alexandre Julliard
May 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In getTcpTable(), guard Linux-specific constants by #ifdef.
parent
3b4143ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
ipstats.c
dlls/iphlpapi/ipstats.c
+22
-1
No files found.
dlls/iphlpapi/ipstats.c
View file @
6d1a1d49
...
...
@@ -781,41 +781,62 @@ PMIB_TCPTABLE getTcpTable(void)
#if HAVE_NETINET_TCP_H
switch
(
state
)
{
#ifdef TCP_ESTABLISHED
case
TCP_ESTABLISHED
:
ret
->
table
[
ret
->
dwNumEntries
].
dwState
=
MIB_TCP_STATE_ESTAB
;
break
;
#endif
#ifdef TCP_SYN_SEND
case
TCP_SYN_SENT
:
ret
->
table
[
ret
->
dwNumEntries
].
dwState
=
MIB_TCP_STATE_SYN_SENT
;
break
;
#endif
#ifdef TCP_SYN_RECV
case
TCP_SYN_RECV
:
ret
->
table
[
ret
->
dwNumEntries
].
dwState
=
MIB_TCP_STATE_SYN_RCVD
;
break
;
#endif
#ifdef TCP_FIN_WAIT1
case
TCP_FIN_WAIT1
:
ret
->
table
[
ret
->
dwNumEntries
].
dwState
=
MIB_TCP_STATE_FIN_WAIT1
;
break
;
#endif
#ifdef TCP_FIN_WAIT2
case
TCP_FIN_WAIT2
:
ret
->
table
[
ret
->
dwNumEntries
].
dwState
=
MIB_TCP_STATE_FIN_WAIT2
;
break
;
#endif
#ifdef TCP_TIME_WAIT
case
TCP_TIME_WAIT
:
ret
->
table
[
ret
->
dwNumEntries
].
dwState
=
MIB_TCP_STATE_TIME_WAIT
;
break
;
#endif
#ifdef TCP_CLOSE
case
TCP_CLOSE
:
ret
->
table
[
ret
->
dwNumEntries
].
dwState
=
MIB_TCP_STATE_CLOSED
;
break
;
#endif
#ifdef TCP_CLOSE_WAIT
case
TCP_CLOSE_WAIT
:
ret
->
table
[
ret
->
dwNumEntries
].
dwState
=
MIB_TCP_STATE_CLOSE_WAIT
;
break
;
#endif
#ifdef TCP_LAST_ACK
case
TCP_LAST_ACK
:
ret
->
table
[
ret
->
dwNumEntries
].
dwState
=
MIB_TCP_STATE_LAST_ACK
;
break
;
#endif
#ifdef TCP_LISTEN
case
TCP_LISTEN
:
ret
->
table
[
ret
->
dwNumEntries
].
dwState
=
MIB_TCP_STATE_LISTEN
;
break
;
#endif
#ifdef TCP_CLOSING
case
TCP_CLOSING
:
ret
->
table
[
ret
->
dwNumEntries
].
dwState
=
MIB_TCP_STATE_CLOSING
;
break
;
#endif
}
#endif
ptr
=
endPtr
;
...
...
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