#include <linux/config.h>#include <net/dst.h>#include <net/inetpeer.h>#include <linux/in_route.h>#include <linux/rtnetlink.h>#include <linux/route.h>#include <linux/ip.h>#include <linux/cache.h>Go to the source code of this file.
Classes | |
| struct | rt_key |
| struct | rtable |
| struct | ip_rt_acct |
| struct | rt_cache_stat |
Defines | |
| #define | RTO_ONLINK 0x01 |
| #define | RTO_CONN 0 |
| #define | RT_CONN_FLAGS(sk) (RT_TOS(sk->protinfo.af_inet.tos) | sk->localroute) |
| #define | IPTOS_RT_MASK (IPTOS_TOS_MASK & ~3) |
Functions | |
| void | ip_rt_init (void) |
| void | ip_rt_redirect (u32 old_gw, u32 dst, u32 new_gw, u32 src, u8 tos, struct net_device *dev) |
| void | ip_rt_advice (struct rtable **rp, int advice) |
| void | rt_cache_flush (int how) |
| int | ip_route_output_key (struct rtable **, const struct rt_key *key) |
| int | ip_route_input (struct sk_buff *, u32 dst, u32 src, u8 tos, struct net_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) |
| int | ip_route_output (struct rtable **rp, u32 daddr, u32 saddr, u32 tos, int oif) |
| void | ip_rt_put (struct rtable *rt) |
| char | rt_tos2priority (u8 tos) |
| int | ip_route_connect (struct rtable **rp, u32 dst, u32 src, u32 tos, int oif) |
| void | rt_bind_peer (struct rtable *rt, int create) |
| inet_peer * | rt_get_peer (struct rtable *rt) |
Variables | |
| rt_cache_stat | ____cacheline_aligned_in_smp |
| ip_rt_acct * | ip_rt_acct |
| __u8 | ip_tos2prio [16] |
|
|
Definition at line 157 of file route.h. Referenced by ip_route_input(), ip_route_output_key(), ip_route_output_slow(), ip_rt_frag_needed(), and ip_rt_redirect(). |
|
|
Definition at line 46 of file route.h. Referenced by cookie_v4_check(), ip_queue_xmit(), tcp_v4_connect(), tcp_v4_rebuild_header(), tcp_v4_route_req(), and udp_connect(). |
|
|
Definition at line 42 of file route.h. Referenced by masquerade_target(). |
|
|
Definition at line 40 of file route.h. Referenced by arp_req_delete(), arp_req_set(), ip_route_output_key(), ip_route_output_slow(), raw_sendmsg(), and udp_sendmsg(). |
|
|
Definition at line 171 of file fib_frontend.c. References BADCLASS, fib_res_put(), local_table, MULTICAST, fib_table::tb_lookup, fib_result::type, and ZERONET. Referenced by __ip_vs_update_dest(), arp_constructor(), arp_find(), arp_process(), arp_solicit(), fib_check_nh(), fib_convert_rtentry(), fib_create_info(), fib_del_ifaddr(), fib_rules_policy(), icmp_unreach(), inet_bind(), ip_options_compile(), ip_options_echo(), ip_route_me_harder(), ip_rt_redirect(), ip_vs_leave(), ip_vs_new_dest(), and raw_bind().
|
|
||||||||||||||||||||||||
|
Definition at line 166 of file route.h. References ip_route_output(), and ip_rt_put(). Referenced by tcp_v4_connect(), tcp_v4_reselect_saddr(), and udp_connect().
|
|
||||||||||||||||||||||||
|
References __in_dev_get(), rt_hash_bucket::chain, sk_buff::dst, dst_hold(), net_device::ifindex, IN_DEV_MFORWARD, rt_cache_stat::in_hit, rt_cache_stat::in_hlist_search, inetdev_lock, ip_check_mc(), ip_route_input_mc(), ip_route_input_slow(), IPTOS_RT_MASK, LOCAL_MCAST, MULTICAST, rt_cache_stat, rt_hash_code(), rt_hash_table, and rtable::u. Referenced by arp_process(), fw_in(), inet_rtm_getroute(), ip_options_rcv_srr(), ip_rcv_finish(), ip_route_me_harder(), ipgre_err(), ipip_err(), route_mirror(), and route_reverse().
|
|
||||||||||||||||||||||||
|
Definition at line 142 of file route.h. References ip_route_output_key(). Referenced by __ip_vs_get_out_rt(), arp_filter(), arp_req_delete(), arp_req_set(), cookie_v4_check(), do_masquerade(), icmp_reply(), icmp_send(), inet_rtm_getroute(), ip_mc_find_dev(), ip_queue_xmit(), ip_route_connect(), ip_send_reply(), ip_vs_bypass_xmit(), ipgre_err(), ipgre_tunnel_init(), ipgre_tunnel_xmit(), ipip_err(), ipip_tunnel_init(), ipip_tunnel_xmit(), ipmr_queue_xmit(), raw_sendmsg(), send_unreach(), tcp_v4_rebuild_header(), tcp_v4_route_req(), and udp_sendmsg().
|
|
||||||||||||
|
Definition at line 2111 of file route.c. References rt_hash_bucket::chain, rt_key::dst, dst_hold(), ip_route_output_slow(), IPTOS_RT_MASK, rt_key::oif, rt_cache_stat::out_hit, rt_cache_stat::out_hlist_search, rt_cache_stat, rt_hash_code(), rt_hash_table, RTO_ONLINK, rt_key::src, rt_key::tos, and rtable::u. Referenced by ip_route_me_harder(), ip_route_output(), masquerade_target(), route_mirror(), and route_reverse().
|
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 2315 of file route.c. References netlink_callback::args, rt_hash_bucket::chain, sk_buff::dst, dst_clone(), dst_release(), sk_buff::len, NETLINK_CB, netlink_callback::nlh, nlmsghdr::nlmsg_seq, rt_fill_info(), rt_hash_mask, rt_hash_table, netlink_callback::skb, and rtable::u. Referenced by inet_dump_fib().
|
|
||||||||||||
|
Definition at line 1108 of file route.c. References rt_hash_bucket::chain, iphdr::daddr, dst_confirm(), dst_set_expires(), guess_mtu(), ip_rt_min_pmtu, ip_rt_mtu_expires, IPTOS_RT_MASK, rt_hash_code(), rt_hash_table, iphdr::saddr, iphdr::tos, iphdr::tot_len, and rtable::u. Referenced by icmp_unreach().
|
|
||||||||||||
|
Definition at line 1232 of file route.c. References fib_lookup(), FIB_RES_PREFSRC, fib_res_put(), rt_key::iif, inet_select_addr(), rtable::key, rtable::rt_gateway, rtable::rt_src, fib_result::type, and rtable::u. Referenced by ip_forward_options(), and ip_options_build().
|
|
|
Definition at line 2593 of file route.c. References rt_hash_bucket::chain, devinet_init(), dst_ops::gc_thresh, ip_fib_init(), ip_rt_gc_interval, ip_rt_max_size, ip_rt_secret_interval, ipv4_dst_ops, dst_ops::kmem_cachep, rt_hash_bucket::lock, net_random(), rt_cache_get_info(), rt_cache_stat_get_info(), rt_check_expire, rt_flush_timer, rt_hash_log, rt_hash_mask, rt_hash_rnd, rt_hash_table, rt_periodic_timer, rt_run_flush, rt_secret_rebuild(), and rt_secret_timer. Referenced by ip_init().
|
|
||||||||||||
|
Definition at line 292 of file fib_frontend.c. References fib_convert_rtentry(), fib_get_table(), fib_new_table(), kern_rta::rta_mx, rtnl_lock(), and rtnl_unlock(). Referenced by ic_route_ioctl(), and inet_ioctl().
|
|
|
Definition at line 2351 of file route.c. References rt_cache_flush(). Referenced by ip_mc_add1_src(), ip_mc_dec_group(), ip_mc_del1_src(), ip_mc_inc_group(), vif_add(), and vif_delete().
|
|
|
||||||||||||||||||||||||||||
|
Definition at line 840 of file route.c. References arp_bind_neighbour(), BADCLASS, rt_hash_bucket::chain, dev_hold, dst_alloc(), dst_confirm(), dst_hold(), net_device::ifindex, in_dev_get(), IN_DEV_LOG_MARTIANS, in_dev_put(), IN_DEV_RX_REDIRECTS, IN_DEV_SEC_REDIRECTS, IN_DEV_SHARED_MEDIA, inet_addr_onlink(), inet_addr_type(), ip_fib_check_default(), ip_rt_put(), IPTOS_RT_MASK, ipv4_dst_ops, MULTICAST, net_device::name, neigh_event_send(), net_ratelimit(), NUD_VALID, rt_del(), rt_drop(), rt_hash_code(), rt_hash_table, rt_intern_hash(), and ZERONET. Referenced by icmp_redirect().
|
|
|
Definition at line 1007 of file route.c. References sk_buff::dst, icmp_send(), in_dev_get(), IN_DEV_LOG_MARTIANS, in_dev_put(), IN_DEV_TX_REDIRECTS, ip_rt_redirect_load, ip_rt_redirect_number, ip_rt_redirect_silence, and net_ratelimit(). Referenced by ip_forward().
|
|
||||||||||||
|
Definition at line 1167 of file route.c. References dst_set_expires(), ip_rt_min_pmtu, ip_rt_mtu_expires, dst_entry::mxlock, and dst_entry::pmtu. Referenced by do_pmtu_discovery().
|
|
||||||||||||
|
Definition at line 766 of file route.c. References inet_getpeer(), inet_putpeer(), rtable::peer, and rtable::rt_dst. Referenced by __ip_select_ident(), rt_get_peer(), and tcp_v4_remember_stamp().
|
|
|
Definition at line 468 of file route.c. References ip_rt_max_delay, ip_rt_min_delay, rt_deadline, rt_flush_lock, rt_flush_timer, and rt_run_flush. Referenced by arp_netdev_event(), 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().
|
|
|
Definition at line 181 of file route.h. References rtable::peer, and rt_bind_peer(). Referenced by tcp_v4_conn_request(), and tcp_v4_connect().
|
|
|
Definition at line 161 of file route.h. References ip_tos2prio, and IPTOS_TOS. Referenced by ip_forward(), and ip_setsockopt().
|
|
|
|
|
|
|
|
|
Definition at line 157 of file route.c. Referenced by rt_tos2priority(). |
1.3.8