33 ok(
mod !=
NULL,
"failed to load inetmib1.dll\n");
54 if (!pSnmpExtensionInit)
63 ret = pSnmpExtensionInit(0,
NULL, &oid);
67 ret = pSnmpExtensionInit(0, &
event, &oid);
86 UINT bogus[] = { 1,2,3,4 };
88 UINT mib2If[] = { 1,3,6,1,2,1,2 };
89 UINT mib2IfTable[] = { 1,3,6,1,2,1,2,2 };
90 UINT mib2IfDescr[] = { 1,3,6,1,2,1,2,2,1,2 };
91 UINT mib2IfAdminStatus[] = { 1,3,6,1,2,1,2,2,1,7 };
92 UINT mib2IfOperStatus[] = { 1,3,6,1,2,1,2,2,1,8 };
94 UINT mib2IpRouteTable[] = { 1,3,6,1,2,1,4,21,1,1 };
95 UINT mib2UdpTable[] = { 1,3,6,1,2,1,7,5,1,1 };
99 if (!pSnmpExtensionQuery)
101 win_skip(
"couldn't find SnmpExtensionQuery\n");
120 "expected SNMP_ERRORSTATUS_NOERROR, got %d\n",
error);
138 "expected SNMP_ERRORSTATUS_NOERROR or ERROR_FILE_NOT_FOUND, got %d\n",
150 vars[0].
name.
ids = mib2IfTable;
157 "expected SNMP_ERRORSTATUS_NOSUCHNAME, got %d\n",
error);
165 vars[0].
name.
ids = mib2IfDescr;
167 vars[1].
name.
ids = mib2IfAdminStatus;
169 vars[2].
name.
ids = mib2IfOperStatus;
177 "expected SNMP_ERRORSTATUS_NOSUCHNAME, got %d\n",
error);
199 "expected SNMP_ERRORSTATUS_NOERROR, got %d\n",
error);
206 vars[0].
name.idLength))
209 vars[1].
name.idLength))
212 vars[2].
name.idLength))
234 "expected length %d, got %d\n", vars[0].
name.
idLength + 1,
238 "expected %d, got %d\n",
entry + 1, lastID);
240 "expected length %d, got %d\n", vars[1].
name.
idLength + 1,
244 "expected %d, got %d\n",
entry + 1, lastID);
246 "expected length %d, got %d\n", vars[2].
name.
idLength + 1,
250 "expected %d, got %d\n",
entry + 1, lastID);
254 "expected ASN_OCTETSTRING, got %02x\n", vars2[0].
value.
asnType);
256 "expected ASN_INTEGER, got %02x\n", vars2[1].
value.
asnType);
258 "expected ASN_INTEGER, got %02x\n", vars2[2].
value.
asnType);
261 skip(
"no change in OID, no MIB2 IF table implementation\n");
262 }
while (moreData && !noChange);
281 "expected SNMP_ERRORSTATUS_NOERROR, got %d\n",
error);
287 "expected 1.3.6.1.2.1.1 or 1.3.6.1.2.1.2, got %s\n",
303 "expected SNMP_ERRORSTATUS_NOERROR, got %d\n",
error);
310 vars[0].
name.idLength))
326 "expected length %d, got %d\n", vars[0].
name.
idLength + 4,
330 "expected type ASN_IPADDRESS, got %02x\n",
343 ok(vars2[0].
value.asnValue.address.stream[
i] ==
345 "expected ident byte %d to be %d, got %d\n",
i,
352 skip(
"no change in OID, no MIB2 IP address table implementation\n");
353 }
while (moreData && !noChange);
358 vars[0].
name.
ids = mib2IpRouteTable;
369 "expected SNMP_ERRORSTATUS_NOERROR, got %d\n",
error);
376 vars[0].
name.idLength))
392 "expected length %d, got %d\n", vars[0].
name.
idLength + 4,
396 "expected type ASN_IPADDRESS, got %02x\n",
409 ok(vars2[0].
value.asnValue.address.stream[
i] ==
411 "expected ident byte %d to be %d, got %d\n",
i,
418 skip(
"no change in OID, no MIB2 IP route table implementation\n");
419 }
while (moreData && !noChange);
424 vars[0].
name.
ids = mib2UdpTable;
442 "expected SNMP_ERRORSTATUS_NOERROR, got %d\n",
error);
450 vars[0].
name.idLength))
463 "expected length %d, got %d\n", vars[0].
name.
idLength + 5,
467 "expected type ASN_IPADDRESS, got %02x\n",
481 ok(vars2[0].
value.asnValue.address.stream[
i] ==
483 "expected ident byte %d to be %d, got %d\n",
i,
490 skip(
"no change in OID, no MIB2 UDP table implementation\n");
491 }
while (moreData && !noChange);
std::map< E_MODULE, HMODULE > mod
int strcmp(const char *String1, const char *String2)
list(size_type __n, const_reference __val=_STLP_DEFAULT_CONSTRUCTED(value_type), const allocator_type &__a=allocator_type())
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
INT WINAPI SnmpUtilOidCmp(AsnObjectIdentifier *oid1, AsnObjectIdentifier *oid2)
INT WINAPI SnmpUtilOidNCmp(AsnObjectIdentifier *oid1, AsnObjectIdentifier *oid2, UINT count)
VOID WINAPI SnmpUtilOidFree(AsnObjectIdentifier *oid)
INT WINAPI SnmpUtilOidCpy(AsnObjectIdentifier *dst, AsnObjectIdentifier *src)
VOID WINAPI SnmpUtilVarBindFree(SnmpVarBind *vb)
LPSTR WINAPI SnmpUtilOidToA(AsnObjectIdentifier *oid)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define ERROR_FILE_NOT_FOUND
static void testInit(void)
static HANDLE AsnObjectIdentifier *static SnmpVarBindList AsnInteger32 AsnInteger32 *static HMODULE init_test_functions(void)
static void uninit_test_functions(HMODULE mod)
static void testQuery(void)
#define SNMP_ERRORSTATUS_NOSUCHNAME
#define SNMP_ERRORSTATUS_NOERROR
union AsnAny::@3233 asnValue
DWORD WINAPI GetLastError(void)