From: Pierre Chifflier Date: Wed, 19 Jan 2022 13:28:30 +0000 (+0100) Subject: rust/telnet: convert parsers to nom7 X-Git-Tag: suricata-7.0.0-beta1~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ef5121ab08a4f35fdc7ba2d707eb372b807eeca;p=thirdparty%2Fsuricata.git rust/telnet: convert parsers to nom7 --- diff --git a/rust/src/telnet/telnet.rs b/rust/src/telnet/telnet.rs index bf12369c8c..0fd2bb27ed 100644 --- a/rust/src/telnet/telnet.rs +++ b/rust/src/telnet/telnet.rs @@ -20,7 +20,7 @@ use crate::core::{ALPROTO_UNKNOWN, AppProto, Flow, IPPROTO_TCP}; use crate::applayer::{self, *}; use crate::frames::*; use std::ffi::CString; -use nom; +use nom7::IResult; use super::parser; static mut ALPROTO_TELNET: AppProto = ALPROTO_UNKNOWN; @@ -375,7 +375,7 @@ impl TelnetState { /// Probe for a valid header. /// -fn probe(input: &[u8]) -> nom::IResult<&[u8], ()> { +fn probe(input: &[u8]) -> IResult<&[u8], ()> { // TODO see if we can implement something here. Ctl message is easy, // and 'login: ' is common, but we can have random text and possibly // other output as well. So for now data on port 23 is it.