Skip to content

Commit

Permalink
v0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
pittst3r committed Oct 12, 2020
1 parent f461fce commit 35a943a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kpup"
version = "0.1.3"
version = "0.1.4"
authors = ["Robbie Pitts <[email protected]>"]
edition = "2018"
license = "MIT"
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ fn get_port_from_socket(socket: SocketFDInfo) -> i32 {
// Below is copypasta from a libproc test; don't actually understand it 😅
// Change endianess and cut off because insi_lport is network endian and 16bit width.
let mut current_port = 0;

current_port |= info.tcpsi_ini.insi_lport >> 8 & 0x00ff;
current_port |= info.tcpsi_ini.insi_lport << 8 & 0xff00;

Expand Down

0 comments on commit 35a943a

Please sign in to comment.