wssdl icon indicating copy to clipboard operation
wssdl copied to clipboard

Implement :when()

Open Snaipe opened this issue 8 years ago • 0 comments

the when method would be useful to conditionally select fields for dissection.

Usage:

mypacket = wssdl.packet {
    has_opt : bit();
    opt_data : u32():when(has_opt == 1);
}

Snaipe avatar Oct 21 '16 10:10 Snaipe