mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
Add support for DLT_LINUX_SLL2 PCAP link-type
This commit is contained in:
parent
c887bcb517
commit
b8f0acb5f1
13 changed files with 144 additions and 2 deletions
6
testing/btest/Baseline/core.linuxsll2/.stdout
Normal file
6
testing/btest/Baseline/core.linuxsll2/.stdout
Normal file
|
@ -0,0 +1,6 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
[orig_h=192.0.2.1, orig_p=8/icmp, resp_h=192.0.2.1, resp_p=0/icmp], [v6=F, itype=8, icode=0, len=56, ttl=64], 8, 1
|
||||
[orig_h=192.0.2.1, orig_p=8/icmp, resp_h=192.0.2.1, resp_p=0/icmp], [v6=F, itype=0, icode=0, len=56, ttl=64], 8, 1
|
||||
[orig_h=fe80::8c36:6ff:fe44:acaf, orig_p=128/icmp, resp_h=fe80::8c36:6ff:fe44:acaf, resp_p=129/icmp], [v6=T, itype=128, icode=0, len=56, ttl=64], 9, 1
|
||||
[orig_h=fe80::8c36:6ff:fe44:acaf, orig_p=128/icmp, resp_h=fe80::8c36:6ff:fe44:acaf, resp_p=129/icmp], [v6=T, itype=129, icode=0, len=56, ttl=64], 9, 1
|
||||
8e:36:06:44:ac:af, 00:00:00:00:00:00, 192.0.2.1, 8e:36:06:44:ac:af, 192.0.2.2, 00:00:00:00:00:00
|
BIN
testing/btest/Traces/linux_dlt_sll2.pcap
Normal file
BIN
testing/btest/Traces/linux_dlt_sll2.pcap
Normal file
Binary file not shown.
17
testing/btest/core/linuxsll2.zeek
Normal file
17
testing/btest/core/linuxsll2.zeek
Normal file
|
@ -0,0 +1,17 @@
|
|||
# @TEST-EXEC: zeek -b -C -r $TRACES/linux_dlt_sll2.pcap %INPUT
|
||||
# @TEST-EXEC: btest-diff .stdout
|
||||
|
||||
event arp_request(mac_src: string, mac_dst: string, SPA: addr, SHA: string, TPA: addr, THA: string)
|
||||
{
|
||||
print mac_src, mac_dst, SPA, SHA, TPA, THA;
|
||||
}
|
||||
|
||||
event icmp_echo_request(c: connection , info: icmp_info , id: count , seq: count , payload: string )
|
||||
{
|
||||
print c$id, info, id, seq;
|
||||
}
|
||||
|
||||
event icmp_echo_reply(c: connection , info: icmp_info , id: count , seq: count , payload: string )
|
||||
{
|
||||
print c$id, info, id, seq;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue