inliniac/suricata — pull request #53 by regit (2012-09-05 12:34:37+00:00)
Title: decode: use pointer inside packet area as param

DecodeTeredo, DecodeIPv6InIPv6 and DecodeIPv4inIPv6 were calling
DecodeTunnel with packet being a pseudo packet and data being
data from initial packet:
```C
DecodeTunnel(tv, dtv, tp, start, blen,
pq, IPPROTO_IPV6);
```
In decoding functions, arithmetic was done on pkt to set some values?
It was resulting in field of packet pointing outside of the scope of
packet data.
This patch switch to what has been done in DecodeGre(), I mean:
```C
DecodeTunnel(tv, dtv, tp, GET_PKT_DATA(tp),
GET_PKT_LEN(tp), pq, IPPROTO_IP);
```
Data buffer is then relative to the packet and the arithmetic is
correct.