lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1401738380-11102-1-git-send-email-daniel.kiper@oracle.com>
Date:	Mon,  2 Jun 2014 21:46:20 +0200
From:	Daniel Kiper <daniel.kiper@...cle.com>
To:	gregkh@...uxfoundation.org, stable@...r.kernel.org
Cc:	Matt Wilson <msw@...zon.com>, netdev@...r.kernel.org,
	xen-devel@...ts.xen.org,
	Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
	"David S. Miller" <davem@...emloft.net>,
	Daniel Kiper <daniel.kiper@...cle.com>
Subject: [PATCH 3.4] xen-netback: allow changing the MAC address of the interface

From: Matt Wilson <msw@...zon.com>

Sometimes it is useful to be able to change the MAC address of the
interface for netback devices. For example, when using ebtables it may
be useful to be able to distinguish traffic from different interfaces
without depending on the interface name.

Reported-by: Nikita Borzykh <sample.n@...il.com>
Reported-by: Paul Harvey <stockingpaul@...mail.com>
Cc: netdev@...r.kernel.org
Cc: xen-devel@...ts.xen.org
Cc: Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>
Acked-by: Ian Campbell <ian.campbell@...rix.com>
Signed-off-by: Matt Wilson <msw@...zon.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>
Signed-off-by: David S. Miller <davem@...emloft.net>
(cherry picked from commit 4a633a602c26497b8285a202830829d3be007c7b)

Signed-off-by: Daniel Kiper <daniel.kiper@...cle.com>
Tested-by: Daniel Kiper <daniel.kiper@...cle.com>
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>
---
 drivers/net/xen-netback/interface.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c
index cfaaf68..13aa5c1 100644
--- a/drivers/net/xen-netback/interface.c
+++ b/drivers/net/xen-netback/interface.c
@@ -239,6 +239,8 @@ static const struct net_device_ops xenvif_netdev_ops = {
 	.ndo_stop	= xenvif_close,
 	.ndo_change_mtu	= xenvif_change_mtu,
 	.ndo_fix_features = xenvif_fix_features,
+	.ndo_set_mac_address = eth_mac_addr,
+	.ndo_validate_addr   = eth_validate_addr,
 };
 
 struct xenvif *xenvif_alloc(struct device *parent, domid_t domid,
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ