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 <j...@ssi.bg> -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html