From 7a18fb4211a95b5f5a084a142c92561da5e8b8b9 Mon Sep 17 00:00:00 2001 From: Lorenzo Cogotti Date: Wed, 4 Aug 2021 20:07:22 +0200 Subject: [PATCH] [tools/bgpgrep/bgpgrep_vmfunc.c] Minor style improvement Better highlight the fact that n is not big endian format. --- tools/bgpgrep/bgpgrep_vmfunc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bgpgrep/bgpgrep_vmfunc.c b/tools/bgpgrep/bgpgrep_vmfunc.c index ecafb78..a44052c 100755 --- a/tools/bgpgrep/bgpgrep_vmfunc.c +++ b/tools/bgpgrep/bgpgrep_vmfunc.c @@ -241,7 +241,7 @@ void BgpgrepF_BogonAsn(Bgpvm *vm) goto nomatch; while ((asn = Bgp_NextAsPath(&it)) != -1) { - Asn32 n = beswap32(ASN(asn)); + Uint32 n = beswap32(ASN(asn)); // https://ripe72.ripe.net/wp-content/uploads/presentations/151-RIPE72_bogon_ASNs_JobSnijders.pdf // https://www.manrs.org/2021/01/routing-security-terms-bogons-vogons-and-martians/