aboutsummaryrefslogtreecommitdiff
path: root/print-bcm-li.c
AgeCommit message (Collapse)Author
2020-10-16Broadcom LI: Modernize packet parsing style.Denis Ovsienko
Enable ND_LONGJMP_FROM_TCHECK. Add and use a standard invalid section. Test bounds if not decoding the packet fully. Lose a variable, fixup indentation and simplify some code.
2020-08-07Broadcom LI: Pass correct caplen value to ether_print()Francois-Xavier Le Bail
2020-08-06Rework "Update more link-layer dissectors to void functions"Francois-Xavier Le Bail
It's a follow-up to commit 81dbf4a0b05092760d0ff0cdd48c692e4769ba99. There is no need to update ether_print(), ether_common_print() and ether_switch_tag_print() to void functions: back to u_int functions. There is also no need to add a flag parameter to ether_print(), ether_common_print() and ether_switch_tag_print(): Remove it.
2020-07-15Update more link-layer dissectors to void functionsFrancois-Xavier Le Bail
brcm_tag_if_print() brcm_tag_prepend_if_print() dsa_if_print() edsa_if_print() ether_if_print() netanalyzer_if_print() netanalyzer_transparent_if_print() Update ether_print(), ether_common_print() and ether_switch_tag_print() to void functions. Add a flag parameter to ether_print(), ether_common_print() and ether_switch_tag_print() to increment the link-layer header length field of the netdissect_options when needed. The calls use TRUE when the return value of the funtions was used. The calls with FALSE avoid increments when the calls are nested. Moreover: Remove trailing "_if" from some protocol names.
2020-04-02add support for Broadcom LI headerHannes Gredler
(pull request #843) fix build break for Broadcom LI printer on BSD platforms incorporate review comments: make bcm_li_print() void, add a sample capture incorporate review comments: remove trailing tabs add BCM LI outputs to testset incorporate review comment: return after printing update verbose output for bcm-li