/* \summary: Cisco HDLC printer */
#ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
#endif
#include "netdissect-stdinc.h"
u_int
chdlc_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p)
{
+ ndo->ndo_protocol = "chdlc_if";
return chdlc_print(ndo, p, h->len);
}
u_int proto;
const u_char *bp = p;
+ ndo->ndo_protocol = "chdlc";
if (length < CHDLC_HDRLEN)
goto trunc;
ND_TCHECK_LEN(p, CHDLC_HDRLEN);
return (CHDLC_HDRLEN);
trunc:
- ND_PRINT("[|chdlc]");
+ nd_print_trunc(ndo);
return ndo->ndo_snapend - bp;
}
const struct cisco_slarp *slarp;
u_int sec,min,hrs,days;
+ ndo->ndo_protocol = "chdlc_slarp";
ND_PRINT("SLARP (length: %u), ",length);
if (length < SLARP_MIN_LEN)
goto trunc;
break;
case SLARP_REPLY:
ND_PRINT("reply %s/%s",
- ipaddr_string(ndo, &slarp->un.addr.addr),
- ipaddr_string(ndo, &slarp->un.addr.mask));
+ ipaddr_string(ndo, slarp->un.addr.addr),
+ ipaddr_string(ndo, slarp->un.addr.mask));
break;
case SLARP_KEEPALIVE:
ND_PRINT("keepalive: mineseen=0x%08x, yourseen=0x%08x, reliability=0x%04x",
return;
trunc:
- ND_PRINT("[|slarp]");
+ nd_print_trunc(ndo);
}
-
-
-/*
- * Local Variables:
- * c-style: whitesmith
- * c-basic-offset: 8
- * End:
- */