mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00

- Accessible at script-layer through 'mobile_ipv6_message' event. - All Mobile IPv6 analysis now enabled through --enable-mobile-ipv6 configure-time option, otherwise the mobility header, routing type 2, and Home Address Destination option are ignored.
12 lines
340 B
Text
12 lines
340 B
Text
# @TEST-REQUIRES: grep -q "#undef ENABLE_MOBILE_IPV6" $BUILD/config.h
|
|
# @TEST-EXEC: bro -b -r $TRACES/mobile-ipv6/mip6_back.trace %INPUT >output 2>&1
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
event mobile_ipv6_message(p: pkt_hdr)
|
|
{
|
|
if ( ! p?$ip6 ) return;
|
|
|
|
for ( i in p$ip6$exts )
|
|
if ( p$ip6$exts[i]$id == IPPROTO_MOBILITY )
|
|
print p$ip6;
|
|
}
|