Actions
Optimization #5785
opensmb: use u32.to_be_bytes to replace function u32_as_bytes
Effort:
Difficulty:
Label:
Beginner
Description
I think use std function here is more straightforward.
u32_as_bytes implement: https://github.com/OISF/suricata/blob/55c4834e4e9b14a441b735f84d8d35b4eb151702/rust/src/smb/smb.rs#L670-L676
to_be_bytes document: https://doc.rust-lang.org/std/primitive.u32.html#method.to_be_bytes
Actions