Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fa8a5692
Commit
fa8a5692
authored
Aug 08, 2022
by
Hans Leidekker
Committed by
Alexandre Julliard
Aug 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nsiproxy.sys: Support media connect state on Linux.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53499
parent
c2328d0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
ndis.c
dlls/nsiproxy.sys/ndis.c
+16
-0
No files found.
dlls/nsiproxy.sys/ndis.c
View file @
fa8a5692
...
...
@@ -333,7 +333,23 @@ static void ifinfo_fill_dynamic( struct if_entry *entry, struct nsi_ndis_ifinfo_
data
->
flags
.
unk
=
0
;
data
->
flags
.
not_media_conn
=
0
;
data
->
flags
.
unk2
=
0
;
#ifdef __linux__
{
char
filename
[
64
];
FILE
*
fp
;
sprintf
(
filename
,
"/sys/class/net/%s/carrier"
,
entry
->
if_unix_name
);
if
(
!
(
fp
=
fopen
(
filename
,
"r"
)))
data
->
media_conn_state
=
MediaConnectStateUnknown
;
else
{
if
(
fgetc
(
fp
)
==
'1'
)
data
->
media_conn_state
=
MediaConnectStateConnected
;
else
data
->
media_conn_state
=
MediaConnectStateDisconnected
;
fclose
(
fp
);
}
}
#else
data
->
media_conn_state
=
MediaConnectStateConnected
;
#endif
data
->
unk
=
0
;
if
(
!
ioctl
(
fd
,
SIOCGIFMTU
,
&
req
))
data
->
mtu
=
req
.
ifr_mtu
;
...
...
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