[FS#3687] netifd always requires a netmask for IPv6 routes, even when it's only a single IP

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Wed Mar 17 15:09:34 GMT 2021


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Erik Tews (eriktews) 

Attached to Project - OpenWrt/LEDE Project
Summary - netifd always requires a netmask for IPv6 routes, even when it's only a single IP
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - Usually when IPv4 routes are configured in OpenWRT, it's possible to specify a route for a single target IP such as:


config route
	option target '8.8.8.8'
	option gateway '192.168.2.3'
	option interface 'lan'


However, when you specify a route for IPv6, then you always have to specify a netmask, even when you only target a specific IP:


config route6
	option target '2001:4860:4860::8844/128'
	option table 'vpn'
	option gateway 'fe80::1'
	option interface 'lan'


I think the problem is somewhere around here: 


  * https://github.com/git-openwrt-org-mirror/netifd/blame/master/utils.c#L124
  * https://github.com/git-openwrt-org-mirror/netifd/blame/master/utils.c#L79

It would be nice when netifd would also allow just the IPv6 address without the trailing ///128// here, which would make the v4 an v6 routes a bit more consistent.

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3687

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list