Wireshark-commits: [Wireshark-commits] master-2.2 043e92a: packet-rpcrdma: Fix protocol frame pre-d

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 3 Dec 2016 00:32:59 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=043e92ab030094036d1188daf728f546e6a5f668
Submitter: Michael Mann (mmann78@xxxxxxxxxxxx)
Changed: branch: master-2.2
Repository: wireshark

Commits:

043e92a by Chuck Lever (chuck.lever@xxxxxxxxxx):

    packet-rpcrdma: Fix protocol frame pre-detection
    
    The current mechanism of detecting RPC-over-RDMA is broken because
    it treats the Read list as a counted array (it's a list); and treats
    the Write list and Reply chunk identically (one is a list, one is
    always a single chunk).
    
    While we're here, refactor pre-detection helper functions so they
    can be used during frame dissection as well.
    
    Bug: 13196
    Change-Id: I76e210c8d2a9464fed00e7199072d37f4ebbebf2
    Signed-off-by: Chuck Lever <chuck.lever@xxxxxxxxxx>
    Reviewed-on: https://code.wireshark.org/review/19025
    Petri-Dish: Michael Mann <mmann78@xxxxxxxxxxxx>
    Reviewed-by: Michael Mann <mmann78@xxxxxxxxxxxx>
    (cherry picked from commit 2462f9e8103b23c2728cc5aa84995e0b2f363f12)
    Reviewed-on: https://code.wireshark.org/review/19044
    

Actions performed:

    from  0798e0a   Include config.h at the very beginning of all Flex scanners.
    adds  043e92a   packet-rpcrdma: Fix protocol frame pre-detection


Summary of changes:
 epan/dissectors/packet-rpcrdma.c |  127 +++++++++++++++++++++++++++-----------
 1 file changed, 90 insertions(+), 37 deletions(-)