mirror of
				https://github.com/dndx/phantun.git
				synced 2025-11-04 03:45:35 +08:00 
			
		
		
		
	chore(deps): update pnet requirement from 0.33 to 0.34
Updates the requirements on [pnet](https://github.com/libpnet/libpnet) to permit the latest version. - [Release notes](https://github.com/libpnet/libpnet/releases) - [Commits](https://github.com/libpnet/libpnet/compare/v0.33.0...v0.34.0) --- updated-dependencies: - dependency-name: pnet dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
		
				
					committed by
					
						
						Datong Sun
					
				
			
			
				
	
			
			
			
						parent
						
							632132b75a
						
					
				
				
					commit
					310bb17516
				
			@@ -1,5 +1,7 @@
 | 
				
			|||||||
[workspace]
 | 
					[workspace]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					resolver = "2"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
members = [
 | 
					members = [
 | 
				
			||||||
    "fake-tcp",
 | 
					    "fake-tcp",
 | 
				
			||||||
    "phantun",
 | 
					    "phantun",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,7 +16,7 @@ benchmark = []
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
[dependencies]
 | 
					[dependencies]
 | 
				
			||||||
bytes = "1"
 | 
					bytes = "1"
 | 
				
			||||||
pnet = "0.33"
 | 
					pnet = "0.34"
 | 
				
			||||||
tokio = { version = "1.14", features = ["full"] }
 | 
					tokio = { version = "1.14", features = ["full"] }
 | 
				
			||||||
rand = { version = "0.8", features = ["small_rng"] }
 | 
					rand = { version = "0.8", features = ["small_rng"] }
 | 
				
			||||||
log = "0.4"
 | 
					log = "0.4"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -146,7 +146,7 @@ impl Socket {
 | 
				
			|||||||
        )
 | 
					        )
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    fn build_tcp_packet(&self, flags: u16, payload: Option<&[u8]>) -> Bytes {
 | 
					    fn build_tcp_packet(&self, flags: u8, payload: Option<&[u8]>) -> Bytes {
 | 
				
			||||||
        let ack = self.ack.load(Ordering::Relaxed);
 | 
					        let ack = self.ack.load(Ordering::Relaxed);
 | 
				
			||||||
        self.last_ack.store(ack, Ordering::Relaxed);
 | 
					        self.last_ack.store(ack, Ordering::Relaxed);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -36,7 +36,7 @@ pub fn build_tcp_packet(
 | 
				
			|||||||
    remote_addr: SocketAddr,
 | 
					    remote_addr: SocketAddr,
 | 
				
			||||||
    seq: u32,
 | 
					    seq: u32,
 | 
				
			||||||
    ack: u32,
 | 
					    ack: u32,
 | 
				
			||||||
    flags: u16,
 | 
					    flags: u8,
 | 
				
			||||||
    payload: Option<&[u8]>,
 | 
					    payload: Option<&[u8]>,
 | 
				
			||||||
) -> Bytes {
 | 
					) -> Bytes {
 | 
				
			||||||
    let ip_header_len = match local_addr {
 | 
					    let ip_header_len = match local_addr {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user