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
ee069253
Commit
ee069253
authored
Feb 23, 2024
by
Paul Gofman
Committed by
Alexandre Julliard
Feb 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nsiproxy.sys: Fix ipv6 route table parsing on Linux.
parent
98977195
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
ip.c
dlls/nsiproxy.sys/ip.c
+6
-5
No files found.
dlls/nsiproxy.sys/ip.c
View file @
ee069253
...
...
@@ -1544,7 +1544,7 @@ struct in6_addr str_to_in6_addr(char *nptr, char **endptr)
for
(
int
i
=
0
;
i
<
sizeof
(
ret
);
i
++
)
{
if
(
!
isxdigit
(
*
nptr
)
||
!
isxdigit
(
*
nptr
+
1
))
if
(
!
isxdigit
(
*
nptr
)
||
!
isxdigit
(
*
(
nptr
+
1
)
))
{
/* invalid hex string */
if
(
endptr
)
*
endptr
=
nptr
;
...
...
@@ -1574,7 +1574,7 @@ static NTSTATUS ipv6_forward_enumerate_all( void *key_data, UINT key_size, void
#ifdef __linux__
{
char
buf
[
512
],
*
ptr
;
char
buf
[
512
],
*
ptr
,
*
end
;
UINT
rtf_flags
;
FILE
*
fp
;
...
...
@@ -1582,9 +1582,6 @@ static NTSTATUS ipv6_forward_enumerate_all( void *key_data, UINT key_size, void
while
((
ptr
=
fgets
(
buf
,
sizeof
(
buf
),
fp
)))
{
while
(
!
isspace
(
*
ptr
))
ptr
++
;
*
ptr
++
=
'\0'
;
entry
.
prefix
=
str_to_in6_addr
(
ptr
,
&
ptr
);
entry
.
prefix_len
=
strtoul
(
ptr
+
1
,
&
ptr
,
16
);
str_to_in6_addr
(
ptr
+
1
,
&
ptr
);
/* source network, skip */
...
...
@@ -1597,6 +1594,10 @@ static NTSTATUS ipv6_forward_enumerate_all( void *key_data, UINT key_size, void
entry
.
protocol
=
(
rtf_flags
&
RTF_GATEWAY
)
?
MIB_IPPROTO_NETMGMT
:
MIB_IPPROTO_LOCAL
;
entry
.
loopback
=
entry
.
protocol
==
MIB_IPPROTO_LOCAL
&&
entry
.
prefix_len
==
32
;
while
(
isspace
(
*
ptr
))
ptr
++
;
end
=
ptr
;
while
(
*
end
&&
!
isspace
(
*
end
))
++
end
;
*
end
=
0
;
if
(
!
convert_unix_name_to_luid
(
ptr
,
&
entry
.
luid
))
continue
;
if
(
!
convert_luid_to_index
(
&
entry
.
luid
,
&
entry
.
if_index
))
continue
;
...
...
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