Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
send_what |= SIW_OLSRD_CONF;
else if (strstr(requ, "/all"))
send_what = SIW_ALL;
send_what |= SIW_OLSRD_CONF;
else if (strstr(requ, "/all"))
send_what = SIW_ALL;
- /* To print out neighbours only on the Freifunk Status
- * page the normal output is somewhat lengthy. The
- * header parsing is sufficient for standard wget.
- */
- else if (strstr(requ, "/neighbours"))
- send_what = SIW_NEIGHBORS | SIW_LINKS;
else {
/* print out every combinations of requested tabled
* 3++ letter abbreviations are matched */
else {
/* print out every combinations of requested tabled
* 3++ letter abbreviations are matched */
send_what |= SIW_INTERFACES;
if (strstr(requ, "/2ho"))
send_what |= SIW_2HOP;
send_what |= SIW_INTERFACES;
if (strstr(requ, "/2ho"))
send_what |= SIW_2HOP;
- if (strstr(requ, "/ver"))
- send_what |= SIW_VERSION;
if (strstr(requ, "/sgw"))
send_what |= SIW_SGW;
if (strstr(requ, "/sgw"))
send_what |= SIW_SGW;
+
+ // specials
+ if (strstr(requ, "/ver"))
+ send_what |= SIW_VERSION;
+
+ /* To print out neighbours only on the Freifunk Status
+ * page the normal output is somewhat lengthy. The
+ * header parsing is sufficient for standard wget.
+ */
+ if (strstr(requ, "/neighbours"))
+ send_what = SIW_NEIGHBORS | SIW_LINKS;