netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* VRF destination unreachable
@ 2018-02-23 17:49 Stephen Suryaputra
  2018-02-23 20:58 ` David Ahern
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Suryaputra @ 2018-02-23 17:49 UTC (permalink / raw)
  To: netdev

Greetings,

We found that ICMP destination unreachable isn't sent if VRF
forwarding isn't configured, i.e.
/proc/sys/net/ipv4/conf/<vrf_net_device>/forwarding isn't set. The
relevant code is:

static int ip_error(struct sk_buff *skb)
{
...
        // in_dev is the vrf net_device
        if (!IN_DEV_FORWARD(in_dev)) {
                switch (rt->dst.error) {
                case EHOSTUNREACH:
                        __IP_INC_STATS(net, IPSTATS_MIB_INADDRERRORS);
                        break;

                case ENETUNREACH:
                        __IP_INC_STATS(net, IPSTATS_MIB_INNOROUTES);
                        break;
                }
                goto out;
        }
...
out:    kfree_skb(skb);
        return 0;
}

The question: is it intended to be set? The basic forwarding seems to
be working without. We do set it on the slave net devices.

Thank you,

Stephen.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-02-27 17:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-23 17:49 VRF destination unreachable Stephen Suryaputra
2018-02-23 20:58 ` David Ahern
2018-02-27 16:09   ` Stephen Suryaputra
2018-02-27 17:09     ` David Ahern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).