mirror of
https://github.com/dndx/phantun.git
synced 2025-09-18 05:04:29 +08:00
chore(deps): bump dependencies to latest and fix build failure with
`neli`
This commit is contained in:
@@ -127,7 +127,7 @@ pub fn build_tcp_packet(
|
||||
ip_buf.freeze()
|
||||
}
|
||||
|
||||
pub fn parse_ip_packet(buf: &Bytes) -> Option<(IPPacket, tcp::TcpPacket)> {
|
||||
pub fn parse_ip_packet(buf: &Bytes) -> Option<(IPPacket<'_>, tcp::TcpPacket<'_>)> {
|
||||
if buf[0] >> 4 == 4 {
|
||||
let v4 = ipv4::Ipv4Packet::new(buf).unwrap();
|
||||
if v4.get_next_level_protocol() != ip::IpNextHeaderProtocols::Tcp {
|
||||
|
Reference in New Issue
Block a user