stephen hemminger d208328765 gre: fix handling of key 0
GRE driver incorrectly uses zero as a flag value. Zero is a perfectly
valid value for key, and the tunnel should match packets with no key only
with tunnels created without key, and vice versa.

This is a slightly visible  change since previously it might be possible to
construct a working tunnel that sent key 0 and received only because
of the key wildcard of zero.  I.e the sender sent key of zero, but tunnel
was defined without key.

Note: using gre key 0 requires iproute2 utilities v3.2 or later.
The original utility code was broken as well.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-09-27 18:12:37 -04:00
..
2012-09-06 14:21:10 -04:00
2012-04-15 12:37:19 -04:00
2012-09-27 18:12:37 -04:00
2012-07-30 14:53:21 -07:00
2012-09-24 16:31:37 -04:00
2012-09-25 13:22:30 -04:00
2012-07-31 18:42:43 -07:00
2012-09-25 03:11:13 -04:00
2012-05-17 14:59:59 -04:00
2012-09-24 16:31:37 -04:00
2012-09-24 16:31:37 -04:00
2012-03-11 23:42:51 -07:00
2012-04-15 12:37:19 -04:00