Go to the source code of this file.
Classes | |
| struct | sockaddr_nl |
| struct | nlmsghdr |
| struct | nlmsgerr |
| struct | netlink_skb_parms |
| struct | netlink_callback |
| struct | netlink_notify |
Defines | |
| #define | NETLINK_ROUTE 0 |
| #define | NETLINK_SKIP 1 |
| #define | NETLINK_USERSOCK 2 |
| #define | NETLINK_FIREWALL 3 |
| #define | NETLINK_TCPDIAG 4 |
| #define | NETLINK_NFLOG 5 |
| #define | NETLINK_ARPD 8 |
| #define | NETLINK_ROUTE6 11 |
| #define | NETLINK_IP6_FW 13 |
| #define | NETLINK_DNRTMSG 14 |
| #define | NETLINK_TAPBASE 16 |
| #define | MAX_LINKS 32 |
| #define | NLM_F_REQUEST 1 |
| #define | NLM_F_MULTI 2 |
| #define | NLM_F_ACK 4 |
| #define | NLM_F_ECHO 8 |
| #define | NLM_F_ROOT 0x100 |
| #define | NLM_F_MATCH 0x200 |
| #define | NLM_F_ATOMIC 0x400 |
| #define | NLM_F_DUMP (NLM_F_ROOT|NLM_F_MATCH) |
| #define | NLM_F_REPLACE 0x100 |
| #define | NLM_F_EXCL 0x200 |
| #define | NLM_F_CREATE 0x400 |
| #define | NLM_F_APPEND 0x800 |
| #define | NLMSG_ALIGNTO 4 |
| #define | NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) |
| #define | NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(sizeof(struct nlmsghdr))) |
| #define | NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len)) |
| #define | NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) |
| #define | NLMSG_NEXT(nlh, len) |
| #define | NLMSG_OK(nlh, len) |
| #define | NLMSG_PAYLOAD(nlh, len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) |
| #define | NLMSG_NOOP 0x1 |
| #define | NLMSG_ERROR 0x2 |
| #define | NLMSG_DONE 0x3 |
| #define | NLMSG_OVERRUN 0x4 |
| #define | NET_MAJOR 36 |
| #define | NETLINK_CB(skb) (*(struct netlink_skb_parms*)&((skb)->cb)) |
| #define | NETLINK_CREDS(skb) (&NETLINK_CB((skb)).creds) |
| #define | NLMSG_GOODSIZE (PAGE_SIZE - ((sizeof(struct sk_buff)+0xF)&~0xF)) |
| #define | NLMSG_PUT(skb, pid, seq, type, len) |
| #define | NL_NONROOT_RECV 0x1 |
| #define | NL_NONROOT_SEND 0x2 |
Functions | |
| int | netlink_attach (int unit, int(*function)(int, struct sk_buff *skb)) |
| void | netlink_detach (int unit) |
| int | netlink_post (int unit, struct sk_buff *skb) |
| int | init_netlink (void) |
| sock * | netlink_kernel_create (int unit, void(*input)(struct sock *sk, int len)) |
| void | netlink_ack (struct sk_buff *in_skb, struct nlmsghdr *nlh, int err) |
| int | netlink_unicast (struct sock *ssk, struct sk_buff *skb, __u32 pid, int nonblock) |
| void | netlink_broadcast (struct sock *ssk, struct sk_buff *skb, __u32 pid, __u32 group, int allocation) |
| void | netlink_set_err (struct sock *ssk, __u32 pid, __u32 group, int code) |
| int | netlink_register_notifier (struct notifier_block *nb) |
| int | netlink_unregister_notifier (struct notifier_block *nb) |
| __inline__ struct nlmsghdr * | __nlmsg_put (struct sk_buff *skb, u32 pid, u32 seq, int type, int len) |
| int | netlink_dump_start (struct sock *ssk, struct sk_buff *skb, struct nlmsghdr *nlh, int(*dump)(struct sk_buff *skb, struct netlink_callback *), int(*done)(struct netlink_callback *)) |
| void | netlink_set_nonroot (int protocol, unsigned flag) |
|
|
|
|
|
Definition at line 99 of file netlink.h. Referenced by fn_hash_dump_bucket(), inet_dump_ifaddr(), inet_rtm_delroute(), inet_rtm_getroute(), inet_rtm_newroute(), ip_rt_dump(), ipmr_cache_resolve(), ipmr_destroy_unres(), ipq_rcv_skb(), neigh_dump_table(), rtmsg_fib(), rtmsg_ifa(), rtmsg_ifinfo(), rtmsg_iwinfo(), rtnetlink_dump_ifinfo(), rtnetlink_rcv_msg(), rtnetlink_send(), tcpdiag_dump(), tcpdiag_get_exact(), and ulog_send(). |
|
|
Definition at line 100 of file netlink.h. Referenced by inet_fill_rule(). |
|
|
|
Definition at line 7 of file netlink.h. Referenced by init_or_cleanup(), ip_fw_chk(), ipfw_init_or_cleanup(), and ipq_rcv_nl_event(). |
|
|
|
Definition at line 9 of file netlink.h. Referenced by init(). |
|
|
Definition at line 4 of file netlink.h. Referenced by rtnetlink_init(). |
|
|
|
|
|
Definition at line 8 of file netlink.h. Referenced by tcpdiag_init(). |
|
|
|
Definition at line 164 of file netlink.h. Referenced by rtnetlink_init(). |
|
|
|
Definition at line 39 of file netlink.h. Referenced by ipq_rcv_skb(), rtnetlink_rcv_skb(), and tcpdiag_rcv_skb(). |
|
|
Definition at line 52 of file netlink.h. Referenced by fib_magic(), and fn_hash_insert(). |
|
|
|
Definition at line 51 of file netlink.h. Referenced by fib_convert_rtentry(), fib_magic(), fn_hash_insert(), and neigh_add(). |
|
|
Definition at line 46 of file netlink.h. Referenced by rtnetlink_rcv_msg(), and tcpdiag_rcv_msg(). |
|
|
Definition at line 40 of file netlink.h. Referenced by rtmsg_fib(). |
|
|
Definition at line 50 of file netlink.h. Referenced by fn_hash_insert(), and neigh_add(). |
|
|
|
Definition at line 38 of file netlink.h. Referenced by inet_fill_ifaddr(), ipq_rcv_skb(), ipt_ulog_target(), rt_fill_info(), and rtnetlink_fill_ifinfo(). |
|
|
Definition at line 49 of file netlink.h. Referenced by fn_hash_insert(), and neigh_add(). |
|
|
Definition at line 37 of file netlink.h. Referenced by fib_convert_rtentry(), fib_magic(), ipq_rcv_skb(), rtnetlink_rcv_msg(), and tcpdiag_rcv_msg(). |
|
|
|
Definition at line 64 of file netlink.h. Referenced by __nlmsg_put(), rtnetlink_rcv_msg(), and rtnetlink_rcv_skb(). |
|
|
|
|
Definition at line 76 of file netlink.h. Referenced by ipt_ulog_target(), and ulog_send(). |
|
|
Definition at line 75 of file netlink.h. Referenced by ipmr_cache_resolve(), and ipmr_destroy_unres(). |
|
|
Definition at line 121 of file netlink.h. Referenced by inet_rtm_getroute(), rtmsg_ifinfo(), and rtmsg_iwinfo(). |
|
|
Definition at line 65 of file netlink.h. Referenced by __nlmsg_put(), fib_convert_rtentry(), ipmr_cache_resolve(), ipmr_destroy_unres(), ipq_rcv_skb(), rtnetlink_rcv_msg(), and tcpdiag_rcv_msg(). |
|
|
Value: Definition at line 68 of file netlink.h. |
|
|
|
Value: Definition at line 70 of file netlink.h. |
|
|
|
Definition at line 72 of file netlink.h. Referenced by inet_dump_fib(). |
|
|
Value: Definition at line 155 of file netlink.h. Referenced by fib_dump_info(), inet_fill_ifaddr(), inet_fill_rule(), ipq_build_packet_message(), ipt_ulog_target(), neigh_fill_info(), rt_fill_info(), rtnetlink_fill_ifinfo(), rtnetlink_fill_iwinfo(), and tcpdiag_fill(). |
|
|
Definition at line 66 of file netlink.h. Referenced by ipq_build_packet_message(), ipt_ulog_target(), rtmsg_fib(), rtmsg_ifa(), rtnetlink_rcv_skb(), tcpdiag_dump(), tcpdiag_get_exact(), tcpdiag_rcv_msg(), and tcpdiag_rcv_skb(). |
|
||||||||||||||||||||||||
|
Definition at line 141 of file netlink.h. References NLMSG_ALIGN, NLMSG_LENGTH, and skb_put().
|
|
|
Referenced by sock_init(). |
|
||||||||||||||||
|
Referenced by ipq_rcv_skb(), rtnetlink_rcv_skb(), and tcpdiag_rcv_skb(). |
|
||||||||||||
|
|
|
||||||||||||||||||||||||
|
Referenced by ip_fw_domatch(), rtmsg_fib(), rtmsg_ifa(), rtmsg_ifinfo(), rtmsg_iwinfo(), rtnetlink_send(), and ulog_send(). |
|
|
|
|
||||||||||||||||||||||||
|
Referenced by rtnetlink_rcv_msg(), and tcpdiag_rcv_msg(). |
|
||||||||||||
|
Referenced by init(), init_or_cleanup(), ipfw_init_or_cleanup(), rtnetlink_init(), and tcpdiag_init(). |
|
||||||||||||
|
Referenced by ip_fw_chk(). |
|
|
Referenced by init_or_cleanup(). |
|
||||||||||||||||||||
|
Referenced by rtmsg_ifa(). |
|
||||||||||||
|
Referenced by rtnetlink_init(). |
|
||||||||||||||||||||
|
Referenced by inet_rtm_getroute(), ipmr_cache_resolve(), ipmr_destroy_unres(), ipq_enqueue_packet(), rtmsg_fib(), rtnetlink_send(), and tcpdiag_get_exact(). |
|
|
Referenced by init_or_cleanup(). |
1.3.8