u_int af, flags;
const struct enchdr *hdr;
+ ndo->ndo_protocol = "enc_if";
if (caplen < ENC_HDRLEN) {
- ND_PRINT("[|enc]");
+ nd_print_trunc(ndo);
goto out;
}
ENC_PRINT_TYPE(flags, M_AUTH, "authentic");
ENC_PRINT_TYPE(flags, M_CONF, "confidential");
/* ENC_PRINT_TYPE(flags, M_TUNNEL, "tunnel"); */
- ND_PRINT("SPI 0x%08x: ", EXTRACT_BE_U_4(hdr->spi));
+ ND_PRINT("SPI 0x%08x: ", GET_BE_U_4(hdr->spi));
length -= ENC_HDRLEN;
caplen -= ENC_HDRLEN;
out:
return (ENC_HDRLEN);
}
-
-
-/*
- * Local Variables:
- * c-style: whitesmith
- * c-basic-offset: 8
- * End:
- */