Skip to content

Can this dissect any schema? #7

@ErikTempelaarVO

Description

@ErikTempelaarVO

Hi,

I'm new to capnproto and I want to serialize some data structures and send via the network.
I was hoping I could use this tool to create a dissector and make the data readable in wireshark.

Snippet from the schema

struct Simple {
  value @0 :Int32;
}

Depending on the value of the int, I get different results in Wireshark. For example:
1 = abort
2 = call
3 = return

Frame 1603: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface eth0, id 0
Ethernet II, Src: Microsoft_56:08:c9 (00:15:5d:56:08:c9), Dst: Microsoft_19:02:8b (00:15:5d:19:02:8b)
Internet Protocol Version 4, Src: 172.19.75.75, Dst: 192.168.10.100
0100 .... = Version: 4
.... 0101 = Header Length: 20 bytes (5)
Differentiated Services Field: 0x00 (DSCP: CS0, ECN: Not-ECT)
Total Length: 52
Identification: 0xde82 (56962)
010. .... = Flags: 0x2, Don't fragment
...0 0000 0000 0000 = Fragment Offset: 0
Time to Live: 63
Protocol: UDP (17)
Header Checksum: 0x9acb [validation disabled]
[Header checksum status: Unverified]
Source Address: 172.19.75.75
Destination Address: 192.168.10.100
[Stream index: 12]
User Datagram Protocol, Src Port: 38176, Dst Port: 61421
Source Port: 38176
Destination Port: 61421
Length: 32
Checksum: 0xc29c [unverified]
[Checksum Status: Unverified]
[Stream index: 69]
[Stream Packet Number: 1]
[Timestamps]
UDP payload (24 bytes)
Cap'n Proto RPC Protocol: abort(no data)
Segments: 1
Segment: 0 ( 2.0 words )
Root: Message, union: abort
(raw struct)
Data offset: 0.0
Data ( 1 words )
Pointers: 0
Fields
abort: (no data) struct

Can it do that for non-RPC capnproto? I noticed that there's a fork that makes the 'RPC' an option.
master...oniboni:wireshark-plugins:feature/capnp-over-tcp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions