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

FS#2977 - Parameters sendopts seems to be bad formated in the call to odhcp6c by /lib/netifd/proto/dhcpv6.sh #7747

Open
openwrt-bot opened this issue Apr 7, 2020 · 0 comments
Labels
flyspray release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release

Comments

@openwrt-bot
Copy link

torrpenn56:

The options parameters sendopts define in /etc/config/network seems to be badly formated in the call of the command odhcp6c

In /etc/config/network:

option sendopts "11:00 15:456544 16:1234"

is parsed like this (show via ps|grep odhcp6c)
-x11 00 -x15 456544 -x16 1234

The syntax given by the help of odhcp6c is different:

-x : Add option opt (with value val) in sent packets (cumulative)
Examples of IPv6 address, string and base-16 encoded options:
-x dns:2001:2001::1,2001:2001::2 - option 23
-x 15:office - option 15 (userclass)
-x 0x1f4:ABBA - option 500
-x 202:'"file"' - option 202
It appears than the : is replace by a space in the call of the command.
Regarding the help of the command, it should be :
-x 11:00 -x 15:456544 -x 16:1234

Thanks
Regards

@aparcar aparcar added the release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray release/19.07 pull request/issue targeted (also) for OpenWrt 19.07 release
Projects
None yet
Development

No branches or pull requests

2 participants