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 #define NET_MAJOR 18            /* Major 18 is reserved for networking          */
   4 #define MAX_LINKS 3             /* 18,0 for route updates, 18,1 for SKIP        */
   5 #define MAX_QBYTES 32768        /* Maximum bytes in the queue                   */
   6 
   7 extern int netlink_attach(int unit, int (*function)(struct sk_buff *skb));
   8 extern int netlink_donothing(struct sk_buff *skb);
   9 extern void netlink_detach(int unit);
  10 extern int netlink_post(int unit, struct sk_buff *skb);
  11 extern void init_netlink(void);
  12 
  13 #define NETLINK_ROUTE           0       /* Routing/device hook                          */
  14 #define NETLINK_SKIP            1       /* Reserved for ENskip                          */
  15 #define NETLINK_USERSOCK        2       /* Reserved for user mode socket protocols      */
  16 #define NETLINK_FIREWALL        3       /* Firewalling hook                             */
  17 
  18 #ifdef CONFIG_RTNETLINK
  19 extern void ip_netlink_msg(unsigned long, __u32, __u32, __u32, short, short, char *);
  20 #else
  21 #define ip_netlink_msg(a,b,c,d,e,f,g)
  22 #endif
  23 #endif

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