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
950202a5
Commit
950202a5
authored
Dec 07, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Dec 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetmib1: Return SNMP_ERRORSTATUS_NOSUCHNAME for an interface's description if it has none.
parent
da9bc130
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
main.c
dlls/inetmib1/main.c
+17
-1
No files found.
dlls/inetmib1/main.c
View file @
950202a5
...
...
@@ -553,6 +553,22 @@ static INT setOidWithItemAndInteger(AsnObjectIdentifier *dst,
return
ret
;
}
static
DWORD
copyIfRowDescr
(
AsnAny
*
value
,
void
*
src
)
{
PMIB_IFROW
row
=
(
PMIB_IFROW
)((
BYTE
*
)
src
-
FIELD_OFFSET
(
MIB_IFROW
,
dwDescrLen
));
DWORD
ret
;
if
(
row
->
dwDescrLen
)
{
setStringValue
(
value
,
ASN_OCTETSTRING
,
row
->
dwDescrLen
,
row
->
bDescr
);
ret
=
SNMP_ERRORSTATUS_NOERROR
;
}
else
ret
=
SNMP_ERRORSTATUS_NOSUCHNAME
;
return
ret
;
}
static
DWORD
copyIfRowPhysAddr
(
AsnAny
*
value
,
void
*
src
)
{
PMIB_IFROW
row
=
(
PMIB_IFROW
)((
BYTE
*
)
src
-
...
...
@@ -572,7 +588,7 @@ static DWORD copyIfRowPhysAddr(AsnAny *value, void *src)
static
struct
structToAsnValue
mib2IfEntryMap
[]
=
{
{
FIELD_OFFSET
(
MIB_IFROW
,
dwIndex
),
copyInt
},
{
FIELD_OFFSET
(
MIB_IFROW
,
dwDescrLen
),
copy
LengthPrecededString
},
{
FIELD_OFFSET
(
MIB_IFROW
,
dwDescrLen
),
copy
IfRowDescr
},
{
FIELD_OFFSET
(
MIB_IFROW
,
dwType
),
copyInt
},
{
FIELD_OFFSET
(
MIB_IFROW
,
dwMtu
),
copyInt
},
{
FIELD_OFFSET
(
MIB_IFROW
,
dwSpeed
),
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