Skip to content

Instantly share code, notes, and snippets.

@RealityAnomaly
Created June 20, 2020 17:34
Show Gist options
  • Save RealityAnomaly/1e1dc193ac7ea72691e6d2dc685fd5e7 to your computer and use it in GitHub Desktop.
Save RealityAnomaly/1e1dc193ac7ea72691e6d2dc685fd5e7 to your computer and use it in GitHub Desktop.
diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c
index f85bcf35..d10fa415 100644
--- a/sysdep/linux/netlink.c
+++ b/sysdep/linux/netlink.c
@@ -1527,6 +1527,11 @@ nl_parse_route(struct nl_parse_state *s, struct nlmsghdr *h)
if (!(i = nl_checkin(h, sizeof(*i))))
return;
+ /* Always skip FIB exception routes */
+ if (i->rtm_flags & RTM_F_CLONED) {
+ return;
+ }
+
switch (i->rtm_family)
{
case AF_INET:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment