Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6334

What is RTN short for in RTN_LOCAL?

$
0
0

I am really confused with the name of RTN_LOCAL.

It defined in linux/rtnetlink.h

enum {RTN_UNSPEC,RTN_UNICAST,        /* Gateway or direct route  */RTN_LOCAL,      /* Accept locally       */RTN_BROADCAST,      /* Accept locally as broadcast,               send as broadcast */RTN_ANYCAST,        /* Accept locally as broadcast,               but send as unicast */RTN_MULTICAST,      /* Multicast route      */RTN_BLACKHOLE,      /* Drop             */RTN_UNREACHABLE,    /* Destination is unreachable   */RTN_PROHIBIT,       /* Administratively prohibited  */RTN_THROW,      /* Not in this table        */RTN_NAT,        /* Translate this address   */RTN_XRESOLVE,       /* Use external resolver    */__RTN_MAX

};

I found it uesd in many places of Linux kernel.

1.the return value of inet_addr_type().

2.route type value of fib_alias->fatype.

3.action value of fib_rule->action.


Viewing all articles
Browse latest Browse all 6334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>