diff options
author | Hannes Gredler <hannes@rtbrick.com> | 2020-04-01 14:40:50 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-04-02 18:44:26 +0200 |
commit | a193f168bff9f706550d2170c0642d5bbd578c72 (patch) | |
tree | 85de0717a4fc89f3512e85d9de6579000af6372b /print-udp.c | |
parent | 6dcc487b7a6c108f12bca1ef5faf1580beafe712 (diff) | |
download | tcpdump-a193f168bff9f706550d2170c0642d5bbd578c72.tar.gz |
add support for Broadcom LI header
(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
Diffstat (limited to 'print-udp.c')
-rw-r--r-- | print-udp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/print-udp.c b/print-udp.c index 8133cf8a..0f5c8307 100644 --- a/print-udp.c +++ b/print-udp.c @@ -691,6 +691,8 @@ udp_print(netdissect_options *ndo, const u_char *bp, u_int length, (IP_V(ip) == 6) ? 1 : 0); else if (IS_SRC_OR_DST_PORT(MPLS_LSP_PING_PORT)) lspping_print(ndo, (const u_char *)(up + 1), length); + else if (sport == BCM_LI_PORT) + bcm_li_print(ndo, (const u_char *)(up+1), length); else if (dport == BFD_CONTROL_PORT || dport == BFD_MULTIHOP_PORT || dport == BFD_LAG_PORT || |