Add MAC address check in ethernet-input node if interface in L3 mode 18/5718/10
authorJohn Lo <loj@cisco.com>
Fri, 10 Mar 2017 22:15:22 +0000 (17:15 -0500)
committerDave Barach <openvpp@barachs.net>
Mon, 13 Mar 2017 14:35:01 +0000 (14:35 +0000)
commit1904c47d5f79f8e9dcc6c9ae2043e7d6be8bd6d8
tree29e82e2299067be4779a91fde37393ba6cb357d9
parent59dda065bb92d1588824483ed5e7cf9adb228d3a
Add MAC address check in ethernet-input node if interface in L3 mode

Interface can be in promiscuous mode if more than one of its sub-
interface is in L2 mode. In promiscuous mode, L3 interface need to
verify DMAC of packet to match that of the interface and drop if not.
This check was done on sub-interface only and now also added to main
interface path.

Fix incorrect MAC addresses in the flow-per-pkt plugin test, which
caused it to fail.

Fix MAC address usage in BFD tests.

Change-Id: I12a17ec05c7ab298ad10d400c90d082c97eca521
Signed-off-by: John Lo <loj@cisco.com>
Signed-off-by: Klement Sekera <ksekera@cisco.com>
src/vnet/ethernet/node.c
test/test_bfd.py
test/test_flowperpkt.py