summaryrefslogtreecommitdiff
path: root/print-bgp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-05-03 11:44:54 -0700
committerGuy Harris <guy@alum.mit.edu>2014-05-03 11:44:54 -0700
commit546ceeeb7914249b22b03d8b2b148e8517cd14e3 (patch)
tree85d9b6fc0619baeec133832df0c4aaf496d8ff8c /print-bgp.c
parenta42fc6e764abfe4a99eef993784733f735f6c874 (diff)
downloadtcpdump-546ceeeb7914249b22b03d8b2b148e8517cd14e3.tar.gz
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.
Diffstat (limited to 'print-bgp.c')
-rw-r--r--print-bgp.c2
1 files changed, 1 insertions, 1 deletions
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++;