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-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 10 Nov 2022 10:15:37 +0200
From:   Ido Schimmel <idosch@...sch.org>
To:     Leonid Komaryanskiy <lkomaryanskiy@...il.com>
Cc:     netdev@...r.kernel.org, dmytro_firsov@...m.com, petrm@...dia.com
Subject: Re: ip_forward notification for driver

On Thu, Nov 10, 2022 at 09:51:35AM +0200, Leonid Komaryanskiy wrote:
> I'm working on L3 routing offload for switch device and have a
> question about ip_forwarding. I want to disable/enable forwarding on
> the hardware side according to changing value in
> /proc/sys/net/ipv4/ip_forward. As I see, inet_netconf_notify_devconf
> just sends rtnl_notify for userspace. Could I ask you for advice, on
> how can I handle updating value via some notifier or some other Linux
> mechanism in driver?

You can look into netevents. See NETEVENT_IPV4_MPATH_HASH_UPDATE and
NETEVENT_IPV4_FWD_UPDATE_PRIORITY_UPDATE, for example.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ