Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow adding hostnames to olsrd's nameservice plugin #58

Open
dismantl opened this issue Aug 13, 2014 · 0 comments
Open

Allow adding hostnames to olsrd's nameservice plugin #58

dismantl opened this issue Aug 13, 2014 · 0 comments

Comments

@dismantl
Copy link
Contributor

Currently, due to input validation in olsrd's init script, there is no way to add IP/hostname pairs to the nameservice plugin. The format olsrd expects in its config file for IP/hostname entries is:

PlParam "1.2.3.4" "nodename"

Olsrd's init script turns /etc/config/olsrd UCI entries into the olsrd config file. So for IP/hostname pairs, the option name (the IP address) would contain periods, which is disallowed in UCI.

To solve this issue, we would need to add logic to the olsrd init script to convert some new option, like hostname for instance, into the right format for the olsrd config file. So as an example, the following line in /etc/config/olsrd:

option hostname "1.2.3.4/nodename"

would be converted into:

PlParam "1.2.3.4" "nodename"

in the generated olsrd config file, /var/run/olsrd.conf.

@jheretic jheretic modified the milestone: 1.2 Sep 4, 2014
@jheretic jheretic modified the milestones: Router-2.0, Router-1.2 Jan 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants