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.
22 lines
540 B
C
22 lines
540 B
C
17 years ago
|
/* Copyright (c) 2008 Victor Julien <victor@inliniac.net> */
|
||
|
|
||
|
/* Decode the raw packet */
|
||
|
|
||
|
#include "decode.h"
|
||
|
|
||
|
void DecodeTunnel(ThreadVars *t, Packet *p, u_int8_t *pkt, u_int16_t len)
|
||
|
{
|
||
|
switch (p->tunnel_proto) {
|
||
|
case IPPROTO_IP:
|
||
|
return(DecodeIPV4(t, p, pkt, len));
|
||
|
break;
|
||
|
case IPPROTO_IPV6:
|
||
|
return(DecodeIPV6(t, p, pkt, len));
|
||
|
break;
|
||
|
default:
|
||
|
printf("FIXME: DecodeTunnel: protocol %u not supported.\n", p->tunnel_proto);
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
|