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
// Tests what happens if we try to have a vector repeat on a vector?

use wsdf::*;

#[derive(Protocol)]
#[wsdf(decode_from = "moldudp.payload")]
struct ProtoFoo {
    n: u32,
    #[wsdf(len_field = "n")]
    xs: Vec<u32>,
    #[wsdf(len_field = "xs")]
    ys: Vec<u32>,
}

fn main() {}