Dario Nieuwenhuis
|
1e40b934bf
Update to Rust 2018. Fixes #271
|
4 lat temu |
Alex Crawford
|
ac830e8bb1
Dereference match expressions to clean up patterns
|
4 lat temu |
whitequark
|
83dba8ea31
Bump Rust version requirement to 1.27.
|
5 lat temu |
whitequark
|
4a253fecdf
Rename `new` method on Packet types to `new_checked`.
|
6 lat temu |
Andrew Cann
|
fb96b3cdc1
impl `AsRef<[u8]>` for packet types
|
7 lat temu |
Andrew Cann
|
302affca91
Add Clone impl to Packet types
|
7 lat temu |
Dan Robertson
|
bec2435e80
Fix ICMPv4 check_len to not panic on truncated packets.
|
7 lat temu |
whitequark
|
b0995c13e2
Fix some overly long comments. NFC.
|
7 lat temu |
Dan Robertson
|
3ff7e07941
Increase required size for ICMPv4 packets
|
7 lat temu |
Dan Robertson
|
deccd469fe
Use hop limit instead of ttl
|
7 lat temu |
whitequark
|
b1680368fe
Rework the pretty printer to avoid superfluous trailing newlines.
|
7 lat temu |
Dan Robertson
|
7a2271dfd6
Tests: Add basic interface tests
|
7 lat temu |
Dan Robertson
|
fea462837d
Implement set_ttl for Tcp and Udp sockets
|
7 lat temu |
whitequark
|
70248c5109
Formatting. NFC.
|
7 lat temu |
Steffen Butzer
|
d5147efb82
support hardware based checksum settings in during packet send/recv
|
7 lat temu |
whitequark
|
16e6e70d2f
Fix many warnings.
|
7 lat temu |
whitequark
|
5bf64586cd
Get rid of Result<_, ()>.
|
7 lat temu |
whitequark
|
534842b929
Make sure representation emission covers every octet of the buffer.
|
7 lat temu |
whitequark
|
1c1489e5fb
try! → ?
|
7 lat temu |
whitequark
|
7bf087b8ca
Disable checksum validation on wire level when fuzzing.
|
7 lat temu |
whitequark
|
735def7e1b
Do not attempt to validate length of packets being emitted.
|
7 lat temu |
whitequark
|
818fa7dda4
Unbreak parsing of ICMP unreachable messages.
|
8 lat temu |
whitequark
|
41f9426380
Calculate IP payload length from the total length field.
|
8 lat temu |
whitequark
|
9535809201
#[inline(always)] → #[inline]
|
8 lat temu |
whitequark
|
efc7bfbc38
Reply with ICMP dest. unreachable or TCP RST from unused ports.
|
8 lat temu |
whitequark
|
00c311a5b8
Add some sanity into enumeration names (avoid "*Type").
|
8 lat temu |
whitequark
|
5a85a5c4f9
Implement TCP representation parsing and emission.
|
8 lat temu |
whitequark
|
85ae54a488
Sort out buffer lengths.
|
8 lat temu |
whitequark
|
f6f7dc8cb6
Implement UDP representation parsing and emission.
|
8 lat temu |
whitequark
|
f23e3c4bff
Implement UDP packet support.
|
8 lat temu |