Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: smoltcp-rs/smoltcp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7e2dc1a6d672
Choose a base ref
...
head repository: smoltcp-rs/smoltcp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fac42e94dbdb
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Aug 31, 2017

  1. Verified

    This commit was signed with the committer’s verified signature.
    headius Charles Oliver Nutter
    Copy the full SHA
    01021e4 View commit details
  2. Fix an inaccurate comment.

    whitequark committed Aug 31, 2017

    Verified

    This commit was signed with the committer’s verified signature.
    headius Charles Oliver Nutter
    Copy the full SHA
    fac42e9 View commit details
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/phy/pcap_writer.rs
6 changes: 2 additions & 4 deletions src/phy/pcap_writer.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use core::cell::RefCell;
#[cfg(feature = "std")]
use std::cell::RefCell;
#[cfg(feature = "std")]
use std::io::Write;
use byteorder::{ByteOrder, NativeEndian};
@@ -28,9 +29,6 @@ pub enum PcapMode {
}

/// A packet capture sink.
///
/// A sink is an interface to the platform functions, providing timestamping
/// and streaming data output.
pub trait PcapSink {
/// Write data into the sink.
fn write(&self, data: &[u8]);