#include <linux/config.h>#include <asm/uaccess.h>#include <asm/system.h>#include <asm/bitops.h>#include <linux/types.h>#include <linux/kernel.h>#include <linux/sched.h>#include <linux/mm.h>#include <linux/string.h>#include <linux/socket.h>#include <linux/sockios.h>#include <linux/errno.h>#include <linux/in.h>#include <linux/inet.h>#include <linux/netdevice.h>#include <linux/if_arp.h>#include <linux/proc_fs.h>#include <linux/skbuff.h>#include <linux/netlink.h>#include <linux/init.h>#include <net/ip.h>#include <net/protocol.h>#include <net/route.h>#include <net/tcp.h>#include <net/sock.h>#include <net/ip_fib.h>Go to the source code of this file.
Defines | |
| #define | FSprintk(a...) |
| #define | for_fib_info() |
| #define | endfor_fib_info() } |
| #define | for_nexthops(fi) |
| #define | change_nexthops(fi) |
| #define | endfor_nexthops(fi) } |
Functions | |
| void | free_fib_info (struct fib_info *fi) |
| void | fib_release_info (struct fib_info *fi) |
| __inline__ int | nh_comp (const struct fib_info *fi, const struct fib_info *ofi) |
| __inline__ struct fib_info * | fib_find_info (const struct fib_info *nfi) |
| int | ip_fib_check_default (u32 gw, struct net_device *dev) |
| int | fib_nh_match (struct rtmsg *r, struct nlmsghdr *nlh, struct kern_rta *rta, struct fib_info *fi) |
| int | fib_check_nh (const struct rtmsg *r, struct fib_info *fi, struct fib_nh *nh) |
| fib_info * | fib_create_info (const struct rtmsg *r, struct kern_rta *rta, const struct nlmsghdr *nlh, int *errp) |
| int | fib_semantic_match (int type, struct fib_info *fi, const struct rt_key *key, struct fib_result *res) |
| u32 | __fib_res_prefsrc (struct fib_result *res) |
| 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_convert_rtentry (int cmd, struct nlmsghdr *nl, struct rtmsg *rtm, struct kern_rta *rta, struct rtentry *r) |
| int | fib_sync_down (u32 local, struct net_device *dev, int force) |
Variables | |
| fib_info * | fib_info_list |
| rwlock_t | fib_info_lock = RW_LOCK_UNLOCKED |
| int | fib_info_cnt |
| struct { | |
| int error | |
| u8 scope | |
| } | RTA_MAX |
|
|
Value: Definition at line 74 of file fib_semantics.c. Referenced by fib_create_info(), fib_sync_down(), and free_fib_info(). |
|
|
Definition at line 55 of file fib_semantics.c. Referenced by fib_find_info(), fib_sync_down(), and ip_fib_check_default(). |
|
|
Definition at line 79 of file fib_semantics.c. Referenced by fib_create_info(), fib_dump_info(), fib_nh_match(), fib_semantic_match(), fib_sync_down(), free_fib_info(), ip_fib_check_default(), and nh_comp(). |
|
|
Value: Definition at line 52 of file fib_semantics.c. Referenced by fib_find_info(), fib_sync_down(), and ip_fib_check_default(). |
|
|
Value: Definition at line 71 of file fib_semantics.c. Referenced by fib_dump_info(), fib_nh_match(), fib_semantic_match(), ip_fib_check_default(), and nh_comp(). |
|
|
Definition at line 46 of file fib_semantics.c. |
|
|
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 347 of file fib_semantics.c. References __dev_get_by_index(), dev_hold, fib_lookup(), FIB_RES_DEV, FIB_RES_OIF, fib_res_put(), net_device::flags, in_dev_put(), inet_addr_type(), inetdev_by_index(), fib_nh::nh_dev, fib_nh::nh_flags, fib_nh::nh_gw, fib_nh::nh_oif, fib_nh::nh_scope, fib_result::scope, and fib_result::type. Referenced by fib_create_info().
|
|
||||||||||||||||||||||||
|
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 160 of file fib_semantics.c. References endfor_fib_info, fib_info::fib_flags, fib_info::fib_metrics, fib_info::fib_nhs, fib_info::fib_prefsrc, fib_info::fib_priority, fib_info::fib_protocol, for_fib_info, and nh_comp(). Referenced by fib_create_info().
|
|
||||||||||||||||||||
|
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 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().
|
|
|
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 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 139 of file fib_semantics.c. References endfor_nexthops, fib_info::fib_nh, and for_nexthops. Referenced by fib_find_info().
|
|
|
Definition at line 84 of file fib_semantics.c. Referenced by __scm_send(), find_inlist_lock_noload(), find_match_lock(), find_table_lock(), find_target_lock(), icmp_rcv(), ip_build_xmit(), ip_build_xmit_slow(), ip_options_compile(), make_receive_sock(), make_send_sock(), neigh_create(), replace_table(), skb_recv_datagram(), tcp_accept(), and wait_for_packet(). |
|
|
Definition at line 50 of file fib_semantics.c. Referenced by fib_create_info(), and free_fib_info(). |
|
|
Definition at line 48 of file fib_semantics.c. Referenced by fib_create_info(), and fib_release_info(). |
|
|
Definition at line 49 of file fib_semantics.c. Referenced by fib_create_info(), fib_release_info(), and ip_fib_check_default(). |
|
|
|
|
|
Definition at line 85 of file fib_semantics.c. Referenced by fib_dump_info(), fib_sync_down(), and inet_select_addr(). |
1.3.8