Added get_current_packet_header bif.

This commit is contained in:
Jan Grashoefer 2016-04-20 00:00:47 +02:00
parent 2fc8ef232a
commit c0bf1b3c67
6 changed files with 92 additions and 74 deletions

View file

@ -393,6 +393,7 @@ RecordVal* IP_Hdr::BuildPktHdrVal(RecordVal* pkt_hdr, int sindex) const
}
case IPPROTO_ICMP:
case IPPROTO_ICMPV6:
{
const struct icmp* icmpp = (const struct icmp *) data;
RecordVal* icmp_hdr = new RecordVal(icmp_hdr_type);