Wireshark-commits: [Wireshark-commits] master f3ddcb9: pcapng: pull the interface ID handling into
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sun, 03 May 2020 23:03:18 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=f3ddcb96a369472cde3c83f26ff747d5772b8e3a
Submitter: "Guy Harris <gharris@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

f3ddcb9 by Guy Harris (guy@xxxxxxxxxxxx):

    pcapng: pull the interface ID handling into a single routine.
    
    Have a routine that takes an interface ID as an argument and:
    
    	if it's within range, fetches the interface description and
    	returns a pointer to it;
    
    	if it's not within range, adds an expert info and returns NULL;
    
    and have the code to dissect blocks with interface IDs just call it.
    
    Change-Id: I705fe94a9a5fb5a27650465f3c55e0dc1b6fbd23
    Reviewed-on: https://code.wireshark.org/review/37090
    Petri-Dish: Guy Harris <gharris@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <gharris@xxxxxxxxx>
    

Actions performed:

    from  c9735a3   Generate a dummy description if we don't have an interface name.
     add  f3ddcb9   pcapng: pull the interface ID handling into a single routine.


Summary of changes:
 epan/dissectors/file-pcapng.c | 77 ++++++++++++++++++++++++-------------------
 1 file changed, 44 insertions(+), 33 deletions(-)