45 const uint8_t *pkt, uint32_t
len)
55 if (!PacketIncreaseCheckLayers(p)) {
59 p->
ppph = (PPPHdr *)pkt;
61 SCLogDebug(
"p %p pkt %p PPP protocol %04x Len: %" PRIu32
"",
155 static int DecodePPPtest01 (
void)
157 uint8_t raw_ppp[] = { 0xff, 0x03, 0x00, 0x21, 0x45, 0xc0, 0x00 };
184 static int DecodePPPtest02 (
void)
186 uint8_t raw_ppp[] = { 0xff, 0x03, 0x00, 0xff, 0x45, 0xc0, 0x00, 0x2c, 0x4d,
187 0xed, 0x00, 0x00, 0xff, 0x06, 0xd5, 0x17, 0xbf, 0x01,
188 0x0d, 0x01, 0xbf, 0x01, 0x0d, 0x03, 0xea, 0x37, 0x00,
189 0x17, 0x6d, 0x0b, 0xba, 0xc3, 0x00, 0x00, 0x00, 0x00,
190 0x60, 0x02, 0x10, 0x20, 0xdd, 0xe1, 0x00, 0x00 };
219 static int DecodePPPtest03 (
void)
221 uint8_t raw_ppp[] = { 0xff, 0x03, 0x00, 0x21, 0x45, 0xc0, 0x00, 0x2c, 0x4d,
222 0xed, 0x00, 0x00, 0xff, 0x06, 0xd5, 0x17, 0xbf, 0x01,
223 0x0d, 0x01, 0xbf, 0x01, 0x0d, 0x03, 0xea, 0x37, 0x00,
224 0x17, 0x6d, 0x0b, 0xba, 0xc3, 0x00, 0x00, 0x00, 0x00,
225 0x60, 0x02, 0x10, 0x20, 0xdd, 0xe1, 0x00, 0x00 };
241 if(p->
ppph == NULL) {
277 static int DecodePPPtest04 (
void)
279 uint8_t raw_ppp[] = { 0xff, 0x03, 0x00, 0x21, 0x45, 0xc0, 0x00, 0x2c, 0x4d,
280 0xed, 0x00, 0x00, 0xff, 0x06, 0xd5, 0x17, 0xbf, 0x01,
281 0x0d, 0x01, 0xbf, 0x01, 0x0d, 0x03, 0xea, 0x37, 0x00,
282 0x17, 0x6d, 0x0b, 0xba, 0xc3, 0x00, 0x00, 0x00, 0x00,
283 0x60, 0x02, 0x10, 0x20, 0xdd, 0xe1, 0x00, 0x00 };
299 if(p->
ppph == NULL) {