Skip to content

Commit

Permalink
Merge pull request #7 from rspamd/null_routes
Browse files Browse the repository at this point in the history
Filter null routes again
  • Loading branch information
vstakhov authored Oct 15, 2024
2 parents fba5a3d + 6afde77 commit 7896397
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mrt/asn.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ func ASNFromBGP(appCacheDir string, ianaASN func(uint32) ir.IRID, rejectFile str
} else if inf != nil {
log.Logger.Debug("ignoring reserved range", zap.String("range", prefix))
continue
} else if prefix == "0.0.0.0/0" || prefix == "::/0" {
log.Logger.Debug("ignoring null route", zap.String("range", prefix))
continue
}
for _, entry := range ribMessage.Entries {
for _, pa := range entry.PathAttributes {
Expand Down

0 comments on commit 7896397

Please sign in to comment.