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]
Date:   Tue, 20 Mar 2018 11:28:20 +0100
From:   Stephan Mondwurf <s.mondwurf@...ro-kom.de>
To:     Vince Bridgers <vbridger@...nsource.altera.com>
CC:     <netdev@...r.kernel.org>, <nios2-dev@...ts.rocketboards.org>
Subject: [PATCH] Add possibility to turn off promiscuous mode

The driver is capable of switching on the promiscuous mode.

This patch adds the possibility to turn it off again.

Signed-off-by: Stephan Mondwurf <s.mondwurf@...ro-kom.de>
---
  drivers/net/ethernet/altera/altera_tse_main.c | 3 +++
  1 file changed, 3 insertions(+)

diff --git a/drivers/net/ethernet/altera/altera_tse_main.c 
b/drivers/net/ethernet/altera/altera_tse_main.c
index 527908c..241d27b 100644
--- a/drivers/net/ethernet/altera/altera_tse_main.c
+++ b/drivers/net/ethernet/altera/altera_tse_main.c
@@ -1067,6 +1067,9 @@ static void tse_set_rx_mode_hashfilter(struct 
net_device *dev)
  	if (dev->flags & IFF_PROMISC)
  		tse_set_bit(priv->mac_dev, tse_csroffs(command_config),
  			    MAC_CMDCFG_PROMIS_EN);
+	else
+		tse_clear_bit(priv->mac_dev, tse_csroffs(command_config),
+			      MAC_CMDCFG_PROMIS_EN);

  	if (dev->flags & IFF_ALLMULTI)
  		altera_tse_set_mcfilterall(dev);
-- 
1.9.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ