Tap: Fix hardware address assignment 84/1984/3
authorMohsin KAZMI <sykazmi@cisco.com>
Mon, 18 Jul 2016 14:57:40 +0000 (16:57 +0200)
committerChris Luke <chris_luke@comcast.com>
Tue, 19 Jul 2016 13:23:32 +0000 (13:23 +0000)
commit90d8e2c4c3bc3a12dab88320040c1718a1aafcfd
tree6bd0e37aaa242094a1d4a8f3eb224124e5b60325
parent98cfc1aab07d311b53b0171fad62a4031c96fcfd
Tap: Fix hardware address assignment

[VPP-200]: Previously, VPP set the same hardware address to tap interface as of
Linux side tap interface, if neither hardware address nor 'random'
keyword were given explicitly on VPP command line during tap creation or
modification, which was default case.

This patch makes sure to set the different hardware addresses randomly
as default case. While one can set unique hardware address or similar to
one at Linux side using VPP tap command line.

Change-Id: Ie0a82f3706834e87426d66c6e869ec4edfefe932
Signed-off-by: Mohsin KAZMI <sykazmi@cisco.com>
vnet/vnet/unix/tapcli.c