X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/8be5413f3a168bd9913ac7ab348404f5af54dd42..396e94ff55a80d554b1fe46bf107db1e91008d6c:/print-ether.c diff --git a/print-ether.c b/print-ether.c index 5072c442..01dd1130 100644 --- a/print-ether.c +++ b/print-ether.c @@ -126,6 +126,8 @@ ether_hdr_print(netdissect_options *ndo, * This might be encapsulated within another frame; we might be passed * a pointer to a function that can print header information for that * frame's protocol, and an argument to pass to that function. + * + * FIXME: caplen can and should be derived from ndo->ndo_snapend and p. */ u_int ether_print(netdissect_options *ndo, @@ -364,7 +366,7 @@ ethertype_print(netdissect_options *ndo, ND_PRINT((ndo, " [|osi]")); return (1); } - isoclns_print(ndo, p + 1, length - 1, caplen - 1); + isoclns_print(ndo, p + 1, length - 1); return(1); case ETHERTYPE_PPPOED: @@ -437,7 +439,7 @@ ethertype_print(netdissect_options *ndo, return (1); case ETHERTYPE_MEDSA: - medsa_print(ndo, p, length, caplen); + medsa_print(ndo, p, length, caplen, src, dst); return (1); case ETHERTYPE_LAT: