mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
393 B
C
21 lines
393 B
C
17 years ago
|
/* Copyright (c) 2008 Victor Julien <victor@inliniac.net> */
|
||
|
|
||
|
#include "decode.h"
|
||
|
#include "decode-icmpv4.h"
|
||
|
|
||
|
void DecodeICMPV4(ThreadVars *t, Packet *p, u_int8_t *pkt, u_int16_t len )
|
||
|
{
|
||
|
p->icmpv4h = (ICMPV4Hdr *)pkt;
|
||
|
|
||
|
if (len < ICMPV4_HEADER_LEN) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
#ifdef DEBUG
|
||
|
printf("ICMPV4 TYPE %u CODE %u\n", p->icmpv4h->type, p->icmpv4h->code);
|
||
|
#endif
|
||
|
|
||
|
return;
|
||
|
}
|
||
|
|