packet
This commit is contained in:
parent
a81f7cd8f9
commit
7c37dd1f9e
@ -51,7 +51,7 @@ impl<'a> Packet<'a> {
|
||||
tmpsock.v4 = tmp[3..7].try_into().unwrap();
|
||||
tmp = &tmp[7..]
|
||||
}
|
||||
other => {
|
||||
_other => {
|
||||
return Err(SDLanError::NormalError("packet socket family error"));
|
||||
}
|
||||
}
|
||||
@ -114,7 +114,7 @@ mod test {
|
||||
use crate::config;
|
||||
use crate::peer::V6Info;
|
||||
use crate::utils::Result;
|
||||
use crate::{config::AF_INET, packet::*, peer::SdlanSock, utils::gen_uuid};
|
||||
use crate::{packet::*, peer::SdlanSock, utils::gen_uuid};
|
||||
|
||||
#[test]
|
||||
fn test_packet_encode_and_decode() -> Result<()> {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user