Skip to content

Track: serialization support for all layers #2278

Open

Description

@seladb

Background

This PR introduced a new serialization infrastructure for PcapPlusPlus: #2259.
Layer now supports structured serialization through serializeLayer(ObjectScope&), with a SerializedFields struct per layer that declares its fields as FieldDescriptors. This issue tracks rolling it out to every layer in Packet++.

Definition of done for each layer

  • SerializedFields struct with a FieldDescriptor per field and all(), including Layer::SerializedFields
  • serializeLayer(ObjectScope&) override that writes every field in all()
  • Doxygen comments on all fields, including units, byte order and string formats
  • Tests that cover the serialized output and check that all() matches what is written

Layers

Data link

Network

Transport

Application

Activity

  1. egecetin commented on Oct 11, 2026

    @egecetin
    Collaborator

    Once all layers are supported, it might be a good idea to include example code (in Examples folder) demonstrating how to use serialization for a short pcap file. Maybe you can add it to checklist this also so it wont be forgotten

  2. seladb commented on Oct 11, 2026

    @seladb
    OwnerAuthor

    Once all layers are supported, it might be a good idea to include example code (in Examples folder) demonstrating how to use serialization for a short pcap file. Maybe you can add it to checklist this also so it wont be forgotten

    Yes, once all layers are supported I intend to make the serializeLayer and abstract method so new layers have to implement it, and I can also add an example app to serialize pcap files. I prefer to do it separately and not part of this issue to keep this issue only for tracking the layers.

  3. NartanNaik commented on Nov 6, 2026

    @NartanNaik

    Hi, I would like to work on adding serialization support for SSHLayer. This is my first time contributing!

  4. 6bb6md6issc commented on Nov 6, 2026

    @6bb6md6issc

    Hi, I would like to work on SIP / SDP layer!

  5. seladb commented on Nov 11, 2026

    @seladb
    OwnerAuthor

    Hi, I would like to work on adding serialization support for SSHLayer. This is my first time contributing!

    Thank you @NartanNaik for , please feel free to open a PR 🙏

  6. seladb commented on Nov 11, 2026

    @seladb
    OwnerAuthor

    Hi, I would like to work on SIP / SDP layer!

    @6bb6md6issc I saw your PR, I'm sorry for the delay - I'll review it soon

  7. Hack15951 commented on Nov 12, 2026

    @Hack15951

    Hi @seladb, I would like to work on serialization support for BgpLayer

  8. seladb commented on Nov 12, 2026

    @seladb
    OwnerAuthor

    Hi @seladb, I would like to work on serialization support for BgpLayer

    Sure @Hack15951 , please go for it! 🙏

  9. way-wei96 commented on Nov 12, 2026

    @way-wei96

    Hi, I'd like to take TelnetLayer serialization — PR is here: #2364

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions