...
readPdu = OVsnmpRecv(trapSession);
if (readPdu != NULL) {
...
// Source Address
printf("%u\n", readPdu->address.sin_addr.s_addr);
// Destination Address
printf("%u\n", readPdu->agent_addr);
...
/* Free Memory Allocated to Pdu */
OVsnmpFreePdu(readPdu);
Coming up equal on all traps. Everything else works fine.
Thanks,
Jason Allison
Principal Engineer
ARINC Incorporated
Office: (410) 266-2006
FAX: (410) 573-3026
-----Original Message-----
From: James Shanks [mailto:jshanks@us.ibm.com]
Sent: Wednesday, November 20, 2002 11:10 AM
To: nv-l@lists.tivoli.com
Subject: Re: [nv-l] Source and destination trap addresses
Maybe nothing, if the trap you are working with is a NetView internal one.
What API call are you using?
James Shanks
Level 3 Support for Tivoli NetView for UNIX and NT
Tivoli Software / IBM Software Group
"Allison, Jason (JALLISON)" <JALLISON@arinc.com>
11/20/2002 08:32 AM
To: "'nv-l'" <nv-l@lists.tivoli.com>
cc:
Subject: [nv-l] Source and destination trap addresses
Having some trouble determining both. From the API:
Source Address: readPdu->address.sin_addr.s_addr
Destination Address: readPdu->agent_addr
Both of these addresses are coming out the same. What am I missing?
Thanks,
Jason Allison
Principal Engineer
ARINC Incorporated
Office: (410) 266-2006
FAX: (410) 573-3026
---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com
*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)
---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com
*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)
|