/* specification: RFC 2637 */
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include "netdissect-stdinc.h"
#define PPTP_CTRL_MSG_TYPE_WEN 14
#define PPTP_CTRL_MSG_TYPE_SLI 15
-#define PPTP_FRAMING_CAP_ASYNC_MASK 0x00000001 /* Aynchronous */
+#define PPTP_FRAMING_CAP_ASYNC_MASK 0x00000001 /* Asynchronous */
#define PPTP_FRAMING_CAP_SYNC_MASK 0x00000002 /* Synchronous */
#define PPTP_BEARER_CAP_ANALOG_MASK 0x00000001 /* Analog */
const u_char *hostname)
{
ND_PRINT(" HOSTNAME(");
- nd_printzp(ndo, hostname, 64, ndo->ndo_snapend);
+ nd_printjnp(ndo, hostname, 64);
ND_PRINT(")");
}
const u_char *subaddr)
{
ND_PRINT(" SUB_ADDR(");
- nd_printzp(ndo, subaddr, 64, ndo->ndo_snapend);
+ nd_printjnp(ndo, subaddr, 64);
ND_PRINT(")");
}
const u_char *vendor)
{
ND_PRINT(" VENDOR(");
- nd_printzp(ndo, vendor, 64, ndo->ndo_snapend);
+ nd_printjnp(ndo, vendor, 64);
ND_PRINT(")");
}
ND_PRINT(" PHONE_NO_LEN(%u)", GET_BE_U_2(ptr->phone_no_len));
PRINT_RESERVED_IF_NOT_ZERO_2(ptr->reserved1);
ND_PRINT(" PHONE_NO(");
- nd_printzp(ndo, ptr->phone_no,
- ND_MIN(64, GET_BE_U_2(ptr->phone_no_len)),
- ndo->ndo_snapend);
+ nd_printjnp(ndo, ptr->phone_no,
+ ND_MIN(64, GET_BE_U_2(ptr->phone_no_len)));
ND_PRINT(")");
pptp_subaddr_print(ndo, ptr->subaddr);
}
ND_PRINT(" DIALED_NO_LEN(%u)", GET_BE_U_2(ptr->dialed_no_len));
ND_PRINT(" DIALING_NO_LEN(%u)", GET_BE_U_2(ptr->dialing_no_len));
ND_PRINT(" DIALED_NO(");
- nd_printzp(ndo, ptr->dialed_no,
- ND_MIN(64, GET_BE_U_2(ptr->dialed_no_len)),
- ndo->ndo_snapend);
+ nd_printjnp(ndo, ptr->dialed_no,
+ ND_MIN(64, GET_BE_U_2(ptr->dialed_no_len)));
ND_PRINT(")");
ND_PRINT(" DIALING_NO(");
- nd_printzp(ndo, ptr->dialing_no,
- ND_MIN(64, GET_BE_U_2(ptr->dialing_no_len)),
- ndo->ndo_snapend);
+ nd_printjnp(ndo, ptr->dialing_no,
+ ND_MIN(64, GET_BE_U_2(ptr->dialing_no_len)));
ND_PRINT(")");
pptp_subaddr_print(ndo, ptr->subaddr);
}
pptp_cause_code_print(ndo, ptr->cause_code);
PRINT_RESERVED_IF_NOT_ZERO_2(ptr->reserved1);
ND_PRINT(" CALL_STATS(");
- nd_printzp(ndo, ptr->call_stats, 128, ndo->ndo_snapend);
+ nd_printjnp(ndo, ptr->call_stats, 128);
ND_PRINT(")");
}