-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from shellrow/63-fix-linux-device-type
#63 Fix interface type detection on Linux
- Loading branch information
Showing
4 changed files
with
50 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// ARP protocol HARDWARE identifiers | ||
pub mod if_arp { | ||
pub const ARPHRD_ETHER: u32 = libc::ARPHRD_ETHER as u32; | ||
pub const ARPHRD_IEEE802: u32 = libc::ARPHRD_IEEE802 as u32; | ||
pub const ARPHRD_FDDI: u32 = libc::ARPHRD_FDDI as u32; | ||
pub const ARPHRD_PPP: u32 = libc::ARPHRD_PPP as u32; | ||
pub const ARPHRD_LOOPBACK: u32 = libc::ARPHRD_LOOPBACK as u32; | ||
pub const ARPHRD_EETHER: u32 = libc::ARPHRD_EETHER as u32; | ||
pub const ARPHRD_SLIP: u32 = libc::ARPHRD_SLIP as u32; | ||
pub const ARPHRD_ATM: u32 = libc::ARPHRD_ATM as u32; | ||
pub const ARPHRD_IEEE80211: u32 = libc::ARPHRD_IEEE80211 as u32; | ||
pub const ARPHRD_TUNNEL: u32 = libc::ARPHRD_TUNNEL as u32; | ||
pub const ARPHRD_X25: u32 = libc::ARPHRD_X25 as u32; | ||
pub const ARPHRD_IEEE1394: u32 = libc::ARPHRD_IEEE1394 as u32; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters