decode/ppp: add missing types definitions

Recognize PPP_CCP, PPP_CBCP and PPP_COMP_DGRAM.

Does not implement decoders for these record types, so these
are logged as unsupported types. Was "wrong_type" before.
pull/10852/head
Victor Julien 11 months ago committed by Victor Julien
parent 7e3f071e49
commit 516441b600

@ -158,6 +158,9 @@ static int DecodePPPUncompressedProto(ThreadVars *tv, DecodeThreadVars *dtv, Pac
case PPP_PAP:
case PPP_LQM:
case PPP_CHAP:
case PPP_CCP:
case PPP_CBCP:
case PPP_COMP_DGRAM:
ENGINE_SET_EVENT(p,PPP_UNSUP_PROTO);
return TM_ECODE_OK;

@ -59,6 +59,9 @@
#define PPP_PAP 0xc023 /* Password Authentication Protocol */
#define PPP_LQM 0xc025 /* Link Quality Monitoring */
#define PPP_CHAP 0xc223 /* Challenge Handshake Authentication Protocol */
#define PPP_CCP 0x80fd /* Compression Control Protocol */
#define PPP_CBCP 0xc029 /* Callback Control Protocol CBCP */
#define PPP_COMP_DGRAM 0x00fd /* Compressed datagram */
/** PPP Packet header */
typedef struct PPPHdr_ {

Loading…
Cancel
Save