summaryrefslogtreecommitdiff
path: root/print-fddi.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-08-02 12:03:19 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-08-02 12:03:39 +0200
commit770b67da7640cb64fa54fb615084d3c369270368 (patch)
tree7cb74475e5dabc6628661debf3f3c58e5e77f80c /print-fddi.c
parente2e1906cff6ab7d5de40f587b89039713dac6d82 (diff)
downloadtcpdump-770b67da7640cb64fa54fb615084d3c369270368.tar.gz
FDDI: Update the link-layer dissector to a void function
Moreover: Remove trailing "_if" from the protocol name.
Diffstat (limited to 'print-fddi.c')
-rw-r--r--print-fddi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-fddi.c b/print-fddi.c
index db5222f6..fb8d3ed5 100644
--- a/print-fddi.c
+++ b/print-fddi.c
@@ -342,9 +342,9 @@ fddi_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen)
* 'h->len' is the length of the packet off the wire, and 'h->caplen'
* is the number of bytes actually captured.
*/
-u_int
+void
fddi_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p)
{
- ndo->ndo_protocol = "fddi_if";
- return (fddi_print(ndo, p, h->len, h->caplen));
+ ndo->ndo_protocol = "fddi";
+ ndo->ndo_ll_hdr_len += fddi_print(ndo, p, h->len, h->caplen);
}