#include <linux/config.h>#include <net/dst.h>#include <linux/in_route.h>#include <linux/rtnetlink.h>#include <linux/route.h>Include dependency graph for include/net/route.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | RT_HASH_DIVISOR 256 |
| #define | RT_CACHE_BUBBLE_THRESHOLD (5*HZ) |
| #define | RTO_ONLINK 0x01 |
| #define | RTO_TPROXY 0x80000000 |
| #define | RTO_CONN 0 |
Functions | |
| void | ip_rt_init (void) |
| void | ip_rt_redirect (u32 old_gw, u32 dst, u32 new_gw, u32 src, u8 tos, struct device *dev) |
| void | ip_rt_advice (struct rtable **rp, int advice) |
| void | rt_cache_flush (int how) |
| int | ip_route_output (struct rtable **, u32 dst, u32 src, u32 tos, int oif) |
| int | ip_route_input (struct sk_buff *, u32 dst, u32 src, u8 tos, struct device *devin) |
| unsigned short | ip_rt_frag_needed (struct iphdr *iph, unsigned short new_mtu) |
| void | ip_rt_update_pmtu (struct dst_entry *dst, unsigned mtu) |
| void | ip_rt_send_redirect (struct sk_buff *skb) |
| unsigned | inet_addr_type (u32 addr) |
| void | ip_rt_multicast_event (struct in_device *) |
| int | ip_rt_ioctl (unsigned int cmd, void *arg) |
| void | ip_rt_get_source (u8 *src, struct rtable *rt) |
| int | ip_rt_dump (struct sk_buff *skb, struct netlink_callback *cb) |
| __inline__ void | ip_rt_put (struct rtable *rt) |
| __inline__ char | rt_tos2priority (u8 tos) |
| __inline__ int | ip_route_connect (struct rtable **rp, u32 dst, u32 src, u32 tos, int oif) |
Variables | |
| rtable * | rt_hash_table [RT_HASH_DIVISOR] |
| ip_rt_acct | ip_rt_acct [256] |
| __u8 | ip_tos2prio [16] |
|
|
Definition at line 42 of file include/net/route.h. |
|
|
Definition at line 36 of file include/net/route.h. Referenced by rt_check_expire(), rt_garbage_collect(), and rt_run_flush(). |
|
|
Definition at line 51 of file include/net/route.h. Referenced by ip_fw_masquerade(), ip_masq_user_maddr(), ip_queue_xmit(), tcp_v4_connect(), tcp_v4_rebuild_header(), tcp_v4_send_synack(), and tcp_v4_syn_recv_sock(). |
|
|
Definition at line 45 of file include/net/route.h. Referenced by arp_req_delete(), arp_req_set(), ip_route_output(), ip_route_output_slow(), raw_sendmsg(), and udp_sendmsg(). |
|
|
Definition at line 46 of file include/net/route.h. Referenced by ip_route_output(), ip_route_output_slow(), and udp_sendmsg(). |
|
|
Definition at line 162 of file fib_frontend.c. References memset, RTN_BROADCAST, RTN_MULTICAST, RTN_UNICAST, fib_table::tb_lookup, and fib_result::type. Referenced by arp_constructor(), arp_find(), arp_rcv(), fib_check_nh(), fib_convert_rtentry(), fib_create_info(), fib_del_ifaddr(), fib_rules_policy(), icmp_unreach(), inet6_bind(), inet_bind(), ip_options_compile(), ip_options_echo(), ip_route_output_slow(), ip_rt_redirect(), and raw_bind(). |
|
||||||||||||||||||||||||
|
Definition at line 140 of file include/net/route.h. References ip_route_output(), ip_rt_put(), and NULL. Referenced by tcp_v4_connect(), tcp_v4_rebuild_header(), and udp_connect(). Here is the call graph for this function: ![]() |
|
||||||||||||||||||||||||
|
Definition at line 1378 of file ipv4/route.c. References atomic_inc, rt_key::dst, sk_buff::dst, EINVAL, hash, rt_key::iif, ip_route_input_mc(), ip_route_input_slow(), IPTOS_TOS_MASK, jiffies, rtable::key, rt_key::oif, rt_hash_code(), rt_key::src, rt_key::tos, and rtable::u. Referenced by arp_rcv(), ip_local_deliver(), ip_options_rcv_srr(), ip_rcv(), ipgre_err(), and ipip_err(). Here is the call graph for this function: ![]() |
|
||||||||||||||||||||||||
|
Definition at line 1676 of file ipv4/route.c. References atomic_inc, rt_key::dst, end_bh_atomic(), hash, rt_key::iif, ip_route_output_slow(), IPTOS_TOS_MASK, jiffies, rtable::key, rt_key::oif, rtable::rt_flags, rt_hash_code(), RTCF_TPROXY, RTO_ONLINK, RTO_TPROXY, rt_key::src, start_bh_atomic(), rt_key::tos, and rtable::u. Referenced by arp_filter(), arp_req_delete(), arp_req_set(), icmp_reply(), icmp_send(), ip_fw_masquerade(), ip_masq_user_maddr(), ip_mc_find_dev(), ip_queue_xmit(), ip_route_connect(), ip_send_reply(), ipgre_err(), ipgre_tunnel_init(), ipgre_tunnel_xmit(), ipip6_tunnel_init(), ipip6_tunnel_xmit(), ipip_err(), ipip_tunnel_init(), ipip_tunnel_xmit(), ipmr_queue_xmit(), rarp_req_set(), raw_sendmsg(), tcp_v4_rebuild_header(), tcp_v4_send_synack(), tcp_v4_syn_recv_sock(), and udp_sendmsg(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 867 of file ipv4/route.c. References rt_key::dst, guess_mtu(), hash, rt_key::iif, ip_rt_mtu_expires, IPTOS_TOS_MASK, rtable::key, mtu, ntohs(), rtable::rt_dst, rt_hash_code(), rtable::rt_src, RTAX_MTU, rt_key::src, rt_key::tos, rtable::u, u, u32, and u8. Referenced by icmp_unreach(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 965 of file ipv4/route.c. References fib_lookup(), FIB_RES_PREFSRC, rt_key::iif, inet_select_addr(), rtable::key, memcpy, rtable::rt_gateway, RT_SCOPE_UNIVERSE, rtable::rt_src, RTN_NAT, src, fib_result::type, rtable::u, and u32. Referenced by ip_forward_options(), and ip_options_build(). Here is the call graph for this function: ![]() |
|
|
Referenced by __initfunc(). |
|
||||||||||||
|
Definition at line 246 of file fib_frontend.c. References CAP_NET_ADMIN, capable, copy_from_user, EFAULT, EINVAL, ENOBUFS, EPERM, ESRCH, fib_convert_rtentry(), fib_get_table(), fib_new_table(), kfree(), NULL, kern_rta::rta_mx, rtnl_lock(), rtnl_unlock(), SIOCADDRT, SIOCDELRT, fib_table::tb_delete, and fib_table::tb_insert. Here is the call graph for this function: ![]() |
|
|
Definition at line 1919 of file ipv4/route.c. References rt_cache_flush(). Referenced by ip_mc_dec_group(), ip_mc_inc_group(), ip_mroute_setsockopt(), and vif_delete(). Here is the call graph for this function: ![]() |
|
|
||||||||||||||||||||||||||||
|
Definition at line 630 of file ipv4/route.c. References arp_bind_neighbour(), atomic_set, rt_key::dst, dst_alloc(), hash, rt_key::iif, inet_addr_onlink(), inet_addr_type(), ip_fib_check_default(), ip_rt_put(), IPTOS_TOS_MASK, jiffies, k, KERN_INFO, rtable::key, net_ratelimit(), ntohl(), NULL, rt_key::oif, printk, rt_del(), rt_drop(), rtable::rt_dst, rtable::rt_flags, rtable::rt_gateway, rt_hash_code(), rt_intern_hash(), rtable::rt_src, RTCF_REDIRECTED, RTN_UNICAST, rt_key::src, rt_key::tos, rtable::u, and u32. Referenced by icmp_redirect(). Here is the call graph for this function: ![]() |
|
|
Definition at line 776 of file ipv4/route.c. References sk_buff::dst, ICMP_REDIR_HOST, ICMP_REDIRECT, icmp_send(), ip_rt_redirect_load, ip_rt_redirect_number, ip_rt_redirect_silence, jiffies, KERN_WARNING, net_ratelimit(), printk, rtable::rt_dst, rtable::rt_gateway, rtable::rt_iif, rtable::rt_src, and rtable::u. Referenced by ip_forward(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 916 of file ipv4/route.c. References ip_rt_mtu_expires, dst_entry::mxlock, dst_entry::pmtu, and RTAX_MTU. Referenced by do_pmtu_discovery(). |
|
|
Definition at line 365 of file ipv4/route.c. References add_timer(), del_timer(), end_bh_atomic(), timer_list::expires, in_interrupt, ip_rt_max_delay, ip_rt_min_delay, jiffies, now, rt_deadline, rt_run_flush(), start_bh_atomic(), and user_mode. Referenced by fib_disable_ip(), fib_flush(), fib_inetaddr_event(), fib_netdev_event(), fn_hash_delete(), fn_hash_insert(), ip_rt_multicast_event(), and rt_secret_rebuild(). Here is the call graph for this function: ![]() |
|
|
Definition at line 135 of file include/net/route.h. References ip_tos2prio, and IPTOS_TOS. Referenced by ip_forward(), and ip_setsockopt(). |
|
|
|
|
|
Definition at line 157 of file ipv4/route.c. Referenced by rt_tos2priority(). |
|
|
Definition at line 181 of file ipv4/route.c. |