Re: why does uint64_t arrive with reverse order in notification?
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2009/2/19 Alexander Bubnov <[email protected]>: > snmp_varlist_add_variable( ¬ification_vars, > persistent_task_oid, persistent_task_oid_length, > ASN_COUNTER64, > (const u_char *) persistent_task_id_value, > persistent_task_id_value_length ); What is the definition of the variable 'persistent_task_id_value' ? (it's not present in the code fragment you posted) > //runtime_task_id = (runtime_task_id<<32)|(runtime_task_id>>32); Eh? What on earth are you trying to do here?!? ASN_COUNTER64 expects a "struct counter" data type. Try struct counter64 persistent_task_id_value; persistent_task_id_value.low = runtime_task_id & 0xffffffff; persistent_task_id_value.high = runtime_task_id >> 32; > subj. is it a bug? Looks like coder error to me.... Dave ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users