Lines Matching full:integer
651 value->v.integer = bif->num_ports; in op_dot1d_base()
654 value->v.integer = bif->br_type; in op_dot1d_base()
688 val->v.integer = bif->prot_spec; in op_dot1d_stp()
692 val->v.integer = bif->priority; in op_dot1d_stp()
710 val->v.integer = bif->root_cost; in op_dot1d_stp()
714 val->v.integer = bif->root_port; in op_dot1d_stp()
718 val->v.integer = bif->max_age; in op_dot1d_stp()
722 val->v.integer = bif->hello_time; in op_dot1d_stp()
726 val->v.integer = bif->hold_time; in op_dot1d_stp()
730 val->v.integer = bif->fwd_delay; in op_dot1d_stp()
734 val->v.integer = bif->bridge_max_age; in op_dot1d_stp()
738 val->v.integer = bif->bridge_hello_time; in op_dot1d_stp()
742 val->v.integer = bif->bridge_fwd_delay; in op_dot1d_stp()
746 val->v.integer = bif->stp_version; in op_dot1d_stp()
750 val->v.integer = bif->tx_hold_count; in op_dot1d_stp()
761 if (val->v.integer > SNMP_BRIDGE_MAX_PRIORITY || in op_dot1d_stp()
762 val->v.integer % 4096 != 0) in op_dot1d_stp()
766 if (bridge_set_priority(bif, val->v.integer) < 0) in op_dot1d_stp()
771 if (val->v.integer < SNMP_BRIDGE_MIN_MAGE || in op_dot1d_stp()
772 val->v.integer > SNMP_BRIDGE_MAX_MAGE) in op_dot1d_stp()
776 if (bridge_set_maxage(bif, val->v.integer) < 0) in op_dot1d_stp()
781 if (val->v.integer < SNMP_BRIDGE_MIN_HTIME || in op_dot1d_stp()
782 val->v.integer > SNMP_BRIDGE_MAX_HTIME) in op_dot1d_stp()
786 if (bridge_set_hello_time(bif, val->v.integer) < 0) in op_dot1d_stp()
791 if (val->v.integer < SNMP_BRIDGE_MIN_FDELAY || in op_dot1d_stp()
792 val->v.integer > SNMP_BRIDGE_MAX_FDELAY) in op_dot1d_stp()
796 if (bridge_set_forward_delay(bif, val->v.integer) < 0) in op_dot1d_stp()
801 if (val->v.integer != dot1dStpVersion_stpCompatible && in op_dot1d_stp()
802 val->v.integer != dot1dStpVersion_rstp) in op_dot1d_stp()
806 if (bridge_set_stp_version(bif, val->v.integer) < 0) in op_dot1d_stp()
811 if (val->v.integer < SNMP_BRIDGE_MIN_TXHC || in op_dot1d_stp()
812 val->v.integer > SNMP_BRIDGE_MAX_TXHC) in op_dot1d_stp()
816 if (bridge_set_tx_hold_count(bif, val->v.integer) < 0) in op_dot1d_stp()
884 value->v.integer = bif->age_time; in op_dot1d_tp()
898 if (value->v.integer < SNMP_BRIDGE_MIN_AGE_TIME || in op_dot1d_tp()
899 value->v.integer > SNMP_BRIDGE_MAX_AGE_TIME) in op_dot1d_tp()
903 if (bridge_set_aging_time(bif, value->v.integer) < 0) in op_dot1d_tp()
1004 switch (val->v.integer) { in bridge_set_if_status()
1175 val->v.integer = bif->num_ports; in op_begemot_base_bridge()
1179 val->v.integer = bif->br_type; in op_begemot_base_bridge()
1183 val->v.integer = bif->if_status; in op_begemot_base_bridge()
1217 if (val->v.integer > SNMP_BRIDGE_MAX_PRIORITY || in op_begemot_stp()
1218 val->v.integer % 4096 != 0) in op_begemot_stp()
1222 if (bridge_set_priority(bif, val->v.integer) < 0) in op_begemot_stp()
1227 if (val->v.integer < SNMP_BRIDGE_MIN_MAGE || in op_begemot_stp()
1228 val->v.integer > SNMP_BRIDGE_MAX_MAGE) in op_begemot_stp()
1232 if (bridge_set_maxage(bif, val->v.integer) < 0) in op_begemot_stp()
1237 if (val->v.integer < SNMP_BRIDGE_MIN_HTIME || in op_begemot_stp()
1238 val->v.integer > SNMP_BRIDGE_MAX_HTIME) in op_begemot_stp()
1242 if (bridge_set_hello_time(bif, val->v.integer) < 0) in op_begemot_stp()
1247 if (val->v.integer < SNMP_BRIDGE_MIN_FDELAY || in op_begemot_stp()
1248 val->v.integer > SNMP_BRIDGE_MAX_FDELAY) in op_begemot_stp()
1252 if (bridge_set_forward_delay(bif, val->v.integer) < 0) in op_begemot_stp()
1257 if (val->v.integer != in op_begemot_stp()
1259 val->v.integer != begemotBridgeStpVersion_rstp) in op_begemot_stp()
1263 if (bridge_set_stp_version(bif, val->v.integer) < 0) in op_begemot_stp()
1268 if (val->v.integer < SNMP_BRIDGE_MIN_TXHC || in op_begemot_stp()
1269 val->v.integer > SNMP_BRIDGE_MAX_TXHC) in op_begemot_stp()
1273 if (bridge_set_tx_hold_count(bif, val->v.integer) < 0) in op_begemot_stp()
1330 val->v.integer = bif->prot_spec; in op_begemot_stp()
1334 val->v.integer = bif->priority; in op_begemot_stp()
1350 val->v.integer = bif->root_cost; in op_begemot_stp()
1354 val->v.integer = bif->root_port; in op_begemot_stp()
1358 val->v.integer = bif->max_age; in op_begemot_stp()
1362 val->v.integer = bif->hello_time; in op_begemot_stp()
1366 val->v.integer = bif->hold_time; in op_begemot_stp()
1370 val->v.integer = bif->fwd_delay; in op_begemot_stp()
1374 val->v.integer = bif->bridge_max_age; in op_begemot_stp()
1378 val->v.integer = bif->bridge_hello_time; in op_begemot_stp()
1382 val->v.integer = bif->bridge_fwd_delay; in op_begemot_stp()
1386 val->v.integer = bif->stp_version; in op_begemot_stp()
1390 val->v.integer = bif->tx_hold_count; in op_begemot_stp()
1424 if (val->v.integer < SNMP_BRIDGE_MIN_AGE_TIME || in op_begemot_tp()
1425 val->v.integer > SNMP_BRIDGE_MAX_AGE_TIME) in op_begemot_tp()
1429 if (bridge_set_aging_time(bif, val->v.integer) < 0) in op_begemot_tp()
1435 if (bridge_set_max_cache(bif, val->v.integer) < 0) in op_begemot_tp()
1471 val->v.integer = bif->age_time; in op_begemot_tp()
1475 val->v.integer = bif->max_addrs; in op_begemot_tp()