in reply to Strange results from unpack when trying to decode OSPF LSA's from the OSPF MIB

I concur with other comments in the thread - your hex dump is consistent with the output (and, FWIW, your unpack looks consistent with the RFC definition).

Logic suggests therefore that the problem is arising before the data arrives in your function. I have two suggestions there:

--------------------------------------------------------------

g0n, backpropagated monk

  • Comment on Re: Strange results from unpack when trying to decode OSPF LSA's from the OSPF MIB

Replies are listed 'Best First'.
Re^2: Strange results from unpack when trying to decode OSPF LSA's from the OSPF MIB
by mattedug (Initiate) on Aug 05, 2005 at 14:08 UTC
    Hi,

    Thanks for your suggestions. You were right, it was the SNMP get code that was causing the problem. I've upgraded that now and it is spot on, here is an example.

    LSA Header Dump: [000] 00 00 22 02 0A 01 01 02 0A 01 FE 01 80 00 00 29 [016] 0F BE 00 20 $VAR1 = { 'seqNo' => '2147483689', 'length' => 32, 'checksum' => 4030, 'advRouter' => '10.1.254.1', 'options' => '*|-|DC|-|-|-|E|*', 'lsid' => '10.1.1.2', 'type' => 'Network-LSA', 'age' => '0' };

    Thanks once again.

    Matt