// Copyright (c) 2024 Cyprien Avico avicocyprien@yahoo.com
//
// Licensed under the MIT License <LICENSE-MIT or http://opensource.org/licenses/MIT>.
// This file may not be copied, modified, or distributed except according to those terms.

use thiserror::Error;
pub mod mac_addres;
use mac_addres::MacParseError;

#[derive(Error, Debug, PartialEq)]
pub enum DataLinkError {
    #[error("Data link too short: {0} bytes")]
    DataLinkTooShort(u8),
    #[error("MAC address parsing error: {0}")]
    MacParseError(#[from] MacParseError),
}
