Skip to content

Demote packet doesn't decrease wire length #158

Description

@rsanger

There is likely a bug in demote_packet(), when removing a Linux SLL header (which libtrace treats as a link-layer header) from a packet the code doesn't decrease the wire length only the capture length. I've only added code to decrease it in the pcap: case to reverse the actions applied by promote_packet().

See:

/* TODO: should we change the wirelen here too? */

cd8cd74

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions