Re: why does uint64_t arrive with reverse order in notification?

Alexander Bubnov <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I am sorry I foggot to out the definition:

uint64_t runtime_task_id;

As I understand I should not use uint64_t...

Thank you.

2009/2/19 Dave Shield <[email protected]>

> 2009/2/19 Alexander Bubnov <[email protected]>:
> > snmp_varlist_add_variable( &notification_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
>



-- 
/BR, Alexander

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.