summaryrefslogtreecommitdiff
path: root/igmp.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-20 19:34:58 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-20 19:34:58 +0200
commitab51ac11e68ce0b075688bf17fc89e0ba645b2ed (patch)
tree9e029febdc64a52a33c5611a15ad86d247e19a78 /igmp.c
parent0721128bcce0790663e1491d8684edaf918874b6 (diff)
Add new assert macros, convert server.c to use them
Diffstat (limited to 'igmp.c')
-rw-r--r--igmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/igmp.c b/igmp.c
index 9ada4e4..b809e4b 100644
--- a/igmp.c
+++ b/igmp.c
@@ -513,9 +513,9 @@ igmp_init(struct cfg *cfg)
sfd = socket(AF_PACKET, SOCK_DGRAM | SOCK_CLOEXEC, htons(ETH_P_ALL));
if (sfd < 0) {
if (errno == EACCES || errno == EPERM)
- error("permission denied");
+ info("Unable to do IGMP snooping, permission denied");
else
- error("%mn");
+ error("socket: %m");
goto error;
}