wsdf 0.1.2

Proc-macro based Wireshark Dissector Framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![allow(dead_code)]

// Tests that field types which are a unit tuple struct work fine

use wsdf::*;

#[derive(Protocol)]
#[wsdf(decode_from = "moldudp.payload")]
struct ProtoFoo {
    foo: Foo,
}

#[derive(ProtocolField)]
struct Foo(u8);

fn main() {}