Re: [RFC] add extack errors for iptoken

2021-04-01 Thread Hongren Zheng
or prompt: $ ip token set ::2 dev enp0s3 Error: ipv6: Device does accept route adverts. Tested-by: Hongren Zheng > + NL_SET_ERR_MSG_MOD(extack, "Device does accept route adverts"); Should be "Device does not accept route adverts".

Re: [PATCH iproute2] iptoken: Add doc on the conditions of iptoken

2021-04-01 Thread Hongren Zheng
On Wed, Mar 31, 2021 at 03:26:02PM -0700, Stephen Hemminger wrote: > It would be better if kernel provided the error messages through external ack > of the netlink message, Agreed. > rather than providing potentially out of date > recommendations on the man page. I still think conditions for ip-

[PATCH iproute2] iptoken: Add doc on the conditions of iptoken

2021-03-27 Thread Hongren Zheng
of the Linux kernel code is docuemnted. Signed-off-by: Hongren Zheng --- ip/iptoken.c| 4 +++- man/man8/ip-token.8 | 24 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/ip/iptoken.c b/ip/iptoken.c index 9f356890..d56fd68d 100644 --- a/ip/iptoken.c +++ b/i