#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/icmp.h>#include <net/arp.h>#include <net/ip_fib.h>Go to the source code of this file.
Defines | |
| #define | FFprint(a...) printk(KERN_DEBUG a) |
| #define | RT_TABLE_MIN RT_TABLE_MAIN |
| #define | LOCAL_OK 1 |
| #define | BRD_OK 2 |
| #define | BRD0_OK 4 |
| #define | BRD1_OK 8 |
Functions | |
| void | fib_flush (void) |
| net_device * | ip_dev_find (u32 addr) |
| unsigned | inet_addr_type (u32 addr) |
| int | fib_validate_source (u32 src, u32 dst, u8 tos, int oif, struct net_device *dev, u32 *spec_dst, u32 *itag) |
| int | ip_rt_ioctl (unsigned int cmd, void *arg) |
| int | inet_check_attr (struct rtmsg *r, struct rtattr **rta) |
| 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_dump_fib (struct sk_buff *skb, struct netlink_callback *cb) |
| void | fib_magic (int cmd, int type, u32 dst, int dst_len, struct in_ifaddr *ifa) |
| void | fib_add_ifaddr (struct in_ifaddr *ifa) |
| void | fib_del_ifaddr (struct in_ifaddr *ifa) |
| void | fib_disable_ip (struct net_device *dev, int force) |
| int | fib_inetaddr_event (struct notifier_block *this, unsigned long event, void *ptr) |
| int | fib_netdev_event (struct notifier_block *this, unsigned long event, void *ptr) |
| void __init | ip_fib_init (void) |
Variables | |
| fib_table * | local_table |
| fib_table * | main_table |
| notifier_block | fib_inetaddr_notifier |
| notifier_block | fib_netdev_notifier |
|
|
Referenced by fib_del_ifaddr(). |
|
|
Referenced by fib_del_ifaddr(). |
|
|
Referenced by fib_del_ifaddr(). |
|
|
Definition at line 48 of file fib_frontend.c. |
|
|
Referenced by fib_del_ifaddr(). |
|
|
Definition at line 52 of file fib_frontend.c. Referenced by inet_dump_fib(). |
|
|
Definition at line 465 of file fib_frontend.c. References in_device::dev, fib_magic(), in_ifaddr::ifa_dev, in_ifaddr::ifa_mask, inet_ifa_byprefix(), and ZERONET. Referenced by fib_inetaddr_event(), and fib_netdev_event().
|
|
|
Definition at line 504 of file fib_frontend.c. References BRD0_OK, BRD1_OK, BRD_OK, in_device::dev, fib_flush(), fib_magic(), fib_sync_down(), in_ifaddr::ifa_address, in_ifaddr::ifa_dev, inet_addr_type(), inet_ifa_byprefix(), and LOCAL_OK. Referenced by fib_inetaddr_event().
|
|
||||||||||||
|
Definition at line 573 of file fib_frontend.c. References arp_ifdown(), fib_flush(), fib_sync_down(), and rt_cache_flush(). Referenced by fib_inetaddr_event(), and fib_netdev_event().
|
|
|
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 581 of file fib_frontend.c. References fib_add_ifaddr(), fib_del_ifaddr(), fib_disable_ip(), fib_sync_up(), and rt_cache_flush().
|
|
||||||||||||||||||||||||
|
Definition at line 423 of file fib_frontend.c. References in_device::dev, fib_new_table(), in_ifaddr::ifa_dev, in_ifaddr::ifa_local, net_device::ifindex, NLM_F_APPEND, NLM_F_CREATE, and NLM_F_REQUEST. Referenced by fib_add_ifaddr(), and fib_del_ifaddr().
|
|
||||||||||||||||
|
Definition at line 608 of file fib_frontend.c. References __in_dev_get(), endfor_ifa, fib_add_ifaddr(), fib_disable_ip(), fib_sync_up(), for_ifa, and rt_cache_flush().
|
|
||||||||||||||||||||||||||||||||
|
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 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 341 of file fib_frontend.c. Referenced by inet_rtm_delroute(), and inet_rtm_newroute().
|
|
||||||||||||
|
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 372 of file fib_frontend.c. References fib_new_table(), inet_check_attr(), NETLINK_CB, and NLMSG_DATA.
|
|
|
Definition at line 145 of file fib_frontend.c. References dev_hold, FIB_RES_DEV, fib_res_put(), local_table, fib_table::tb_lookup, and fib_result::type. Referenced by ip_mc_find_dev(), ip_route_output_slow(), ip_setsockopt(), and vif_add().
|
|
|
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 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().
|
|
|
Initial value: Definition at line 642 of file fib_frontend.c. Referenced by ip_fib_init(). |
|
|
Initial value: Definition at line 646 of file fib_frontend.c. Referenced by ip_fib_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