Skip to content

Commit

Permalink
Add Bootp, Dhcp to the RequestStreamRecord enum
Browse files Browse the repository at this point in the history
Close: #123
  • Loading branch information
kimhanbeom committed Jun 27, 2024
1 parent 8b7ec69 commit cd1e044
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/publish/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ pub enum RequestStreamRecord {
Tls = 14,
Smb = 15,
Nfs = 16,
Bootp = 17,
Dhcp = 18,

// sysmon
FileCreate = 31,
Expand Down Expand Up @@ -74,6 +76,8 @@ impl RequestStreamRecord {
RequestStreamRecord::Tls => "tls",
RequestStreamRecord::Smb => "smb",
RequestStreamRecord::Nfs => "nfs",
RequestStreamRecord::Bootp => "bootp",
RequestStreamRecord::Dhcp => "dhcp",
RequestStreamRecord::FileCreate => "file_create",
RequestStreamRecord::FileDelete => "file_delete",
}
Expand Down Expand Up @@ -101,6 +105,8 @@ impl RequestStreamRecord {
"tls" => Ok(RequestStreamRecord::Tls),
"smb" => Ok(RequestStreamRecord::Smb),
"nfs" => Ok(RequestStreamRecord::Nfs),
"bootp" => Ok(RequestStreamRecord::Bootp),
"dhcp" => Ok(RequestStreamRecord::Dhcp),
"file_create" => Ok(RequestStreamRecord::FileCreate),
"file_delete" => Ok(RequestStreamRecord::FileDelete),
_ => Err(anyhow!("invalid protocol type")),
Expand Down

0 comments on commit cd1e044

Please sign in to comment.