tunneling: Add check for GRE protocol is Ethernet.
authorJesse Gross <jesse@nicira.com>
Thu, 26 Mar 2015 23:53:39 +0000 (16:53 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 7 Apr 2015 23:26:34 +0000 (16:26 -0700)
commit6432e527ce4bc1d67b8fe8ec111817b52953b7c3
treeaa866933c46073a4f5819b14ec5ae9d736ff92ab
parent6625245743a8621a8eee1fd67add15120ed042f8
tunneling: Add check for GRE protocol is Ethernet.

On receive, the userspace GRE code doesn't check the protocol
field. Since OVS only understands Ethernet packets, this adds a
check that the inner protocol is Ethernet and discards other types
of packets.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Pritesh Kothari <pritesh.kothari@cisco.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
lib/netdev-vport.c
tests/tunnel-push-pop.at