root/include/net/netlink.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef __NET_NETLINK_H
   2 #define __NET_NETLINK_H
   3 
   4 #define NET_MAJOR 36            /* Major 18 is reserved for networking                                          */
   5 #define MAX_LINKS 8             /* 18,0 for route updates, 18,1 for SKIP, 18,2 debug tap 18,3 PPP reserved      */
   6                                 /* 4-7 are psi0-psi3 */
   7 #define MAX_QBYTES 32768        /* Maximum bytes in the queue                                                   */
   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       /* Routing/device hook                          */
  18 #define NETLINK_SKIP            1       /* Reserved for ENskip                          */
  19 #define NETLINK_USERSOCK        2       /* Reserved for user mode socket protocols      */
  20 #define NETLINK_FIREWALL        3       /* Firewalling hook                             */
  21 #define NETLINK_PSI             4       /* PSI devices - 4 to 7 */
  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

/* [previous][next][first][last][top][bottom][index][help] */