diff options
Diffstat (limited to 'libxtables')
-rw-r--r-- | libxtables/xtables.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libxtables/xtables.c b/libxtables/xtables.c index b34d62ac..87424d04 100644 --- a/libxtables/xtables.c +++ b/libxtables/xtables.c @@ -958,7 +958,12 @@ int xtables_compatible_revision(const char *name, uint8_t revision, int opt) /* Definitely don't support this? */ if (errno == ENOENT || errno == EPROTONOSUPPORT) { close(sockfd); - return 0; + /* Pretend revision 0 support for better error messaging */ + if (revision == 0) + fprintf(stderr, + "Warning: Extension %s revision 0 not supported, missing kernel module?\n", + name); + return (revision == 0); } else if (errno == ENOPROTOOPT) { close(sockfd); /* Assume only revision 0 support (old kernel) */ |