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