Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge #8

Merged
merged 28 commits into from
Dec 20, 2022
Merged

merge #8

merged 28 commits into from
Dec 20, 2022

Conversation

infosechoudini
Copy link
Owner

No description provided.

teutat3s and others added 28 commits April 11, 2022 18:24
solaris

error[E0308]: mismatched types
   --> pnet_datalink/src/lib.rs:239:22
    |
239 |         self.flags & (pnet_sys::IFF_UP as u32) != 0
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `u32`

error[E0277]: no implementation for `u64 & u32`
   --> pnet_datalink/src/lib.rs:239:20
    |
239 |         self.flags & (pnet_sys::IFF_UP as u32) != 0
    |                    ^ no implementation for `u64 & u32`
    |
    = help: the trait `BitAnd<u32>` is not implemented for `u64`
...
illumos and solaris, too

warning: getting the inner pointer of a temporary `CString`
  --> src/bpf.rs:82:57
   |
82 |                 CString::new(&b"/dev/bpf"[..]).unwrap().as_ptr(),
   |                 --------------------------------------- ^^^^^^ this pointer will be invalid
   |                 |
   |                 this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
   |
   = note: `#[warn(temporary_cstring_as_ptr)]` on by default
   = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
   = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
Fix build on architectures with unsigned char
Changes to Functions to include inline and moved benches to criterion to use stable toolchain
Adds a dependency on no_std_net for no_std addresses
enable #[no_std] use by providing std feature
Update libc dependency to 0.2.117
Fix feature deps in top-level Cargo.toml blocking #[no_std] use
bump version for ipnetwork in pnet_datalink
@infosechoudini infosechoudini merged commit fbd649f into issue-487 Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants