Merge branch '001-dhcp-options' of https://github.com/jrwren/zeek

* '001-dhcp-options' of https://github.com/jrwren/zeek:
  add some dhcp options
This commit is contained in:
Jon Siwek 2019-05-24 18:02:43 -07:00
commit 748a4f2ea2
8 changed files with 167 additions and 2 deletions

View file

@ -0,0 +1,12 @@
# @TEST-EXEC: zeek -b -r $TRACES/dhcp/dhcp_time_and_nameserver.trace %INPUT
# @TEST-EXEC: btest-diff .stdout
@load base/protocols/dhcp
event DHCP::aggregate_msgs(ts: time, id: conn_id, uid: string, is_orig: bool, msg: DHCP::Msg, options: DHCP::Options) &priority=5
{
print "time_offset", options$time_offset;
print "timeserver_list", options$time_servers;
print "nameserver_list", options$name_servers;
print "ntpserver_list", options$ntp_servers;
}