summaryrefslogtreecommitdiff
path: root/print-bgp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-09-08 09:44:13 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-09-08 14:38:01 +0200
commit5ceb2c3a47e274b0483c727bcacdce26894bf22d (patch)
tree426f2633b7544067d2dfc5ee2757d1cc0fa65030 /print-bgp.c
parent3b8ff4bf0d8f389e00c19d6c094bce2bbf00deca (diff)
downloadtcpdump-5ceb2c3a47e274b0483c727bcacdce26894bf22d.tar.gz
Remove a now redundant ND_TCHECK_LEN() call
It is redundant because it is followed by a GET_IPADDR_STRING().
Diffstat (limited to 'print-bgp.c')
-rw-r--r--print-bgp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/print-bgp.c b/print-bgp.c
index 4218c4b1..713e1592 100644
--- a/print-bgp.c
+++ b/print-bgp.c
@@ -2133,8 +2133,6 @@ bgp_attr_print(netdissect_options *ndo,
tlen -= tnhlen;
tnhlen = 0;
} else {
- ND_TCHECK_LEN(tptr,
- sizeof(nd_ipv4) + BGP_VPN_RD_LEN);
ND_PRINT("RD: %s, %s",
bgp_vpn_rd_print(ndo, tptr),
GET_IPADDR_STRING(tptr+BGP_VPN_RD_LEN));