Wireshark-commits: [Wireshark-commits] master-2.6 b77c3a1: SNMP: handle Net-SNMP Engine Id of 12 oc
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 25 Oct 2019 03:25:37 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=b77c3a1ddda55d2cd61f9452f09bf515ad4785c3
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master-2.6
Repository: wireshark

Commits:

b77c3a1 by Jaap Keuter (jaap.keuter@xxxxxxxxx):

    SNMP: handle Net-SNMP Engine Id of 12 octets
    
    The Net-SNMP code creates an Engine Id size based on the compilation
    size, either 8 or 12 octets long. The initial change added handling of
    the '4B/8B random, 4B epoch seconds' format. A different format seems
    more likely though, hence this change, implementing handling of the
    '4B random, 4B/8B epoch seconds' format instead.
    
    Bug: 16051
    Change-Id: I8105b0ba69004f6c15e6b1926c677cb4c5b76f17
    Reviewed-on: https://code.wireshark.org/review/34816
    Reviewed-by: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
    Petri-Dish: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Jaap Keuter <jaap.keuter@xxxxxxxxx>
    (cherry picked from commit 54fac1e3097142062f5ed8e1d34ed5a247d9ed70)
    Reviewed-on: https://code.wireshark.org/review/34832
    Petri-Dish: Jaap Keuter <jaap.keuter@xxxxxxxxx>
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  0d38ae6   CMake: Enable tests.
     add  b77c3a1   SNMP: handle Net-SNMP Engine Id of 12 octets


Summary of changes:
 epan/dissectors/asn1/snmp/packet-snmp-template.c | 15 ++++++++++-----
 epan/dissectors/packet-snmp.c                    | 21 +++++++++++++--------
 2 files changed, 23 insertions(+), 13 deletions(-)