/*
* 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;
}
/*
return;
case 2: /* response */
- ND_PRINT("reply %s is-at %s", AT(psaddr), etheraddr_string(ndo, ap->hsaddr));
+ ND_PRINT("reply %s is-at %s", AT(psaddr), GET_ETHERADDR_STRING(ap->hsaddr));
return;
case 3: /* probe (oy!) */