Hi all,
I am using NET-SNMP 5.4.2.1 and created template code using table_data
handler.
I set the currentMsgID type as counter64 to handle u_int64_t.
How to set convert the u_int64_t to counter64 or U64.
Is there any other type to handle u_int64_t instead of using counter64 ?.
SAMPLE CODE
================================
u_int64_t msg_id = 184826536485926543;
long msg_count = 27363;
long err_msg_count = 34;
struct messageTable_entry {
/* Index values */
long messageIndex;
/* Column values */
char messageType[100];
size_t messageType_len;
long sentMsgCount;
long errorMsgCount;
U64 currentMsgID;
int valid;
};
. . . . .
. . . . .
netsnmp_tdata_row *row = messageTable_createEntry(table_data, 1);
struct messageTable_entry *table_entry = (struct messageTable_entry *)
row->data;
table_entry->sentMsgCount = msg_count;
table_entry->errorMsgCount = err_msg_count;
table_entry->currentMsgID = ??????;
please help
Regards,
Prakash Raju
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders