Re: [PATCH nft] meta: permit numeric interface type

2016-10-17 Thread Pablo Neira Ayuso
On Mon, Oct 17, 2016 at 10:53:37AM +0200, Florian Westphal wrote: > If we can't translate an interface index back to a name > we just print the number. > > This change allows using a number instead of an interface index to > make this symmetric. > > If we can't find an interface with the given na

[PATCH nft] meta: permit numeric interface type

2016-10-17 Thread Florian Westphal
If we can't translate an interface index back to a name we just print the number. This change allows using a number instead of an interface index to make this symmetric. If we can't find an interface with the given name check if its a numeric string and then use it instead. Signed-off-by: Floria