Skip to content

Commit

Permalink
add Pnet, DataParser, Unimplemented and Unsupported errors to libpcap…
Browse files Browse the repository at this point in the history
…_tools::Error
  • Loading branch information
johanmazelanssi committed Jul 29, 2024
1 parent 822d5cd commit 74a8985
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libpcap-tools/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ pub enum Error {
IoError(#[from] io::Error),
#[error("Pcap parser error {0:?}")]
Pcap(#[from] PcapError<&'static [u8]>),
#[error("Pnet error {0}")]
Pnet(&'static str),
#[error("Data parser error {0}")]
DataParser(&'static str),
#[error("Unimplemented error {0}")]
Unimplemented(&'static str),
#[error("Unsupported error {0}")]
Unsupported(&'static str),
#[error("Generic error {0}")]
Generic(&'static str),
}
Expand Down

0 comments on commit 74a8985

Please sign in to comment.