extern void juniper_pppoe_atm_if_print IF_PRINTER_ARGS;
extern void juniper_pppoe_if_print IF_PRINTER_ARGS;
extern void juniper_services_if_print IF_PRINTER_ARGS;
-extern u_int ltalk_if_print IF_PRINTER_ARGS;
+extern void ltalk_if_print IF_PRINTER_ARGS;
extern void mfr_if_print IF_PRINTER_ARGS;
extern void netanalyzer_if_print IF_PRINTER_ARGS;
extern void netanalyzer_transparent_if_print IF_PRINTER_ARGS;
/*
* Print LLAP packets received on a physical LocalTalk interface.
*/
-u_int
+void
ltalk_if_print(netdissect_options *ndo,
const struct pcap_pkthdr *h, const u_char *p)
{
u_int hdrlen;
- ndo->ndo_protocol = "ltalk_if";
+ ndo->ndo_protocol = "ltalk";
hdrlen = llap_print(ndo, p, h->len);
if (hdrlen == 0) {
/* Cut short by the snapshot length. */
- return (h->caplen);
+ ndo->ndo_ll_hdr_len += h->caplen;
+ return;
}
- return (hdrlen);
+ ndo->ndo_ll_hdr_len += hdrlen;
}
/*
static const struct uint_printer uint_printers[] = {
#if defined(DLT_PFLOG) && defined(HAVE_NET_IF_PFLOG_H)
{ pflog_if_print, DLT_PFLOG },
-#endif
-#ifdef DLT_LTALK
- { ltalk_if_print, DLT_LTALK },
#endif
{ NULL, 0 },
};
#ifdef DLT_JUNIPER_SERVICES
{ juniper_services_if_print, DLT_JUNIPER_SERVICES },
#endif
+#ifdef DLT_LTALK
+ { ltalk_if_print, DLT_LTALK },
+#endif
#ifdef DLT_MFR
{ mfr_if_print, DLT_MFR },
#endif