All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH iproute2] iplink: support 'stable-privacy' IPv6 addrgenmode
@ 2015-12-16 15:15 Bjørn Mork
  2015-12-18  1:32 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Bjørn Mork @ 2015-12-16 15:15 UTC (permalink / raw)
  To: netdev; +Cc: stephen, Hannes Frederic Sowa, Bjørn Mork

Signed-off-by: Bjørn Mork <bjorn@mork.no>
---
 ip/ipaddress.c        | 3 +++
 ip/iplink.c           | 4 +++-
 man/man8/ip-link.8.in | 4 ++--
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ip/ipaddress.c b/ip/ipaddress.c
index bc8359eb9fad..07d5eee2b078 100644
--- a/ip/ipaddress.c
+++ b/ip/ipaddress.c
@@ -292,6 +292,9 @@ static void print_af_spec(FILE *fp, struct rtattr *af_spec_attr)
 		case IN6_ADDR_GEN_MODE_NONE:
 			fprintf(fp, "addrgenmode none ");
 			break;
+		case IN6_ADDR_GEN_MODE_STABLE_PRIVACY:
+			fprintf(fp, "addrgenmode stable-privacy ");
+			break;
 		}
 	}
 }
diff --git a/ip/iplink.c b/ip/iplink.c
index f30de86d1858..6d6afebb87e0 100644
--- a/ip/iplink.c
+++ b/ip/iplink.c
@@ -84,7 +84,7 @@ void iplink_usage(void)
 	fprintf(stderr, "				   [ state { auto | enable | disable} ] ]\n");
 	fprintf(stderr, "			  [ master DEVICE ]\n");
 	fprintf(stderr, "			  [ nomaster ]\n");
-	fprintf(stderr, "			  [ addrgenmode { eui64 | none } ]\n");
+	fprintf(stderr, "			  [ addrgenmode { eui64 | none | stable-privacy } ]\n");
 	fprintf(stderr, "	                  [ protodown { on | off } ]\n");
 	fprintf(stderr, "       ip link show [ DEVICE | group GROUP ] [up] [master DEV] [type TYPE]\n");
 
@@ -176,6 +176,8 @@ static int get_addr_gen_mode(const char *mode)
 		return IN6_ADDR_GEN_MODE_EUI64;
 	if (strcasecmp(mode, "none") == 0)
 		return IN6_ADDR_GEN_MODE_NONE;
+	if (strcasecmp(mode, "stable-privacy") == 0)
+		return IN6_ADDR_GEN_MODE_STABLE_PRIVACY;
 	return -1;
 }
 
diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in
index ac6f4813a329..133d3126973d 100644
--- a/man/man8/ip-link.8.in
+++ b/man/man8/ip-link.8.in
@@ -150,7 +150,7 @@ ip-link \- network device configuration
 .br
 .B nomaster " |"
 .br
-.B addrgenmode { eui64 | none }
+.B addrgenmode { eui64 | none | stable-privacy }
 .br
 .B link-netnsid ID
 .BR " }"
@@ -1029,7 +1029,7 @@ set master device of the device (enslave device).
 unset master device of the device (release device).
 
 .TP
-.BR "addrgenmode eui64 " or " addrgenmode none"
+.BR addrgenmode " eui64|none|stable-privacy"
 set IPv6 address generation mode
 
 .TP
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH iproute2] iplink: support 'stable-privacy' IPv6 addrgenmode
  2015-12-16 15:15 [PATCH iproute2] iplink: support 'stable-privacy' IPv6 addrgenmode Bjørn Mork
@ 2015-12-18  1:32 ` Stephen Hemminger
  2015-12-18 12:26   ` Bjørn Mork
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2015-12-18  1:32 UTC (permalink / raw)
  To: Bjørn Mork; +Cc: netdev, Hannes Frederic Sowa

On Wed, 16 Dec 2015 16:15:14 +0100
Bjørn Mork <bjorn@mork.no> wrote:

> Signed-off-by: Bjørn Mork <bjorn@mork.no>

Does not apply to current code base. Probably because of Hannes recent changes.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH iproute2] iplink: support 'stable-privacy' IPv6 addrgenmode
  2015-12-18  1:32 ` Stephen Hemminger
@ 2015-12-18 12:26   ` Bjørn Mork
  0 siblings, 0 replies; 3+ messages in thread
From: Bjørn Mork @ 2015-12-18 12:26 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev, Hannes Frederic Sowa

Stephen Hemminger <stephen@networkplumber.org> writes:
> On Wed, 16 Dec 2015 16:15:14 +0100
> Bjørn Mork <bjorn@mork.no> wrote:
>
>> Signed-off-by: Bjørn Mork <bjorn@mork.no>
>
> Does not apply to current code base. Probably because of Hannes recent changes.

Yes, I saw that you applied Hannes' ipaddress.c patch, which conficts
with this one.  No problem, either way is fine by me.  I'll redo the man
page thing as part of the next round for "addrgenmode random", if/when
that is applied to the kernel.

BTW, I didn't understand your comment regarding Hannes' iplink.c patch.
If the ipaddress patch is OK, then the iplink patch is just the part
missing for show/set symmetry.  Or did I misunderstand something?


Bjørn

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-18 12:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-16 15:15 [PATCH iproute2] iplink: support 'stable-privacy' IPv6 addrgenmode Bjørn Mork
2015-12-18  1:32 ` Stephen Hemminger
2015-12-18 12:26   ` Bjørn Mork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.