<br><br><div class="gmail_quote">On Wed, May 4, 2011 at 7:03 AM, Ludwig Nussel <span dir="ltr"><<a href="mailto:ludwig.nussel@suse.de">ludwig.nussel@suse.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
radvd is useful for advertising ULA's without having a router too<br>
---<br>
radvd.c | 11 ++++-------<br>
1 files changed, 4 insertions(+), 7 deletions(-)<br>
<br>
diff --git a/radvd.c b/radvd.c<br>
index 5071b4a..3b7a56b 100644<br>
--- a/radvd.c<br>
+++ b/radvd.c<br>
@@ -252,12 +252,7 @@ main(int argc, char *argv[])<br>
<br>
/* if we know how to do it, check whether forwarding is enabled */<br>
if (check_ip6_forwarding()) {<br>
- if (get_debuglevel() == 0) {<br>
- flog(LOG_ERR, "IPv6 forwarding seems to be disabled, exiting");<br>
- exit(1);<br>
- }<br>
- else<br>
- flog(LOG_WARNING, "IPv6 forwarding seems to be disabled, but continuing anyway.");<br>
+ flog(LOG_WARNING, "IPv6 forwarding seems to be disabled, but continuing anyway.");<br>
}<br>
<br>
/* parse config file */<br>
@@ -786,6 +781,7 @@ check_ip6_forwarding(void)<br>
int value;<br>
size_t size = sizeof(value);<br>
FILE *fp = NULL;<br>
+ static int warned = 0;<br>
<br>
#ifdef __linux__<br>
fp = fopen(PROC_SYS_IP6_FORWARDING, "r");<br>
@@ -810,7 +806,8 @@ check_ip6_forwarding(void)<br>
return(0); /* this is of advisory value only */<br>
}<br>
<br>
- if (value != 1) {<br>
+ if (value != 1 && !warned) {<br>
+ warned = 1;<br>
flog(LOG_DEBUG, "IPv6 forwarding setting is: %u, should be 1", value);<br>
return(-1);<br>
}<br>
--<br>
1.7.3.4<br>
<font color="#888888"><br>
<br>
--<br>
radvd-devel-l mailing list : <a href="mailto:radvd-devel-l@litech.org">radvd-devel-l@litech.org</a><br>
<a href="http://lists.litech.org/listinfo/radvd-devel-l" target="_blank">http://lists.litech.org/listinfo/radvd-devel-l</a><br>
</font></blockquote></div><br><br>Agreed...Applied. Please check CVS to make sure it applied correctly.<br><br>Thanks<br>Reuben<br>