]> git.baikalelectronics.ru Git - kernel.git/commit
gre: reject GUE and FOU in collect metadata mode
authorJiri Benc <jbenc@redhat.com>
Wed, 27 Apr 2016 12:08:01 +0000 (14:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2016 21:09:37 +0000 (17:09 -0400)
commit7bb00fd218e0434355c726fb992c4d0c2f19b4ac
treeb5bc9f08c93362d866703b251b811143d88f1957
parent1fab607b44a38d24751a4595b40a130fb24cfb22
gre: reject GUE and FOU in collect metadata mode

The collect metadata mode does not support GUE nor FOU. This might be
implemented later; until then, we should reject such config.

I think this is okay to be changed. It's unlikely anyone has such
configuration (as it doesn't work anyway) and we may need a way to
distinguish whether it's supported or not by the kernel later.

For backwards compatibility with iproute2, it's not possible to just check
the attribute presence (iproute2 always includes the attribute), the actual
value has to be checked, too.

Fixes: 5a9e833d5d2a2 ("ip_gre: Add support to collect tunnel metadata.")
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c