Lines Matching refs:integer
54 int integer);
60 int integer);
61 static unsigned asn1_size_integer(int integer);
64 static unsigned asn1_size_packed(int integer);
733 int integer; /* Number value */ in asn1_debug() local
810 integer = asn1_get_integer(&buffer, bufend, value_length); in asn1_debug()
813 value_length, integer); in asn1_debug()
817 integer = asn1_get_integer(&buffer, bufend, value_length); in asn1_debug()
820 value_length, integer); in asn1_debug()
824 integer = asn1_get_integer(&buffer, bufend, value_length); in asn1_debug()
827 value_length, (unsigned)integer); in asn1_debug()
831 integer = asn1_get_integer(&buffer, bufend, value_length); in asn1_debug()
834 value_length, (unsigned)integer); in asn1_debug()
838 integer = asn1_get_integer(&buffer, bufend, value_length); in asn1_debug()
841 value_length, (unsigned)integer); in asn1_debug()
869 integer = asn1_get_oid(&buffer, bufend, value_length, oid, in asn1_debug()
874 for (i = 0; i < (unsigned)integer; i ++) in asn1_debug()
1029 packet->object_value.integer = in asn1_decode_snmp()
1118 valuelen = asn1_size_integer(packet->object_value.integer); in asn1_encode_snmp()
1201 asn1_set_integer(&bufptr, packet->object_value.integer); in asn1_encode_snmp()
1440 int integer) /* I - Integer value */ in asn1_set_integer() argument
1445 if (integer > 0x7fffff || integer < -0x800000) in asn1_set_integer()
1449 **buffer = (unsigned char)(integer >> 24); in asn1_set_integer()
1451 **buffer = (unsigned char)(integer >> 16); in asn1_set_integer()
1453 **buffer = (unsigned char)(integer >> 8); in asn1_set_integer()
1455 **buffer = (unsigned char)integer; in asn1_set_integer()
1458 else if (integer > 0x7fff || integer < -0x8000) in asn1_set_integer()
1462 **buffer = (unsigned char)(integer >> 16); in asn1_set_integer()
1464 **buffer = (unsigned char)(integer >> 8); in asn1_set_integer()
1466 **buffer = (unsigned char)integer; in asn1_set_integer()
1469 else if (integer > 0x7f || integer < -0x80) in asn1_set_integer()
1473 **buffer = (unsigned char)(integer >> 8); in asn1_set_integer()
1475 **buffer = (unsigned char)integer; in asn1_set_integer()
1482 **buffer = (unsigned char)integer; in asn1_set_integer()
1552 int integer) /* I - Integer value */ in asn1_set_packed() argument
1554 if (integer > 0xfffffff) in asn1_set_packed()
1556 **buffer = ((integer >> 28) & 0x7f) | 0x80; in asn1_set_packed()
1560 if (integer > 0x1fffff) in asn1_set_packed()
1562 **buffer = ((integer >> 21) & 0x7f) | 0x80; in asn1_set_packed()
1566 if (integer > 0x3fff) in asn1_set_packed()
1568 **buffer = ((integer >> 14) & 0x7f) | 0x80; in asn1_set_packed()
1572 if (integer > 0x7f) in asn1_set_packed()
1574 **buffer = ((integer >> 7) & 0x7f) | 0x80; in asn1_set_packed()
1578 **buffer = integer & 0x7f; in asn1_set_packed()
1589 asn1_size_integer(int integer) /* I - Integer value */ in asn1_size_integer() argument
1591 if (integer > 0x7fffff || integer < -0x800000) in asn1_size_integer()
1593 else if (integer > 0x7fff || integer < -0x8000) in asn1_size_integer()
1595 else if (integer > 0x7f || integer < -0x80) in asn1_size_integer()
1648 asn1_size_packed(int integer) /* I - Integer value */ in asn1_size_packed() argument
1650 if (integer > 0xfffffff) in asn1_size_packed()
1652 else if (integer > 0x1fffff) in asn1_size_packed()
1654 else if (integer > 0x3fff) in asn1_size_packed()
1656 else if (integer > 0x7f) in asn1_size_packed()