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 #include <linux/config.h>
   5 
   6 #define NET_MAJOR 18            /* Major 18 is reserved for networking          */
   7 #define MAX_LINKS 3             /* 18,0 for route updates, 18,1 for SKIP        */
   8 #define MAX_QBYTES 32768        /* Maximum bytes in the queue                   */
   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 void init_netlink(void);
  15 
  16 #define NETLINK_ROUTE           0       /* Routing/device hook                          */
  17 #define NETLINK_SKIP            1       /* Reserved for ENskip                          */
  18 #define NETLINK_USERSOCK        2       /* Reserved for user mode socket protocols      */
  19 #define NETLINK_FIREWALL        3       /* Firewalling hook                             */
  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

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