OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [include/] [net/] [netlink.h] - Blame information for rev 1778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#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 11            /* 18,0 for route updates, 18,1 for SKIP, 18,2 debug tap 18,3 PPP reserved      */
6
                                /* 4-7 are psi0-psi3  8 is arpd 9 is ppp */
7
                                /* 10 is for IPSEC <John Ioannidis> */
8
#define MAX_QBYTES 32768        /* Maximum bytes in the queue                                                   */
9
 
10
#include <linux/config.h>
11
 
12
extern int netlink_attach(int unit, int (*function)(struct sk_buff *skb));
13
extern int netlink_donothing(struct sk_buff *skb);
14
extern void netlink_detach(int unit);
15
extern int netlink_post(int unit, struct sk_buff *skb);
16
extern int init_netlink(void);
17
 
18
#define NETLINK_ROUTE           0        /* Routing/device hook                          */
19
#define NETLINK_SKIP            1       /* Reserved for ENskip                          */
20
#define NETLINK_USERSOCK        2       /* Reserved for user mode socket protocols      */
21
#define NETLINK_FIREWALL        3       /* Firewalling hook                             */
22
#define NETLINK_PSI             4       /* PSI devices - 4 to 7 */
23
#define NETLINK_ARPD            8
24
#define NETLINK_NET_PPP         9       /* Non tty PPP devices */
25
#define NETLINK_IPSEC           10      /* IPSEC */
26
 
27
#ifdef CONFIG_RTNETLINK
28
extern void ip_netlink_msg(unsigned long, __u32, __u32, __u32, short, short, char *);
29
#else
30
#define ip_netlink_msg(a,b,c,d,e,f,g)
31
#endif
32
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.