use bytes::{BufMut, Bytes, BytesMut};
use dev_utils::{format::*, info, trace};
use crate::stack::{Header, Ipv4Address, MacAddress, PortAddress};
use crate::stack::{Frame, Packet, Segment};
impl Frame {
pub fn get_message(&self) -> &str {
panic!("Not implemented")
}
}
#[derive(Debug, Clone, Copy)]
pub enum FrameKind {
BitOriented { flag: u8 },
BySync { sync: u8 },
DDCMP { control: u8 },
AsyncPPP { start_delim: u8, end_delim: u8 },
}
impl Default for FrameKind {
fn default() -> Self {
FrameKind::BitOriented { flag: 0x7E }
}
}
const SEGMENT_SIZE: usize = 32;
const PACKET_SIZE: usize = 4;
impl Frame {}
impl Packet {}
impl Segment {}