extern void ap1394_if_print IF_PRINTER_ARGS;
extern void arcnet_if_print IF_PRINTER_ARGS;
extern void arcnet_linux_if_print IF_PRINTER_ARGS;
-extern u_int atm_if_print IF_PRINTER_ARGS;
+extern void atm_if_print IF_PRINTER_ARGS;
extern void bt_if_print IF_PRINTER_ARGS;
extern void brcm_tag_if_print IF_PRINTER_ARGS;
extern void brcm_tag_prepend_if_print IF_PRINTER_ARGS;
* 'h->len' is the length of the packet off the wire, and 'h->caplen'
* is the number of bytes actually captured.
*/
-u_int
+void
atm_if_print(netdissect_options *ndo,
const struct pcap_pkthdr *h, const u_char *p)
{
uint32_t llchdr;
u_int hdrlen = 0;
- ndo->ndo_protocol = "atm_if";
+ ndo->ndo_protocol = "atm";
if (caplen < 1) {
nd_print_trunc(ndo);
- return (caplen);
+ ndo->ndo_ll_hdr_len += caplen;
+ return;
}
/* Cisco Style NLPID ? */
if (ndo->ndo_eflag)
ND_PRINT("CNLPID ");
isoclns_print(ndo, p + 1, length - 1);
- return hdrlen;
+ ndo->ndo_ll_hdr_len += hdrlen;
+ return;
}
/*
*/
if (caplen < 3) {
nd_print_trunc(ndo);
- return (caplen);
+ ndo->ndo_ll_hdr_len += caplen;
+ return;
}
/*
*/
if (caplen < 20) {
nd_print_trunc(ndo);
- return (caplen);
+ ndo->ndo_ll_hdr_len += caplen;
+ return;
}
if (ndo->ndo_eflag)
ND_PRINT("%08x%08x %08x%08x ",
hdrlen += 20;
}
hdrlen += atm_llc_print(ndo, p, length, caplen);
- return (hdrlen);
+ ndo->ndo_ll_hdr_len += hdrlen;
}
/*
#ifdef DLT_MFR
{ mfr_if_print, DLT_MFR },
#endif
- { atm_if_print, DLT_ATM_RFC1483 },
#ifdef DLT_LTALK
{ ltalk_if_print, DLT_LTALK },
#endif
#ifdef DLT_ARCNET_LINUX
{ arcnet_linux_if_print, DLT_ARCNET_LINUX },
#endif
+ { atm_if_print, DLT_ATM_RFC1483 },
#ifdef DLT_DSA_TAG_BRCM
{ brcm_tag_if_print, DLT_DSA_TAG_BRCM },
#endif