#include <linux/config.h>#include <linux/errno.h>#include <linux/types.h>#include <linux/socket.h>#include <linux/kernel.h>#include <linux/major.h>#include <linux/sched.h>#include <linux/timer.h>#include <linux/string.h>#include <linux/sockios.h>#include <linux/net.h>#include <linux/fcntl.h>#include <linux/mm.h>#include <linux/slab.h>#include <linux/interrupt.h>#include <linux/capability.h>#include <linux/skbuff.h>#include <linux/init.h>#include <asm/uaccess.h>#include <asm/system.h>#include <asm/string.h>#include <linux/inet.h>#include <linux/netdevice.h>#include <net/ip.h>#include <net/protocol.h>#include <net/arp.h>#include <net/route.h>#include <net/udp.h>#include <net/sock.h>#include <net/pkt_sched.h>Go to the source code of this file.
Functions | |
| DECLARE_MUTEX (rtnl_sem) | |
| void | rtnl_lock (void) |
| void | rtnl_unlock (void) |
| int | rtattr_parse (struct rtattr *tb[], int maxattr, struct rtattr *rta, int len) |
| void | __rta_fill (struct sk_buff *skb, int attrtype, int attrlen, const void *data) |
| int | rtnetlink_send (struct sk_buff *skb, u32 pid, unsigned group, int echo) |
| int | rtnetlink_put_metrics (struct sk_buff *skb, unsigned *metrics) |
| int | rtnetlink_fill_ifinfo (struct sk_buff *skb, struct net_device *dev, int type, u32 pid, u32 seq, u32 change) |
| int | rtnetlink_dump_ifinfo (struct sk_buff *skb, struct netlink_callback *cb) |
| int | rtnetlink_dump_all (struct sk_buff *skb, struct netlink_callback *cb) |
| void | rtmsg_ifinfo (int type, struct net_device *dev, unsigned change) |
| int | rtnetlink_done (struct netlink_callback *cb) |
| __inline__ int | rtnetlink_rcv_msg (struct sk_buff *skb, struct nlmsghdr *nlh, int *errp) |
| int | rtnetlink_rcv_skb (struct sk_buff *skb) |
| void | rtnetlink_rcv (struct sock *sk, int len) |
| int | rtnetlink_event (struct notifier_block *this, unsigned long event, void *ptr) |
| void __init | rtnetlink_init (void) |
Variables | |
| sock * | rtnl |
| rtnetlink_link * | rtnetlink_links [NPROTO] |
| const int | rtm_min [(RTM_MAX+1-RTM_BASE)/4] |
| const int | rta_max [(RTM_MAX+1-RTM_BASE)/4] |
| rtnetlink_link | link_rtnetlink_table [RTM_MAX-RTM_BASE+1] |
| notifier_block | rtnetlink_dev_notifier |
|
||||||||||||||||||||
|
Definition at line 107 of file rtnetlink.c. References skb_put().
|
|
|
|
|
||||||||||||||||||||
|
Definition at line 66 of file rtnetlink.c.
|
|
||||||||||||||||
|
Definition at line 247 of file rtnetlink.c. References alloc_skb(), kfree_skb(), netlink_broadcast(), NETLINK_CB, NLMSG_GOODSIZE, rtnetlink_fill_ifinfo(), and rtnl. Referenced by dev_change_flags(), netdev_set_master(), netdev_state_change(), and rtnetlink_event().
|
|
|
Definition at line 264 of file rtnetlink.c. Referenced by rtnetlink_rcv_msg().
|
|
||||||||||||
|
Definition at line 223 of file rtnetlink.c. References netlink_callback::args, netlink_callback::family, sk_buff::len, netlink_callback::nlh, nlmsghdr::nlmsg_type, NPROTO, and rtnetlink_links.
|
|
||||||||||||
|
Definition at line 204 of file rtnetlink.c. References netlink_callback::args, dev_base, dev_base_lock, sk_buff::len, NETLINK_CB, net_device::next, netlink_callback::nlh, nlmsghdr::nlmsg_seq, rtnetlink_fill_ifinfo(), and netlink_callback::skb.
|
|
||||||||||||||||
|
Definition at line 487 of file rtnetlink.c. References rtmsg_ifinfo().
|
|
||||||||||||||||||||||||||||
|
Definition at line 152 of file rtnetlink.c. References net_device::addr_len, net_device::broadcast, sk_buff::data, net_device::dev_addr, net_device::flags, net_device::get_stats, Qdisc_ops::id, net_device::ifindex, net_device::iflink, sk_buff::len, net_device::master, net_device::mtu, net_device::name, netif_carrier_ok(), netif_running(), NLM_F_MULTI, NLMSG_DATA, NLMSG_PUT, Qdisc::ops, net_device::qdisc_sleeping, skb_trim(), sk_buff::tail, and net_device::type. Referenced by rtmsg_ifinfo(), and rtnetlink_dump_ifinfo().
|
|
|
Definition at line 518 of file rtnetlink.c. References link_rtnetlink_table, netlink_kernel_create(), NETLINK_ROUTE, netlink_set_nonroot(), NL_NONROOT_RECV, register_netdevice_notifier(), rtnetlink_dev_notifier, rtnetlink_links, rtnetlink_rcv(), and rtnl. Referenced by sock_init().
|
|
||||||||||||
|
Definition at line 131 of file rtnetlink.c. References sk_buff::data, skb_trim(), and sk_buff::tail. Referenced by fib_dump_info(), and rt_fill_info().
|
|
||||||||||||
|
Definition at line 435 of file rtnetlink.c. References kfree_skb(), sk_buff_head::qlen, sock::receive_queue, rtnetlink_rcv_skb(), rtnl, skb_dequeue(), and skb_queue_head(). Referenced by rtnetlink_init().
|
|
||||||||||||||||
|
Definition at line 272 of file rtnetlink.c. References sk_buff::len, NETLINK_CB, netlink_dump_start(), NLM_F_DUMP, NLM_F_REQUEST, NLMSG_ALIGN, NLMSG_DATA, nlmsghdr::nlmsg_flags, nlmsghdr::nlmsg_len, NLMSG_LENGTH, nlmsghdr::nlmsg_type, NPROTO, rta_max, rtm_min, rtnetlink_done(), rtnetlink_links, rtnl, and skb_pull(). Referenced by rtnetlink_rcv_skb().
|
|
|
Definition at line 397 of file rtnetlink.c. References sk_buff::data, sk_buff::len, netlink_ack(), NLM_F_ACK, NLMSG_ALIGN, NLMSG_SPACE, rtnetlink_rcv_msg(), and skb_pull(). Referenced by rtnetlink_rcv().
|
|
||||||||||||||||||||
|
Definition at line 118 of file rtnetlink.c. References netlink_broadcast(), NETLINK_CB, netlink_unicast(), rtnl, and sk_buff::users.
|
|
|
Definition at line 54 of file rtnetlink.c. Referenced by arp_ioctl(), dev_ioctl(), devinet_ioctl(), ip_mc_drop_socket(), ip_mc_leave_group(), ip_mroute_setsockopt(), ip_rt_ioctl(), mrtsock_destruct(), and setup_inject().
|
|
|
Definition at line 60 of file rtnetlink.c. Referenced by arp_ioctl(), dev_ioctl(), devinet_ioctl(), ip_mc_drop_socket(), ip_mc_leave_group(), ip_mroute_setsockopt(), ip_rt_ioctl(), mrtsock_destruct(), and setup_inject().
|
|
|
Initial value: Definition at line 458 of file rtnetlink.c. Referenced by rtnetlink_init(). |
|
|
Initial value: Definition at line 95 of file rtnetlink.c. Referenced by rtnetlink_rcv_msg(). |
|
|
Initial value: Definition at line 83 of file rtnetlink.c. Referenced by rtnetlink_rcv_msg(). |
|
|
Initial value: Definition at line 511 of file rtnetlink.c. Referenced by rtnetlink_init(). |
|
|
Definition at line 81 of file rtnetlink.c. Referenced by devinet_init(), rtnetlink_dump_all(), rtnetlink_init(), and rtnetlink_rcv_msg(). |
|
|
Definition at line 79 of file rtnetlink.c. Referenced by inet_rtm_getroute(), ipmr_cache_resolve(), ipmr_destroy_unres(), rtmsg_fib(), rtmsg_ifa(), rtmsg_ifinfo(), rtmsg_iwinfo(), rtnetlink_init(), rtnetlink_rcv(), rtnetlink_rcv_msg(), and rtnetlink_send(). |
1.3.8