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
#![allow(dead_code)]

// Tests that the decode_from = [("some.thing", 420)] is accepted

use wsdf::*;

#[derive(Protocol)]
#[wsdf(decode_from = [("udp.port", 1234), "udp.payload"])]
struct ProtoFoo {
    bar: u64,
    baz: [u8; 9],
}

fn main() {}