aboutsummaryrefslogtreecommitdiffstats
path: root/sgsnemu/sgsnemu.c
diff options
context:
space:
mode:
Diffstat (limited to 'sgsnemu/sgsnemu.c')
-rw-r--r--sgsnemu/sgsnemu.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sgsnemu/sgsnemu.c b/sgsnemu/sgsnemu.c
index 36b52fc..8e41031 100644
--- a/sgsnemu/sgsnemu.c
+++ b/sgsnemu/sgsnemu.c
@@ -1452,12 +1452,16 @@ static int create_pdp_conf(struct pdp_t *pdp, void *cbp, int cause)
if (!accept_ra || !forwarding)
printf("Could not open proc file for %s ?!?\n", tun->devname);
else {
- if (!strcmp(accept_ra, "0") ||
- (!strcmp(forwarding, "1") && !strcmp(accept_ra, "1"))) {
- printf("%s is %s, i.e. your tun device is not configured to accept "
- "router advertisements; SLAAC will not suceed, please "
+ if (!strcmp(accept_ra, "0")) {
+ printf("accept_ra=0, i.e. your tun device is not configured to accept "
+ "router advertisements; SLAAC will not succeed, please "
"fix your setup!\n");
}
+ if (!strcmp(forwarding, "1") && !strcmp(accept_ra, "1")) {
+ printf("forwarding=1 and accept_ra=1, i.e. your tun device is not "
+ "configured to accept router advertisements; SLAAC will not "
+ "succeed, please fix your setup!\n");
+ }
}
free(accept_ra);
free(forwarding);