Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packet.PESHeader returns the entire packet payload. #68

Open
mikereedell opened this issue Feb 19, 2018 · 0 comments
Open

packet.PESHeader returns the entire packet payload. #68

mikereedell opened this issue Feb 19, 2018 · 0 comments

Comments

@mikereedell
Copy link
Collaborator

mikereedell commented Feb 19, 2018

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant