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
962622e6
Commit
962622e6
authored
Jul 13, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetmib1: Use nameless unions/structs.
parent
ed412aeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
main.c
dlls/inetmib1/main.c
+5
-7
No files found.
dlls/inetmib1/main.c
View file @
962622e6
...
...
@@ -21,8 +21,6 @@
#include <stdlib.h>
#include <limits.h>
#define NONAMELESSUNION
#include "windef.h"
#include "winbase.h"
#include "winsock2.h"
...
...
@@ -672,7 +670,7 @@ static void mib2IpStatsInit(void)
}
static
struct
structToAsnValue
mib2IpMap
[]
=
{
{
FIELD_OFFSET
(
MIB_IPSTATS
,
u
.
dwForwarding
),
copyInt
},
/* 1 */
{
FIELD_OFFSET
(
MIB_IPSTATS
,
dwForwarding
),
copyInt
},
/* 1 */
{
FIELD_OFFSET
(
MIB_IPSTATS
,
dwDefaultTTL
),
copyInt
},
/* 2 */
{
FIELD_OFFSET
(
MIB_IPSTATS
,
dwInReceives
),
copyInt
},
/* 3 */
{
FIELD_OFFSET
(
MIB_IPSTATS
,
dwInHdrErrors
),
copyInt
},
/* 4 */
...
...
@@ -833,8 +831,8 @@ static struct structToAsnValue mib2IpRouteMap[] = {
{
FIELD_OFFSET
(
MIB_IPFORWARDROW
,
dwForwardMetric3
),
copyInt
},
{
FIELD_OFFSET
(
MIB_IPFORWARDROW
,
dwForwardMetric4
),
copyInt
},
{
FIELD_OFFSET
(
MIB_IPFORWARDROW
,
dwForwardNextHop
),
copyIpAddr
},
{
FIELD_OFFSET
(
MIB_IPFORWARDROW
,
u1
.
dwForwardType
),
copyInt
},
{
FIELD_OFFSET
(
MIB_IPFORWARDROW
,
u2
.
dwForwardProto
),
copyInt
},
{
FIELD_OFFSET
(
MIB_IPFORWARDROW
,
dwForwardType
),
copyInt
},
{
FIELD_OFFSET
(
MIB_IPFORWARDROW
,
dwForwardProto
),
copyInt
},
{
FIELD_OFFSET
(
MIB_IPFORWARDROW
,
dwForwardAge
),
copyInt
},
{
FIELD_OFFSET
(
MIB_IPFORWARDROW
,
dwForwardMask
),
copyIpAddr
},
{
FIELD_OFFSET
(
MIB_IPFORWARDROW
,
dwForwardMetric5
),
copyInt
},
...
...
@@ -930,7 +928,7 @@ static struct structToAsnValue mib2IpNetMap[] = {
{
FIELD_OFFSET
(
MIB_IPNETROW
,
dwIndex
),
copyInt
},
{
FIELD_OFFSET
(
MIB_IPNETROW
,
dwPhysAddrLen
),
copyIpNetPhysAddr
},
{
FIELD_OFFSET
(
MIB_IPNETROW
,
dwAddr
),
copyIpAddr
},
{
FIELD_OFFSET
(
MIB_IPNETROW
,
u
.
dwType
),
copyInt
},
{
FIELD_OFFSET
(
MIB_IPNETROW
,
dwType
),
copyInt
},
};
static
void
mib2IpNetInit
(
void
)
...
...
@@ -1085,7 +1083,7 @@ static void mib2TcpInit(void)
}
static
struct
structToAsnValue
mib2TcpMap
[]
=
{
{
FIELD_OFFSET
(
MIB_TCPSTATS
,
u
.
dwRtoAlgorithm
),
copyInt
},
{
FIELD_OFFSET
(
MIB_TCPSTATS
,
dwRtoAlgorithm
),
copyInt
},
{
FIELD_OFFSET
(
MIB_TCPSTATS
,
dwRtoMin
),
copyInt
},
{
FIELD_OFFSET
(
MIB_TCPSTATS
,
dwRtoMax
),
copyInt
},
{
FIELD_OFFSET
(
MIB_TCPSTATS
,
dwMaxConn
),
copyInt
},
...
...
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