diff options
author | Michael Mann <mmann78@netscape.net> | 2015-12-13 09:50:01 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-12-13 18:03:57 +0000 |
commit | a7fd6f2083443a5e88b649aa4c54fe6322f8cbe0 (patch) | |
tree | 2fd8bf10b2f7b45d8d2947f0314411296928876e /epan/dissectors/packet-ax25.c | |
parent | 47756e6304199bd27a19dd962cc5a0b1312d1aa8 (diff) |
Standardize the capture dissector function signature.
This will make it easier to mold into (capture) dissector tables.
Change-Id: Iad63f2c2869782977992a3a072adb020be4b1818
Reviewed-on: https://code.wireshark.org/review/12587
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-ax25.c')
-rw-r--r-- | epan/dissectors/packet-ax25.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ax25.c b/epan/dissectors/packet-ax25.c index cb6512dc55..1539379ac7 100644 --- a/epan/dissectors/packet-ax25.c +++ b/epan/dissectors/packet-ax25.c @@ -284,10 +284,18 @@ capture_ax25( const guchar *pd, int offset, int len, packet_counts *ld, const un l_offset += 1; /* step over the pid and point to the first byte of the payload */ switch ( pid & 0x0ff ) { - case AX25_P_NETROM : capture_netrom( pd, l_offset, len, ld ); break; - case AX25_P_IP : capture_ip( pd, l_offset, len, ld ); break; - case AX25_P_ARP : ld->arp++; break; - default : ld->other++; break; + case AX25_P_NETROM : + capture_netrom( pd, l_offset, len, ld, pseudo_header ); + break; + case AX25_P_IP : + capture_ip( pd, l_offset, len, ld, pseudo_header ); + break; + case AX25_P_ARP : + ld->arp++; + break; + default : + ld->other++; + break; } } } |