]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
decode/ppp: add missing types definitions
authorVictor Julien <vjulien@oisf.net>
Mon, 15 Apr 2024 10:29:12 +0000 (12:29 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 15 Apr 2024 18:34:38 +0000 (20:34 +0200)
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.

src/decode-ppp.c
src/decode-ppp.h

index 2e558ab5bf51aabcd1489846282120774cb409a7..1d22b255893fa383e46bedce14c39f6faf6fd1ac 100644 (file)
@@ -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;
 
index ee5258c694861611e7d62cc07bb713f33113c9ec..6ec7830acecdacf7eebb8dc9816ac6b265f265ed 100644 (file)
@@ -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_ {