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
91d62162
Commit
91d62162
authored
Dec 07, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Dec 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetmib1: Return SNMP_ERRORSTATUS_NOSUCHNAME for an interface's physical address if it has none.
parent
632b759f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
main.c
dlls/inetmib1/main.c
+18
-1
No files found.
dlls/inetmib1/main.c
View file @
91d62162
...
...
@@ -553,13 +553,30 @@ static INT setOidWithItemAndInteger(AsnObjectIdentifier *dst,
return
ret
;
}
static
DWORD
copyIfRowPhysAddr
(
AsnAny
*
value
,
void
*
src
)
{
PMIB_IFROW
row
=
(
PMIB_IFROW
)((
BYTE
*
)
src
-
FIELD_OFFSET
(
MIB_IFROW
,
dwPhysAddrLen
));
DWORD
ret
;
if
(
row
->
dwPhysAddrLen
)
{
setStringValue
(
value
,
ASN_OCTETSTRING
,
row
->
dwPhysAddrLen
,
row
->
bPhysAddr
);
ret
=
SNMP_ERRORSTATUS_NOERROR
;
}
else
ret
=
SNMP_ERRORSTATUS_NOSUCHNAME
;
return
ret
;
}
static
struct
structToAsnValue
mib2IfEntryMap
[]
=
{
{
FIELD_OFFSET
(
MIB_IFROW
,
dwIndex
),
copyInt
},
{
FIELD_OFFSET
(
MIB_IFROW
,
dwDescrLen
),
copyLengthPrecededString
},
{
FIELD_OFFSET
(
MIB_IFROW
,
dwType
),
copyInt
},
{
FIELD_OFFSET
(
MIB_IFROW
,
dwMtu
),
copyInt
},
{
FIELD_OFFSET
(
MIB_IFROW
,
dwSpeed
),
copyInt
},
{
FIELD_OFFSET
(
MIB_IFROW
,
dwPhysAddrLen
),
copy
LengthPrecededString
},
{
FIELD_OFFSET
(
MIB_IFROW
,
dwPhysAddrLen
),
copy
IfRowPhysAddr
},
{
FIELD_OFFSET
(
MIB_IFROW
,
dwAdminStatus
),
copyInt
},
{
FIELD_OFFSET
(
MIB_IFROW
,
dwOperStatus
),
copyOperStatus
},
{
FIELD_OFFSET
(
MIB_IFROW
,
dwLastChange
),
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