fix some comment
This commit is contained in:
parent
5f94c8d6a0
commit
dd08d4e6d0
@ -5,8 +5,11 @@ pub const FLAGS_BITS_MASK: u16 = 0xffe0;
|
|||||||
// common头的flags里面的flag,可以组合
|
// common头的flags里面的flag,可以组合
|
||||||
// 表示从SN主动发送到其他SN的消息
|
// 表示从SN主动发送到其他SN的消息
|
||||||
pub const SDLNA_FLAGS_FEDERATION: u16 = 0x0010;
|
pub const SDLNA_FLAGS_FEDERATION: u16 = 0x0010;
|
||||||
|
// 表示从SN转发的消息
|
||||||
pub const SDLAN_FLAGS_FROM_SN: u16 = 0x0020;
|
pub const SDLAN_FLAGS_FROM_SN: u16 = 0x0020;
|
||||||
|
// 表示包含SDLanSock的内容,结构体包含实际发送者的socket信息
|
||||||
pub const SDLAN_FLAGS_SOCKET: u16 = 0x0040;
|
pub const SDLAN_FLAGS_SOCKET: u16 = 0x0040;
|
||||||
|
// 表示PKTPACKET消息中,包含ipv6信息
|
||||||
pub const SDLAN_FLAGS_HAS_V6: u16 = 0x0080;
|
pub const SDLAN_FLAGS_HAS_V6: u16 = 0x0080;
|
||||||
|
|
||||||
pub const IPV4_SIZE: u8 = 4;
|
pub const IPV4_SIZE: u8 = 4;
|
||||||
|
|||||||
@ -283,7 +283,7 @@ pub fn encode_packet<T: serde::Serialize>(cmn: &Common, pkt: &T) -> Result<Vec<u
|
|||||||
result.extend_from_slice(&body);
|
result.extend_from_slice(&body);
|
||||||
|
|
||||||
debug!("enocded packet size: {}", result.len());
|
debug!("enocded packet size: {}", result.len());
|
||||||
debug!("encoded packet: {:?}", result);
|
// debug!("encoded packet: {:?}", result);
|
||||||
|
|
||||||
Ok(result)
|
Ok(result)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user