BIT-342: add "icmp_sent_payload" event.

This commit is contained in:
Jon Siwek 2015-03-18 16:16:24 -05:00
parent 567073ac09
commit 981be3b670
6 changed files with 51 additions and 14 deletions

View file

@ -0,0 +1,2 @@
icmp_sent, [orig_h=fe80::2c23:b96c:78d:e116, orig_p=143/icmp, resp_h=ff02::16, resp_p=0/icmp], [orig_h=fe80::2c23:b96c:78d:e116, resp_h=ff02::16, itype=143, icode=0, len=20, hlim=1, v6=T]
icmp_sent_payload, [orig_h=fe80::2c23:b96c:78d:e116, orig_p=143/icmp, resp_h=ff02::16, resp_p=0/icmp], [orig_h=fe80::2c23:b96c:78d:e116, resp_h=ff02::16, itype=143, icode=0, len=20, hlim=1, v6=T], 20

Binary file not shown.

View file

@ -0,0 +1,12 @@
# @TEST-EXEC: bro -b -r $TRACES/icmp/icmp_sent.pcap %INPUT >out
# @TEST-EXEC: btest-diff out
event icmp_sent(c: connection, icmp: icmp_conn)
{
print "icmp_sent", c$id, icmp;
}
event icmp_sent_payload(c: connection, icmp: icmp_conn, payload: string)
{
print "icmp_sent_payload", c$id, icmp, |payload|;
}