44 const uint8_t *pkt, uint32_t
len)
52 if (!PacketIncreaseCheckLayers(p)) {
56 p->
ppph = (PPPHdr *)pkt;
60 SCLogDebug(
"p %p pkt %p PPP protocol %04x Len: %" PRIu32
"",
153 static int DecodePPPtest01 (
void)
155 uint8_t raw_ppp[] = { 0xff, 0x03, 0x00, 0x21, 0x45, 0xc0, 0x00 };
182 static int DecodePPPtest02 (
void)
184 uint8_t raw_ppp[] = { 0xff, 0x03, 0x00, 0xff, 0x45, 0xc0, 0x00, 0x2c, 0x4d,
185 0xed, 0x00, 0x00, 0xff, 0x06, 0xd5, 0x17, 0xbf, 0x01,
186 0x0d, 0x01, 0xbf, 0x01, 0x0d, 0x03, 0xea, 0x37, 0x00,
187 0x17, 0x6d, 0x0b, 0xba, 0xc3, 0x00, 0x00, 0x00, 0x00,
188 0x60, 0x02, 0x10, 0x20, 0xdd, 0xe1, 0x00, 0x00 };
217 static int DecodePPPtest03 (
void)
219 uint8_t raw_ppp[] = { 0xff, 0x03, 0x00, 0x21, 0x45, 0xc0, 0x00, 0x2c, 0x4d,
220 0xed, 0x00, 0x00, 0xff, 0x06, 0xd5, 0x17, 0xbf, 0x01,
221 0x0d, 0x01, 0xbf, 0x01, 0x0d, 0x03, 0xea, 0x37, 0x00,
222 0x17, 0x6d, 0x0b, 0xba, 0xc3, 0x00, 0x00, 0x00, 0x00,
223 0x60, 0x02, 0x10, 0x20, 0xdd, 0xe1, 0x00, 0x00 };
239 if(p->
ppph == NULL) {
275 static int DecodePPPtest04 (
void)
277 uint8_t raw_ppp[] = { 0xff, 0x03, 0x00, 0x21, 0x45, 0xc0, 0x00, 0x2c, 0x4d,
278 0xed, 0x00, 0x00, 0xff, 0x06, 0xd5, 0x17, 0xbf, 0x01,
279 0x0d, 0x01, 0xbf, 0x01, 0x0d, 0x03, 0xea, 0x37, 0x00,
280 0x17, 0x6d, 0x0b, 0xba, 0xc3, 0x00, 0x00, 0x00, 0x00,
281 0x60, 0x02, 0x10, 0x20, 0xdd, 0xe1, 0x00, 0x00 };
297 if(p->
ppph == NULL) {