#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/string.h>#include <linux/mm.h>#include <linux/socket.h>#include <linux/sockios.h>#include <linux/in.h>#include <linux/errno.h>#include <linux/interrupt.h>#include <linux/if_ether.h>#include <linux/inet.h>#include <linux/netdevice.h>#include <linux/etherdevice.h>#include <linux/skbuff.h>#include <linux/rtnetlink.h>#include <linux/init.h>#include <linux/notifier.h>#include <linux/inetdevice.h>#include <linux/igmp.h>#include <linux/kmod.h>#include <net/ip.h>#include <net/route.h>#include <net/ip_fib.h>Go to the source code of this file.
Functions | |
| void | rtmsg_ifa (int event, struct in_ifaddr *) |
| void | inet_del_ifa (struct in_device *in_dev, struct in_ifaddr **ifap, int destroy) |
| in_ifaddr * | inet_alloc_ifa (void) |
| __inline__ void | inet_free_ifa (struct in_ifaddr *ifa) |
| void | in_dev_finish_destroy (struct in_device *idev) |
| in_device * | inetdev_init (struct net_device *dev) |
| void | inetdev_destroy (struct in_device *in_dev) |
| int | inet_addr_onlink (struct in_device *in_dev, u32 a, u32 b) |
| int | inet_insert_ifa (struct in_ifaddr *ifa) |
| int | inet_set_ifa (struct net_device *dev, struct in_ifaddr *ifa) |
| in_device * | inetdev_by_index (int ifindex) |
| in_ifaddr * | inet_ifa_byprefix (struct in_device *in_dev, u32 prefix, u32 mask) |
| int | inet_rtm_deladdr (struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) |
| int | inet_rtm_newaddr (struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) |
| __inline__ int | inet_abc_len (u32 addr) |
| int | devinet_ioctl (unsigned int cmd, void *arg) |
| int | inet_gifconf (struct net_device *dev, char *buf, int len) |
| u32 | inet_select_addr (const struct net_device *dev, u32 dst, int scope) |
| int | register_inetaddr_notifier (struct notifier_block *nb) |
| int | unregister_inetaddr_notifier (struct notifier_block *nb) |
| void | inetdev_changename (struct net_device *dev, struct in_device *in_dev) |
| int | inetdev_event (struct notifier_block *this, unsigned long event, void *ptr) |
| int | inet_fill_ifaddr (struct sk_buff *skb, struct in_ifaddr *ifa, u32 pid, u32 seq, int event) |
| int | inet_dump_ifaddr (struct sk_buff *skb, struct netlink_callback *cb) |
| void __init | devinet_init (void) |
Variables | |
| ipv4_devconf | ipv4_devconf = { 1, 1, 1, 1, 0, } |
| ipv4_devconf | ipv4_devconf_dflt = { 1, 1, 1, 1, 1, } |
| notifier_block * | inetaddr_chain |
| int | inet_ifa_count |
| int | inet_dev_count |
| rwlock_t | inetdev_lock = RW_LOCK_UNLOCKED |
| notifier_block | ip_netdev_notifier |
| rtnetlink_link | inet_rtnetlink_table [RTM_MAX-RTM_BASE+1] |
|
|
Definition at line 1168 of file devinet.c. References inet_gifconf(), inet_rtnetlink_table, ip_netdev_notifier, ipv4_devconf_dflt, register_gifconf(), register_netdevice_notifier(), and rtnetlink_links. Referenced by ip_rt_init().
|
|
||||||||||||
|
Definition at line 459 of file devinet.c. References __dev_get_by_name(), __in_dev_get(), bad_mask(), dev_change_flags(), dev_load(), inet_abc_len(), inet_alloc_ifa(), inet_del_ifa(), inet_insert_ifa(), inet_make_mask(), inet_mask_len(), inet_set_ifa(), rtnl_lock(), rtnl_unlock(), in_addr::s_addr, sockaddr_in::sin_addr, and sockaddr_in::sin_family. Referenced by ic_dev_ioctl(), and inet_ioctl().
|
|
|
Definition at line 104 of file devinet.c. References in_device::dead, in_device::dev, dev_put(), in_device::ifa_list, inet_dev_count, and in_device::mc_list. Referenced by in_dev_put().
|
|
|
Definition at line 438 of file devinet.c. References IN_CLASSA, IN_CLASSB, IN_CLASSC, and ZERONET. Referenced by devinet_ioctl().
|
|
||||||||||||||||
|
Definition at line 187 of file devinet.c. References endfor_ifa, for_primary_ifa, inet_ifa_match(), and in_device::lock. Referenced by ip_route_input_slow(), and ip_rt_redirect().
|
|
|
Definition at line 83 of file devinet.c. References inet_ifa_count. Referenced by devinet_ioctl(), inet_rtm_newaddr(), and inetdev_event().
|
|
||||||||||||||||
|
Definition at line 203 of file devinet.c. References in_device::ifa_list, inet_free_ifa(), inet_ifa_match(), inetaddr_chain, inetdev_destroy(), in_device::lock, and rtmsg_ifa(). Referenced by devinet_ioctl(), inet_rtm_deladdr(), and inetdev_destroy().
|
|
||||||||||||
|
Definition at line 912 of file devinet.c. References __in_dev_get(), netlink_callback::args, dev_base, dev_base_lock, inet_fill_ifaddr(), inetdev_lock, sk_buff::len, NETLINK_CB, net_device::next, netlink_callback::nlh, nlmsghdr::nlmsg_seq, and netlink_callback::skb.
|
|
||||||||||||||||||||||||
|
Definition at line 878 of file devinet.c. References sk_buff::data, in_device::dev, in_ifaddr::ifa_address, in_ifaddr::ifa_anycast, in_ifaddr::ifa_broadcast, in_ifaddr::ifa_dev, in_ifaddr::ifa_flags, in_ifaddr::ifa_label, in_ifaddr::ifa_local, in_ifaddr::ifa_prefixlen, in_ifaddr::ifa_scope, net_device::ifindex, sk_buff::len, NLM_F_MULTI, NLMSG_DATA, NLMSG_PUT, skb_trim(), and sk_buff::tail. Referenced by inet_dump_ifaddr(), and rtmsg_ifa().
|
|
|
Definition at line 96 of file devinet.c. References __in_dev_put, in_ifaddr::ifa_dev, and inet_ifa_count. Referenced by inet_del_ifa(), inet_insert_ifa(), inet_set_ifa(), and inetdev_destroy().
|
|
||||||||||||||||
|
Definition at line 683 of file devinet.c. References __in_dev_get(), and net_device::name. Referenced by devinet_init().
|
|
||||||||||||||||
|
Definition at line 347 of file devinet.c. References endfor_ifa, for_primary_ifa, and inet_ifa_match(). Referenced by fib_add_ifaddr(), and fib_del_ifaddr().
|
|
|
Definition at line 259 of file devinet.c. References in_ifaddr::ifa_dev, in_ifaddr::ifa_flags, in_ifaddr::ifa_local, in_ifaddr::ifa_mask, in_ifaddr::ifa_next, in_ifaddr::ifa_scope, inet_free_ifa(), inet_ifa_match(), inetaddr_chain, net_srandom(), and rtmsg_ifa(). Referenced by devinet_ioctl(), inet_rtm_newaddr(), inet_set_ifa(), and inetdev_event().
|
|
||||||||||||||||
|
Definition at line 359 of file devinet.c. References __in_dev_put, inet_del_ifa(), inet_ifa_match(), inetdev_by_index(), and NLMSG_DATA.
|
|
||||||||||||||||
|
Definition at line 387 of file devinet.c. References __dev_get_by_index(), __in_dev_get(), in_dev_hold, inet_alloc_ifa(), inet_insert_ifa(), inet_make_mask(), inetdev_init(), and NLMSG_DATA.
|
|
||||||||||||||||
|
Definition at line 718 of file devinet.c. References __in_dev_get(), dev_base, dev_base_lock, endfor_ifa, for_primary_ifa, inet_ifa_match(), inetdev_lock, net_device::next, and scope. Referenced by __fib_res_prefsrc(), arp_solicit(), bind_mcastif_addr(), do_masquerade(), fib_validate_source(), ip_route_input_mc(), ip_route_input_slow(), ip_route_output_slow(), and ip_rt_get_source().
|
|
||||||||||||
|
Definition at line 310 of file devinet.c. References __in_dev_get(), in_ifaddr::ifa_dev, in_ifaddr::ifa_local, in_ifaddr::ifa_scope, in_dev_hold, inet_free_ifa(), inet_insert_ifa(), inetdev_init(), and LOOPBACK. Referenced by devinet_ioctl().
|
|
|
Definition at line 333 of file devinet.c. References __dev_get_by_index(), dev_base_lock, and in_dev_get(). Referenced by fib_check_nh(), inet_rtm_deladdr(), ip_mc_drop_socket(), ip_mc_find_dev(), and ip_mc_leave_group().
|
|
||||||||||||
|
Definition at line 792 of file devinet.c. References in_device::ifa_list, in_ifaddr::ifa_next, and net_device::name. Referenced by inetdev_event().
|
|
|
Definition at line 159 of file devinet.c. References in_device::arp_parms, arp_tbl, in_device::cnf, in_device::dead, in_device::dev, in_device::ifa_list, in_dev_put(), inet_del_ifa(), inet_free_ifa(), inetdev_lock, ip_mc_destroy_dev(), net_device::ip_ptr, and neigh_parms_release(). Referenced by inet_del_ifa(), and inetdev_event().
|
|
||||||||||||||||
|
Definition at line 819 of file devinet.c. References __in_dev_get(), in_dev_hold, INADDR_LOOPBACK, inet_alloc_ifa(), inet_insert_ifa(), inet_make_mask(), inetdev_changename(), inetdev_destroy(), ip_mc_down(), ip_mc_up(), and loopback_dev.
|
|
|
Definition at line 122 of file devinet.c. References arp_tbl, dev_hold, net_device::flags, in_dev_hold, inet_dev_count, inetdev_lock, ip_mc_up(), net_device::ip_ptr, ipv4_devconf_dflt, neigh_parms_alloc(), and neigh_sysctl_register(). Referenced by inet_rtm_newaddr(), inet_set_ifa(), and ipmr_new_tunnel().
|
|
|
Definition at line 779 of file devinet.c. References inetaddr_chain. Referenced by init(), and ip_fib_init().
|
|
||||||||||||
|
Definition at line 957 of file devinet.c. References alloc_skb(), inet_fill_ifaddr(), kfree_skb(), netlink_broadcast(), NETLINK_CB, netlink_set_err(), NLMSG_SPACE, and rtnl. Referenced by inet_del_ifa(), and inet_insert_ifa().
|
|
|
Definition at line 784 of file devinet.c. References inetaddr_chain. Referenced by fini().
|
|
|
Definition at line 76 of file devinet.c. Referenced by in_dev_finish_destroy(), and inetdev_init(). |
|
|
Definition at line 75 of file devinet.c. Referenced by inet_alloc_ifa(), and inet_free_ifa(). |
|
|
Definition at line 977 of file devinet.c. Referenced by devinet_init(). |
|
|
Definition at line 68 of file devinet.c. Referenced by inet_del_ifa(), inet_insert_ifa(), register_inetaddr_notifier(), and unregister_inetaddr_notifier(). |
|
|
Definition at line 80 of file devinet.c. Referenced by fib_validate_source(), in_dev_get(), inet_dump_ifaddr(), inet_select_addr(), inetdev_destroy(), inetdev_init(), ip_route_input(), and ip_route_output_slow(). |
|
|
Initial value: Definition at line 874 of file devinet.c. Referenced by devinet_init(). |
|
|
|
Definition at line 64 of file devinet.c. Referenced by devinet_init(), and inetdev_init(). |
1.3.8