Files
m241Neelima/components/ip_net2-6.9/vxcompat/src/m2LibTest.c
T
2026-07-30 11:19:44 +05:30

77 lines
1.3 KiB
C

/* Copyright 1993 - 2008 Wind River Systems, Inc. */
#include "copyright_wrs.h"
/*
modification history
--------------------
01u,10jun08,zhr written
*/
#ifdef _WRS_KERNEL
#include <vxWorks.h>
#endif
#include <string.h>
#include <m2Lib.h>
#include "errnoLib.h"
#include "vwModNum.h"
#include "in.h"
#include <ipcom_mib2_api.h>
#include <ipcom_type.h>
#include <applUtilLib.h>
#ifndef _WRS_KERNEL
#include <strings.h> /* bzero */
#endif /* _WRS_KERNEL */
STATUS testM2LibIcmp (int);
STATUS testM2LibSystem(int);
STATUS testM2LibIp (int);
STATUS testM2LibIfTable(int);
STATUS m2TestInit (void);
STATUS (*func[])(int) = {
testM2LibIcmp,
testM2LibIp,
testM2LibIfTable,
testM2LibSystem
};
STATUS m2TestInit (void)
{
return OK;
}
STATUS testM2LibIcmp (int flag)
{
M2_ICMP pIcmpInfo;
if (m2IcmpGroupInfoGet (&pIcmpInfo) == ERROR)
return (ERROR);
printf (" icmpInMsgs = %d\n",pIcmpInfo.icmpInMsgs);
printf (" icmpOutMsgs = %d\n",pIcmpInfo.icmpOutMsgs);
/*
* display all message here
*/
return OK;
}
STATUS testM2LibSystem(int flag)
{
/* func to be implemented */
return OK;
}
STATUS testM2LibIp(int flag)
{
/* func to be implemented */
return OK;
}
STATUS testM2LibIfTable(int flag)
{
/* func to be implemented */
return OK;
}