Re: [PATCH iproute2 net-next] ip: add MACsec support

2016-03-08 Thread Sabrina Dubroca
2016-03-07, 11:48:42 -0800, Stephen Hemminger wrote: > > > +static int one_of(const char *msg, const char *realval, const char **list, > > + size_t len, int *index) > > +{ > > + int i; > > + > > + for (i = 0; i < len; i++) { > > + if (matches(realval, list[i]) == 0) { > >

Re: [PATCH iproute2 net-next] ip: add MACsec support

2016-03-07 Thread Stephen Hemminger
> +static int one_of(const char *msg, const char *realval, const char **list, > + size_t len, int *index) > +{ > + int i; > + > + for (i = 0; i < len; i++) { > + if (matches(realval, list[i]) == 0) { > + *index = i; > + retu

[PATCH iproute2 net-next] ip: add MACsec support

2016-03-07 Thread Sabrina Dubroca
Extend ip-link to create MACsec devices ip link add link type macsec [options] Add `ip macsec` command to configure receive-side secure channels and secure associations within a macsec netdevice. Signed-off-by: Sabrina Dubroca --- This needs the MACsec UAPI headers. ip/Makefile