zeek/testing/btest/bifs/routing0_data_to_addrs.test
Jon Siwek 1c1d657039 Changes to IPv6 ext. header parsing (addresses #795).
In response to feedback from Robin:

  - rename "ip_hdr" to "ip4_hdr"

  - pkt_hdr$ip6 is now of type "ip6_hdr" instead of "ip6_hdr_chain"

  - "ip6_hdr_chain" no longer contains an "ip6_hdr" field, instead
    it's the other way around, "ip6_hdr" contains an "ip6_hdr_chain"

  - other internal refactoring
2012-03-20 15:50:17 -05:00

9 lines
301 B
Text

# @TEST-EXEC: bro -C -b -r $TRACES/ext_hdr_hbh_routing.trace %INPUT >output
# @TEST-EXEC: btest-diff output
event ipv6_ext_headers(c: connection, p: pkt_hdr)
{
for ( h in p$ip6$exts$routing )
if ( p$ip6$exts$routing[h]$rtype == 0 )
print routing0_data_to_addrs(p$ip6$exts$routing[h]$data);
}