fix some comment

This commit is contained in:
asxalex 2024-03-30 22:40:51 +08:00
parent 5f94c8d6a0
commit dd08d4e6d0
2 changed files with 4 additions and 1 deletions

View File

@ -5,8 +5,11 @@ pub const FLAGS_BITS_MASK: u16 = 0xffe0;
// common头的flags里面的flag可以组合
// 表示从SN主动发送到其他SN的消息
pub const SDLNA_FLAGS_FEDERATION: u16 = 0x0010;
// 表示从SN转发的消息
pub const SDLAN_FLAGS_FROM_SN: u16 = 0x0020;
// 表示包含SDLanSock的内容结构体包含实际发送者的socket信息
pub const SDLAN_FLAGS_SOCKET: u16 = 0x0040;
// 表示PKTPACKET消息中包含ipv6信息
pub const SDLAN_FLAGS_HAS_V6: u16 = 0x0080;
pub const IPV4_SIZE: u8 = 4;

View File

@ -283,7 +283,7 @@ pub fn encode_packet<T: serde::Serialize>(cmn: &Common, pkt: &T) -> Result<Vec<u
result.extend_from_slice(&body);
debug!("enocded packet size: {}", result.len());
debug!("encoded packet: {:?}", result);
// debug!("encoded packet: {:?}", result);
Ok(result)
}