Skip to content

Commit

Permalink
Merge pull request #874 from thvdveld/pcap-ieee802154-without-fcs
Browse files Browse the repository at this point in the history
fix(pcap): IEEE802.15.4 without FCS pcap link type
  • Loading branch information
thvdveld authored Dec 11, 2023
2 parents c647a32 + 5a94a32 commit febe8b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/phy/pcap_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ enum_with_unknown! {
Ethernet = 1,
/// IPv4 or IPv6 packets (depending on the version field)
Ip = 101,
/// IEEE 802.15.4 packets with FCS included.
Ieee802154WithFcs = 195,
/// IEEE 802.15.4 packets without FCS.
Ieee802154WithoutFcs = 230,
}
}

Expand Down Expand Up @@ -135,7 +135,7 @@ impl<D: Device, S: PcapSink> PcapWriter<D, S> {
#[cfg(feature = "medium-ethernet")]
Medium::Ethernet => PcapLinkType::Ethernet,
#[cfg(feature = "medium-ieee802154")]
Medium::Ieee802154 => PcapLinkType::Ieee802154WithFcs,
Medium::Ieee802154 => PcapLinkType::Ieee802154WithoutFcs,
};
sink.global_header(link_type);
PcapWriter {
Expand Down

0 comments on commit febe8b6

Please sign in to comment.