From 3ef5121ab08a4f35fdc7ba2d707eb372b807eeca Mon Sep 17 00:00:00 2001 From: Pierre Chifflier Date: Wed, 19 Jan 2022 14:28:30 +0100 Subject: [PATCH] rust/telnet: convert parsers to nom7 --- rust/src/telnet/telnet.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.