From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cong Wang Subject: Re: [PATCH] return the right retcode when add a unreachable route Date: Tue, 8 Jul 2014 11:49:02 -0700 Message-ID: References: <1404644511-22112-1-git-send-email-lucien.xin@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: network dev To: Xin Long Return-path: Received: from mail-lb0-f179.google.com ([209.85.217.179]:46385 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754838AbaGHStE (ORCPT ); Tue, 8 Jul 2014 14:49:04 -0400 Received: by mail-lb0-f179.google.com with SMTP id z11so4201015lbi.24 for ; Tue, 08 Jul 2014 11:49:02 -0700 (PDT) In-Reply-To: <1404644511-22112-1-git-send-email-lucien.xin@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Sun, Jul 6, 2014 at 4:01 AM, Xin Long wrote: > when add a route like this: > ip route add 74.125.31.199 dev eth0 via 1.2.3.4 , > 1.2.3.4 is a unreachable ip, it return -ENETUNREACH, it is ok. > but before that I add a rule: > ip rule add fwmark 1 lookup 101 , > then add that route , it will return -ESRCH. > This would potentially break user-space applications.