1 #ifndef __NET_NETLINK_H
2 #define __NET_NETLINK_H
3
4 #define NET_MAJOR 36
5 #define MAX_LINKS 8
6
7 #define MAX_QBYTES 32768
8
9 #include <linux/config.h>
10
11 extern int netlink_attach(int unit, int (*function)(struct sk_buff *skb));
12 extern int netlink_donothing(struct sk_buff *skb);
13 extern void netlink_detach(int unit);
14 extern int netlink_post(int unit, struct sk_buff *skb);
15 extern int init_netlink(void);
16
17 #define NETLINK_ROUTE 0
18 #define NETLINK_SKIP 1
19 #define NETLINK_USERSOCK 2
20 #define NETLINK_FIREWALL 3
21 #define NETLINK_PSI 4
22
23 #ifdef CONFIG_RTNETLINK
24 extern void ip_netlink_msg(unsigned long, __u32, __u32, __u32, short, short, char *);
25 #else
26 #define ip_netlink_msg(a,b,c,d,e,f,g)
27 #endif
28 #endif