Home
last modified time | relevance | path

Searched refs:u_char_len (Results 1 – 1 of 1) sorted by relevance

/dports/net-mgmt/net-snmp/net-snmp-5.9/snmplib/
H A Dsnmpusm.c853 asn_predict_length(int type, u_char * ptr, size_t u_char_len) in asn_predict_length() argument
857 return 1 + 3 + u_char_len; in asn_predict_length()
861 memcpy(&value, ptr, u_char_len); in asn_predict_length()
862 u_char_len = asn_predict_int_length(type, value, u_char_len); in asn_predict_length()
865 if (u_char_len < 0x80) in asn_predict_length()
866 return 1 + 1 + u_char_len; in asn_predict_length()
867 else if (u_char_len < 0xFF) in asn_predict_length()
868 return 1 + 2 + u_char_len; in asn_predict_length()
870 return 1 + 3 + u_char_len; in asn_predict_length()