Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next/659/70x/20241205/v1 #12231

Merged
merged 5 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 37 additions & 72 deletions rust/Cargo.lock.in

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/Cargo.toml.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ crc = "~1.8.1"
lzma-rs = { version = "~0.2.0", features = ["stream"] }
memchr = "~2.4.1"
num = "~0.2.1"
num-derive = "~0.2.5"
num-derive = "~0.4.2"
num-traits = "~0.2.14"
widestring = "~0.4.3"
flate2 = "~1.0.19"
Expand Down
7 changes: 7 additions & 0 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@
// cf https://github.com/mozilla/cbindgen/issues/709
#![allow(unused_doc_comments)]

// Allow unknown lints, our MSRV doesn't know them all, for
// example static_mut_refs.
#![allow(unknown_lints)]

// Allow for now, but need to be fixed.
#![allow(static_mut_refs)]

#[macro_use]
extern crate bitflags;
extern crate byteorder;
Expand Down
2 changes: 1 addition & 1 deletion rust/src/smb/nbss_records.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub struct NbssRecord<'a> {
pub data: &'a[u8],
}

impl<'a> NbssRecord<'a> {
impl NbssRecord<'_> {
pub fn is_valid(&self) -> bool {
let valid = match self.message_type {
NBSS_MSGTYPE_SESSION_MESSAGE |
Expand Down
3 changes: 2 additions & 1 deletion rust/src/smb/smb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,8 @@ impl SMBTransactionTreeConnect {

#[derive(Debug)]
pub struct SMBTransaction {
pub id: u64, /// internal id
/// internal id
pub id: u64,

/// version, command and status
pub vercmd: SMBVerCmdStat,
Expand Down
2 changes: 1 addition & 1 deletion rust/src/smb/smb1_records.rs
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ pub struct SmbRecord<'a> {
pub data: &'a[u8],
}

impl<'a> SmbRecord<'a> {
impl SmbRecord<'_> {
pub fn has_unicode_support(&self) -> bool {
self.flags2 & 0x8000_u16 != 0
}
Expand Down
2 changes: 1 addition & 1 deletion rust/src/smb/smb2_records.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub struct Smb2Record<'a> {
pub data: &'a [u8],
}

impl<'a> Smb2Record<'a> {
impl Smb2Record<'_> {
pub fn is_request(&self) -> bool {
self.direction == 0
}
Expand Down
2 changes: 1 addition & 1 deletion rust/src/snmp/snmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub struct SNMPTransaction<'a> {
tx_data: applayer::AppLayerTxData,
}

impl<'a> Transaction for SNMPTransaction<'a> {
impl Transaction for SNMPTransaction<'_> {
fn id(&self) -> u64 {
self.id
}
Expand Down
2 changes: 1 addition & 1 deletion rust/src/ssh/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ pub struct SshPacketKeyExchange<'a> {

const SSH_HASSH_STRING_DELIMITER_SLICE: [u8; 1] = [b';'];

impl<'a> SshPacketKeyExchange<'a> {
impl SshPacketKeyExchange<'_> {
pub fn generate_hassh(
&self, hassh_string: &mut Vec<u8>, hassh: &mut Vec<u8>, to_server: &bool,
) {
Expand Down
Loading