From 546ceeeb7914249b22b03d8b2b148e8517cd14e3 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 3 May 2014 11:44:54 -0700 Subject: BGP assumes octets, not bytes; no need to use NBBY, just use 8. Everywhere else in the BGP dissector, we just use a constant 8 for the number of bits per octet; get rid of the one place where we use NBBY. This gets rid of the one and only place we use NBBY; get rid of our own definition of it. --- print-bgp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'print-bgp.c') diff --git a/print-bgp.c b/print-bgp.c index 74d7a560..f5c02a1b 100644 --- a/print-bgp.c +++ b/print-bgp.c @@ -806,7 +806,7 @@ decode_mdt_vpn_nlri(netdissect_options *ndo, ND_TCHECK(pptr[0]); /* if the NLRI is not predefined length, quit.*/ - if (*pptr != MDT_VPN_NLRI_LEN * NBBY) + if (*pptr != MDT_VPN_NLRI_LEN * 8) return -1; pptr++; -- cgit v1.2.1