Skip to main content

packet/
lib.rs

1//            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2//                    Version 2, December 2004
3//
4// Copyleft (ↄ) meh. <meh@schizofreni.co> | http://meh.schizofreni.co
5//
6// Everyone is permitted to copy and distribute verbatim or modified
7// copies of this license document, and changing it is allowed as long
8// as the name is changed.
9//
10//            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11//   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12//
13//  0. You just DO WHAT THE FUCK YOU WANT TO.
14
15mod error;
16pub use crate::error::*;
17
18/// Packet size traits.
19#[macro_use]
20pub mod size;
21pub use crate::size::Size;
22
23mod packet;
24pub use crate::packet::{Packet, PacketMut, AsPacket, AsPacketMut};
25
26/// Buffer abstractions, dynamic buffers and static buffers.
27pub mod buffer;
28pub use crate::buffer::Buffer;
29
30/// Packet builder abstractions.
31pub mod builder;
32pub use crate::builder::Builder;
33
34/// Ethernet packet parser and builder.
35pub mod ether;
36
37/// IPv4 and IPv6 packet parser and builder.
38pub mod ip;
39
40/// ICMP packet parser and builder.
41pub mod icmp;
42
43/// TCP packet parser and builder.
44pub mod tcp;
45
46/// UDP packet parser and builder.
47pub mod udp;