Use constants instead of vwr->STATS_LEN in some cases.
authorGuy Harris <guy@alum.mit.edu>
Sat, 15 Mar 2014 10:02:40 +0000 (03:02 -0700)
committerGuy Harris <guy@alum.mit.edu>
Sat, 15 Mar 2014 10:03:10 +0000 (10:03 +0000)
commit309406299dd694be8191024fd25a5e30d9f7c399
treeab8431574bbd97619bad35ba773e970fc35e6b02
parent41c8cd62bf9df07e981de4e46f59a5452baae472
Use constants instead of vwr->STATS_LEN in some cases.

In some cases, we know, based on the FPGA code, what vwr->STATS_LEN is,
so use that #define.

While we're at it, replace some hardcoded numbers that represent the
statistics trailer length with the appropriate #define.

Also, combine two identical case arms for Ethernet into one.

Change-Id: I0bdea8e5aab146094ad21fa7e67dca2913da688b
Reviewed-on: https://code.wireshark.org/review/672
Reviewed-by: Guy Harris <guy@alum.mit.edu>
wiretap/vwr.c