net-snmp 5.7
netSnmpHostsTable_checkfns_local.c
00001 /*
00002  * Note: this file originally auto-generated by mib2c using
00003  *        : mib2c.check_values_local.conf,v 5.1 2003/05/30 23:53:15 hardaker Exp $
00004  */
00005 
00006 /*
00007  * standard headers 
00008  */
00009 #include <net-snmp/net-snmp-config.h>
00010 #include <net-snmp/net-snmp-includes.h>
00011 #include "netSnmpHostsTable_checkfns.h"
00012 #include "netSnmpHostsTable_enums.h"
00013 
00022 int
00023 check_netSnmpHostAddressType_local(int type, long *val, size_t val_len,
00024                                    long *old_val, size_t old_val_len)
00025 {
00026 
00034     if (*val != NETSNMPHOSTADDRESSTYPE_IPV4)
00035         return SNMP_ERR_WRONGVALUE;
00036 
00038     return SNMP_ERR_NOERROR;
00039 }
00040 
00049 int
00050 check_netSnmpHostAddress_local(int type, char *val, size_t val_len,
00051                                char *old_val, size_t old_val_len)
00052 {
00053 
00061     if (val_len != 4)
00062         return SNMP_ERR_WRONGVALUE;
00063 
00065     return SNMP_ERR_NOERROR;
00066 }
00067 
00076 int
00077 check_netSnmpHostStorage_local(int type, long *val, size_t val_len,
00078                                long *old_val, size_t old_val_len)
00079 {
00080 
00088     if (*val != ST_NONVOLATILE)
00089         return SNMP_ERR_WRONGVALUE;
00090 
00092     return SNMP_ERR_NOERROR;
00093 }
00094 
00103 int
00104 check_netSnmpHostRowStatus_local(int type, long *val, size_t val_len,
00105                                  long *old_val, size_t old_val_len)
00106 {
00107 
00116     return SNMP_ERR_NOERROR;
00117 }