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] [day] [month] [year] [list]
Date:	Wed, 14 Oct 2015 22:11:40 +0300 (EEST)
From:	Julian Anastasov <ja@....bg>
To:	lucien xin <lucien.xin@...il.com>
cc:	network dev <netdev@...r.kernel.org>, davem <davem@...emloft.net>,
	fw@...len.de
Subject: Re: [PATCH net-next] route: fib_validate_source remove the <=
 RT_SCOPE_HOST test


	Hello,

On Thu, 15 Oct 2015, lucien xin wrote:

> yeah, I don't understand why err > 0 is necessary to set IPSKB_DOREDIRECT
> to send redirects.
> FIB_RES_NH(res).nh_scope >= RT_SCOPE_HOST, what's that mean?

	It tells us that packet comes from remote address that
we can reach directly, without using gateway. The most
common values for nh_scope are RT_SCOPE_LINK (when nh_gw is
unicast address), RT_SCOPE_HOST (when nh_gw is not set or
is local address) and RT_SCOPE_NOWHERE (when we have a
local route). You can check fib_check_nh() and
fib_create_info() for reference.

Regards

--
Julian Anastasov <ja@....bg>
--
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