#include <linux/config.h>Go to the source code of this file.
Classes | |
| struct | kern_rta |
| struct | fib_nh |
| struct | fib_info |
| struct | fib_result |
| struct | fib_table |
Defines | |
| #define | fib_mtu fib_metrics[RTAX_MTU-1] |
| #define | fib_window fib_metrics[RTAX_WINDOW-1] |
| #define | fib_rtt fib_metrics[RTAX_RTT-1] |
| #define | fib_advmss fib_metrics[RTAX_ADVMSS-1] |
| #define | fib_dev fib_nh[0].nh_dev |
| #define | FIB_RES_NH(res) ((res).fi->fib_nh[0]) |
| #define | FIB_RES_RESET(res) |
| #define | FIB_RES_PREFSRC(res) ((res).fi->fib_prefsrc ? : __fib_res_prefsrc(&res)) |
| #define | FIB_RES_GW(res) (FIB_RES_NH(res).nh_gw) |
| #define | FIB_RES_DEV(res) (FIB_RES_NH(res).nh_dev) |
| #define | FIB_RES_OIF(res) (FIB_RES_NH(res).nh_oif) |
Functions | |
| fib_table * | fib_get_table (int id) |
| fib_table * | fib_new_table (int id) |
| int | fib_lookup (const struct rt_key *key, struct fib_result *res) |
| void | fib_select_default (const struct rt_key *key, struct fib_result *res) |
| void | ip_fib_init (void) |
| void | fib_flush (void) |
| int | inet_rtm_delroute (struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) |
| int | inet_rtm_newroute (struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) |
| int | inet_rtm_getroute (struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) |
| int | inet_dump_fib (struct sk_buff *skb, struct netlink_callback *cb) |
| int | fib_validate_source (u32 src, u32 dst, u8 tos, int oif, struct net_device *dev, u32 *spec_dst, u32 *itag) |
| void | fib_select_multipath (const struct rt_key *key, struct fib_result *res) |
| int | ip_fib_check_default (u32 gw, struct net_device *dev) |
| void | fib_release_info (struct fib_info *) |
| int | fib_semantic_match (int type, struct fib_info *, const struct rt_key *, struct fib_result *) |
| fib_info * | fib_create_info (const struct rtmsg *r, struct kern_rta *rta, const struct nlmsghdr *, int *err) |
| int | fib_nh_match (struct rtmsg *r, struct nlmsghdr *, struct kern_rta *rta, struct fib_info *fi) |
| int | fib_dump_info (struct sk_buff *skb, u32 pid, u32 seq, int event, u8 tb_id, u8 type, u8 scope, void *dst, int dst_len, u8 tos, struct fib_info *fi) |
| int | fib_sync_down (u32 local, struct net_device *dev, int force) |
| int | fib_sync_up (struct net_device *dev) |
| int | fib_convert_rtentry (int cmd, struct nlmsghdr *nl, struct rtmsg *rtm, struct kern_rta *rta, struct rtentry *r) |
| void | fib_node_get_info (int type, int dead, struct fib_info *fi, u32 prefix, u32 mask, char *buffer) |
| u32 | __fib_res_prefsrc (struct fib_result *res) |
| fib_table * | fib_hash_init (int id) |
| void | fib_combine_itag (u32 *itag, struct fib_result *res) |
| void | free_fib_info (struct fib_info *fi) |
| void | fib_info_put (struct fib_info *fi) |
| void | fib_res_put (struct fib_result *res) |
Variables | |
| fib_table * | local_table |
| fib_table * | main_table |
|
|
|
|
|
Definition at line 113 of file ip_fib.h. Referenced by __fib_res_prefsrc(), fib_check_nh(), fib_validate_source(), ip_dev_find(), ip_route_input_slow(), and ip_route_output_slow(). |
|
|
Definition at line 112 of file ip_fib.h. Referenced by __fib_res_prefsrc(), fib_select_default(), ip_route_input_slow(), and rt_set_nexthop(). |
|
|
Definition at line 106 of file ip_fib.h. Referenced by fib_combine_itag(), fib_select_default(), fib_validate_source(), and rt_set_nexthop(). |
|
|
Definition at line 114 of file ip_fib.h. Referenced by fib_check_nh(), and ip_route_input_slow(). |
|
|
Definition at line 111 of file ip_fib.h. Referenced by fib_validate_source(), ip_route_output_slow(), and ip_rt_get_source(). |
|
|
Definition at line 107 of file ip_fib.h. Referenced by fib_semantic_match(). |
|
|
|
|
Definition at line 635 of file fib_semantics.c. References FIB_RES_DEV, FIB_RES_GW, inet_select_addr(), and fib_result::scope.
|
|
||||||||||||
|
Definition at line 248 of file ip_fib.h. References FIB_RES_NH. Referenced by fib_validate_source().
|
|
||||||||||||||||||||||||
|
Definition at line 713 of file fib_semantics.c. References __dev_get_by_name(), __in_dev_get(), bad_mask(), inet_addr_type(), inet_mask_len(), NLM_F_CREATE, NLM_F_REQUEST, nlmsghdr::nlmsg_flags, nlmsghdr::nlmsg_len, NLMSG_LENGTH, nlmsghdr::nlmsg_pid, nlmsghdr::nlmsg_seq, and nlmsghdr::nlmsg_type. Referenced by ip_rt_ioctl().
|
|
||||||||||||||||||||
|
Definition at line 422 of file fib_semantics.c. References change_nexthops, dev_get_by_index(), endfor_nexthops, fib_check_nh(), fib_find_info(), fib_info_cnt, fib_info_list, fib_info_lock, fib_info::fib_prev, free_fib_info(), inet_addr_type(), kern_rta::rta_dst, kern_rta::rta_flow, kern_rta::rta_gw, kern_rta::rta_mp, kern_rta::rta_mx, kern_rta::rta_oif, kern_rta::rta_prefsrc, and kern_rta::rta_priority. Referenced by fn_hash_insert().
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 641 of file fib_semantics.c. References sk_buff::data, endfor_nexthops, fib_info::fib_flags, fib_info::fib_metrics, fib_info::fib_nh, fib_info::fib_nhs, fib_info::fib_prefsrc, fib_info::fib_priority, fib_info::fib_protocol, for_nexthops, sk_buff::len, fib_nh::nh_gw, fib_nh::nh_oif, NLMSG_DATA, NLMSG_PUT, rtnetlink_put_metrics(), scope, skb_put(), skb_tailroom(), skb_trim(), and sk_buff::tail. Referenced by fn_hash_dump_bucket(), and rtmsg_fib().
|
|
|
Definition at line 78 of file fib_frontend.c. References fib_get_table(), local_table, main_table, rt_cache_flush(), and fib_table::tb_flush. Referenced by fib_del_ifaddr(), fib_disable_ip(), and fn_hash_delete().
|
|
|
Definition at line 147 of file ip_fib.h. References local_table, and main_table. Referenced by fib_flush(), fib_lookup(), fib_new_table(), fib_select_default(), inet_dump_fib(), inet_rtm_delroute(), and ip_rt_ioctl().
|
|
|
Definition at line 929 of file fib_hash.c. References fn_hash(), fn_hash_delete(), fn_hash_dump(), fn_hash_flush(), fn_hash_insert(), fn_hash_kmem, fn_hash_lookup(), fn_hash_select_default(), fib_table::tb_data, fib_table::tb_delete, fib_table::tb_dump, fib_table::tb_flush, fib_table::tb_get_info, fib_table::tb_id, fib_table::tb_insert, fib_table::tb_lookup, and fib_table::tb_select_default. Referenced by ip_fib_init().
|
|
|
Definition at line 266 of file ip_fib.h. References fib_info::fib_clntref, and free_fib_info(). Referenced by fib_release_info(), fib_res_put(), fn_hash_select_default(), and ip_route_output_slow().
|
|
||||||||||||
|
Definition at line 159 of file ip_fib.h. References local_table, main_table, and fib_table::tb_lookup.
|
|
|
Definition at line 154 of file ip_fib.h. References fib_get_table(). Referenced by fib_magic(), inet_rtm_newroute(), and ip_rt_ioctl().
|
|
||||||||||||||||||||
|
Definition at line 253 of file fib_semantics.c. References endfor_nexthops, fib_info::fib_nh, fib_info::fib_priority, for_nexthops, fib_nh::nh_gw, fib_nh::nh_oif, kern_rta::rta_gw, kern_rta::rta_mp, kern_rta::rta_oif, and kern_rta::rta_priority. Referenced by fn_hash_delete().
|
|
||||||||||||||||||||||||||||
|
|
|
|
Definition at line 123 of file fib_semantics.c. References fib_info::fib_dead, fib_info_list, fib_info_lock, fib_info_put(), fib_info::fib_next, fib_info::fib_prev, and fib_info::fib_treeref. Referenced by fn_free_node(), and fn_hash_insert().
|
|
|
Definition at line 272 of file ip_fib.h. References fib_result::fi, fib_info_put(), and fib_rule_put(). Referenced by fib_check_nh(), fib_validate_source(), inet_addr_type(), ip_dev_find(), ip_do_nat(), ip_route_input_slow(), ip_route_output_slow(), and ip_rt_get_source().
|
|
||||||||||||
|
Definition at line 167 of file ip_fib.h. References FIB_RES_GW, FIB_RES_NH, main_table, and fib_table::tb_select_default.
|
|
||||||||||||
|
Referenced by ip_route_input_slow(), and ip_route_output_slow(). |
|
||||||||||||||||||||
|
Definition at line 581 of file fib_semantics.c. References endfor_nexthops, fib_result::fi, fib_info::fib_clntref, fib_info::fib_flags, fib_info::fib_nhs, FIB_RES_RESET, for_nexthops, fib_result::nh_sel, and rt_key::oif. Referenced by fn_hash_lookup().
|
|
||||||||||||||||
|
Definition at line 861 of file fib_semantics.c. References change_nexthops, endfor_fib_info, endfor_nexthops, fib_info::fib_flags, fib_info::fib_nhs, fib_info::fib_prefsrc, for_fib_info, and scope. Referenced by fib_del_ifaddr(), and fib_disable_ip().
|
|
|
Referenced by fib_inetaddr_event(), and fib_netdev_event(). |
|
||||||||||||||||||||||||||||||||
|
Definition at line 206 of file fib_frontend.c. References __in_dev_get(), rt_key::dst, fib_result::fi, fib_combine_itag(), fib_lookup(), fib_info::fib_nhs, FIB_RES_DEV, FIB_RES_NH, FIB_RES_PREFSRC, fib_res_put(), net_device::ifindex, rt_key::iif, IN_DEV_LOOP, IN_DEV_RPFILTER, inet_select_addr(), inetdev_lock, rt_key::oif, rt_key::scope, rt_key::src, rt_key::tos, and fib_result::type. Referenced by ip_route_input_mc(), and ip_route_input_slow().
|
|
|
Definition at line 108 of file fib_semantics.c. References change_nexthops, dev_put(), endfor_nexthops, fib_info::fib_dead, and fib_info_cnt. Referenced by fib_create_info(), and fib_info_put().
|
|
||||||||||||
|
Definition at line 387 of file fib_frontend.c. References netlink_callback::args, fib_get_table(), ip_rt_dump(), sk_buff::len, netlink_callback::nlh, NLMSG_DATA, NLMSG_PAYLOAD, and RT_TABLE_MIN.
|
|
||||||||||||||||
|
Definition at line 357 of file fib_frontend.c. References fib_get_table(), inet_check_attr(), NETLINK_CB, and NLMSG_DATA.
|
|
||||||||||||||||
|
Definition at line 2240 of file route.c. References __dev_get_by_index(), alloc_skb(), ip_route_input(), ip_route_output(), kfree_skb(), MAX_HEADER, NETLINK_CB, netlink_unicast(), NLMSG_DATA, NLMSG_GOODSIZE, nlmsghdr::nlmsg_seq, rt_fill_info(), rtnl, and skb_reserve().
|
|
||||||||||||||||
|
Definition at line 372 of file fib_frontend.c. References fib_new_table(), inet_check_attr(), NETLINK_CB, and NLMSG_DATA.
|
|
||||||||||||
|
Definition at line 180 of file fib_semantics.c. References endfor_fib_info, endfor_nexthops, fib_info_lock, for_fib_info, and for_nexthops. Referenced by ip_rt_redirect().
|
|
|
Definition at line 650 of file fib_frontend.c. References fib_hash_init(), fib_inetaddr_notifier, fib_netdev_notifier, fib_rules_init(), local_table, main_table, register_inetaddr_notifier(), and register_netdevice_notifier(). Referenced by ip_rt_init().
|
|
|
Definition at line 54 of file fib_frontend.c. Referenced by fib_flush(), fib_get_table(), fib_lookup(), inet_addr_type(), ip_dev_find(), and ip_fib_init(). |
|
|
Definition at line 55 of file fib_frontend.c. Referenced by fib_flush(), fib_get_table(), fib_lookup(), fib_select_default(), and ip_fib_init(). |
1.3.8