openwrt / openwrt/packages

olsr: Terminating with "Bad Configuration" when selecting "6and4" (syntax error) for IPVersion

Open
#24,747 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

downstream release/21.02 stale
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Im Using the "Freifunk Falter 1.2.3" (Freifunk Berlin) (OpenWRT 21.02) firmware with package olsr so i want to report the package problem upstream!

When Selecting "6and4" for "internet protocol":

Screenshot 2024-08-06 at 22-49-27 FF-MH-BBD-305 - OLSR IPv4 - LuCI

olsrd is terminating with "Bad Configuration" in syslog... due to a syntax error in line XX...

root@FF-MH-BBD-305:~# /etc/init.d/olsrd stop
root@FF-MH-BBD-305:~# /etc/init.d/olsrd6 stop
Command failed: Not found
root@FF-MH-BBD-305:~# /usr/sbin/olsrd -f "/var/etc/olsrd.conf" -nofork

 *** olsr.org - pre-0.9.9-git_0000000-hash_91d5ae30edfe8ee23769434a3154dcd7 ***
 http://www.olsr.org

Parsing file: "/var/etc/olsrd.conf"
Debug level: 0
Noint set to 1
FIBMetric: flat
TC redundancy 2
NAT threshold 0.75
LQ Algorithm: etx_ff
Smart gateway system: enabled
Smart gateway threshold: 50
Pollrate 0.03
RtTable: 111
RtTableDefault: 112
RtTableTunnel: 113
RtTableTunnelPriority: 100000
RtTableDefaultOlsrPriority: 20000
Link quality level 2
OlsrPort: 698
Willingness: 3
Smart gateway uplink: ipv4
Smart gateway speed: 2500000 uplink/100000 downlink kbit/s
Config line 21: syntax error
Error while reading config file /var/etc/olsrd.conf!
Terminated
root@FF-MH-BBD-305:~#
root@FF-MH-BBD-305:~# cat /var/etc/olsrd.conf

DebugLevel 0
AllowNoInt yes
FIBMetric "flat"
TcRedundancy 2
NatThreshold 0.75
LinkQualityAlgorithm "etx_ff"
SmartGateway yes
SmartGatewayThreshold 50
Pollrate 0.025
RtTable 111
RtTableDefault 112
RtTableTunnel 113
RtTableTunnelPriority 100000
RtTableDefaultOlsrPriority 20000
LinkQualityLevel 2
OlsrPort 698
Willingness 3
SmartGatewayUplink "ipv4"
SmartGatewaySpeed 2500000 100000
IpVersion "6and4" <----------------------------------------------------------- error is here!

Hna4
{
                10.248.3.128 255.255.255.224
}
.....

When selecting "Ipv4":

root@FF-MH-BBD-305:~# /usr/sbin/olsrd -f "/var/etc/olsrd.conf" -nofork

 *** olsr.org - pre-0.9.9-git_0000000-hash_91d5ae30edfe8ee23769434a3154dcd7 ***
 http://www.olsr.org

Parsing file: "/var/etc/olsrd.conf"
Debug level: 0
Noint set to 1
FIBMetric: flat
TC redundancy 2
NAT threshold 0.75
LQ Algorithm: etx_ff
Smart gateway system: enabled
Smart gateway threshold: 50
Pollrate 0.03
RtTable: 111
RtTableDefault: 112
RtTableTunnel: 113
RtTableTunnelPriority: 100000
RtTableDefaultOlsrPriority: 20000
Link quality level 2
OlsrPort: 698
Willingness: 3
Smart gateway uplink: ipv4
Smart gateway speed: 2500000 uplink/100000 downlink kbit/s
HNA IPv4 entry: 10.248.3.128/255.255.255.224
Plugin: olsrd_txtinfo.so.1.1
Plugin param key:"accept" val: "0.0.0.0"
Plugin param key:"port" val: "2006"
Plugin: olsrd_arprefresh.so.0.1
Plugin: olsrd_nameservice.so.0.4
Plugin param key:"name" val: "FF-MH-BBD-305"
Plugin param key:"lat" val: "52.55770"
Plugin param key:"lon" val: "13.57454"
Plugin param key:"suffix" val: ".olsr"
Plugin param key:"hosts-file" val: "/tmp/hosts/olsr"
Plugin param key:"latlon-file" val: "/var/run/latlon.js"
Plugin param key:"services-file" val: "/var/etc/services.olsr"
Plugin: olsrd_jsoninfo.so.1.1
Plugin param key:"accept" val: "0.0.0.0"
Plugin: olsrd_dyn_gw.so.0.5
Plugin param key:"Ping" val: "46.182.19.48"
Plugin param key:"Ping" val: "80.67.169.40"
Plugin param key:"Ping" val: "194.150.168.168"
Plugin param key:"PingCmd" val: "ping -c 1 -q -I ffuplink %s"
Plugin param key:"PingInterval" val: "30"
        MID validity: 500.00
        TC interval: 2.00
        HNA validity: 125.00
        HELLO validity: 125.00
        TC validity: 500.00
        IPv4 broadcast: 255.255.255.255
        MID interval: 25.00
        HELLO interval: 3.00
        HNA interval: 10.00
        Mode: mesh

Interface Defaultssetting ifs_in_curr_cfg = 0
        Mode: mesh
setting ifs_in_curr_cfg = 0
        Mode: mesh
No policy rule for rt_table_pri
Choose priority 100010 for rt_table_default_pri
        IPv4 broadcast/multicast : 255.255.255.255
        Mode           : mesh (d)
        IPv6 multicast           : ff02::6d
        HELLO emission/validity  : 3.00 (d)/125.00 (d)
        TC emission/validity     : 2.00 (d)/500.00 (d)
        MID emission/validity    : 25.00 (d)/500.00 (d)
        HNA emission/validity    : 10.00 (d)/125.00 (d)
        Autodetect changes       : yes
        IPv4 broadcast/multicast : AUTO
        Mode           : mesh (d)
        IPv6 multicast           : ::
        HELLO emission/validity  : 0.00/0.00
        TC emission/validity     : 0.00/0.00
        MID emission/validity    : 0.00/0.00
        HNA emission/validity    : 0.00/0.00
        Autodetect changes       : no
        IPv4 broadcast/multicast : AUTO
        Mode           : mesh (d)
        IPv6 multicast           : ::
        HELLO emission/validity  : 0.00/0.00
        TC emission/validity     : 0.00/0.00
        MID emission/validity    : 0.00/0.00
        HNA emission/validity    : 0.00/0.00
        Autodetect changes       : no
OLSRD dyn_gw plugin ()
OLSRD jsoninfo plugin ()
OLSRD nameservice plugin ()
OLSRD arprefresh plugin ()
OLSRD txtinfo plugin ()
PING 46.182.19.48 (46.182.19.48): 56 data bytes

--- 46.182.19.48 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 35.720/35.720/35.720 ms

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the generated /var/etc/olsrd.conf and the /usr/sbin/olsrd entry point, comparing the failing IpVersion "6and4" configuration with the working IPv4 case. Check how /etc/init.d/olsrd produces this setting. Done means selecting "6and4" no longer causes a syntax error and olsrd starts successfully.

Written by the indexing model from the issue text.

Assessment

Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.