Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 596234 - iproute2.sh missing confflags noprefixroute and mngtmpaddr
Summary: iproute2.sh missing confflags noprefixroute and mngtmpaddr
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: netifrc (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: netifrc Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-05 11:38 UTC by opensource
Modified: 2016-10-05 14:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description opensource 2016-10-05 11:38:52 UTC
The ip-address confflags mngtmpaddr and noprefixroute have been documented but iproute2.sh misinterprets them.
From the man page:
CONFFLAG := [ home | mngtmpaddr | nodad | noprefixroute ]

It appeared especially strange for me when noprefixroute was turned into nodad.

Reproducible: Always

Steps to Reproduce:
set config_someif="1.2.3.4/24 noprefixroute" in /etc/conf.d/net
Actual Results:  
ip addr reports inet 1.2.3.4/24 nodad
ip route reports routes added

Expected Results:  
ip addr reports inet 1.2.3.4/24 noprefixroute
ip route shows no new routes added

Here's a preliminary patch:

--- a/iproute2.sh	2016-10-04 07:03:40.943548784 +0000
+++ b/iproute2.sh	2016-10-04 07:04:20.814068934 +0000
@@ -124,8 +124,13 @@
 					pr*) x=preferred_lft ;;
 				esac
 				eval "$x=$1" ; shift ;;
-			home|nodad|h*|no*)
-				case $x in h*) x=home ;; n*) x=nodad ;; esac
+			home|mngtmpaddr|nodad|noprefixroute|h*|mng*|no*)
+				case $x in
+					h*) x=home ;;
+					m*) x=mngtmpaddr ;;
+					nop*) x=noprefixroute ;;
+					n*) x=nodad ;;
+				esac
 				# FIXME: If we need to reorder these, this will take more code
 				confflaglist="${confflaglist} $x" ; ;;
 			*)
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-10-05 14:42:38 UTC
[master 6072cfa] iproute2: add keywords: noprefixroute mngtmpaddr.