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

decode: Support multiple format args and some rename and refactor #589

Merged
merged 1 commit into from
Feb 18, 2023

Commits on Feb 18, 2023

  1. decode: Support multiple format args and some rename and refactor

    This will allow passing both cli options and format options to sub decoder.
    Ex: pass keylog option to a tls decoder when decoding a pcap.
    Ex: pass decode options to a format inside a http body inside a pcap.
    
    Add ArgAs method to lookup argument based on type. This also makes the format
    decode function have same signature as sub decoders in the decode API.
    
    This change decode.Format a bit:
    DecodeFn is now just func(d *D) any
    DecodeInArg renamed to DefaultInArg
    wader committed Feb 18, 2023
    Configuration menu
    Copy the full SHA
    8e0dde0 View commit details
    Browse the repository at this point in the history