Skip to content

packet.PESHeader returns the entire packet payload. #68

Open
@mikereedell

Description

@mikereedell

The function packet.PESHeader is supposed to return just the header for the PES, not the entire packet payload:

Example code:

payload, _ := packet.Payload(pkt)
fmt.Printf("payload start payload: \n%X\n", payload)

pesHeader, _ := packet.PESHeader(pkt)
fmt.Printf("pes header: \n%X\n", pesHeader)

Output:

payload start payload:
000001BD0C32808005210001C55B00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111110101249210124921012492101249210124920000000000000000002EC70B7701CB3F8420281E4083100000000100000003FC6080FE5BB83F3C
pes header:
000001BD0C32808005210001C55B00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111110101249210124921012492101249210124920000000000000000002EC70B7701CB3F8420281E4083100000000100000003FC6080FE5BB83F3C

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions