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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [net/] [ip6_fw.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#ifndef __NET_IP6_FW_H
2
#define __NET_IP6_FW_H
3
 
4
#define IP6_FW_LISTHEAD         0x1000
5
#define IP6_FW_ACCEPT           0x0001
6
#define IP6_FW_REJECT           0x0002
7
 
8
#define IP6_FW_DEBUG    2
9
 
10
#define IP6_FW_MSG_ADD          1
11
#define IP6_FW_MSG_DEL          2
12
#define IP6_FW_MSG_REPORT       3
13
 
14
 
15
/*
16
 *      Fast "hack" user interface
17
 */
18
struct ip6_fw_msg {
19
        struct in6_addr         dst;
20
        struct in6_addr         src;
21
        int                     dst_len;
22
        int                     src_len;
23
        int                     action;
24
        int                     policy;
25
        int                     proto;
26
        union {
27
                struct {
28
                        __u16   sport;
29
                        __u16   dport;
30
                } transp;
31
 
32
                unsigned long   data;
33
 
34
                int             icmp_type;
35
        } u;
36
 
37
        int                     msg_len;
38
};
39
 
40
#ifdef __KERNEL__
41
 
42
#include <net/flow.h>
43
 
44
struct ip6_fw_rule {
45
        struct flow_rule        flowr;
46
        struct ip6_fw_rule      *next;
47
        struct ip6_fw_rule      *prev;
48
        struct flowi            info;
49
        unsigned long           policy;
50
};
51
 
52
#endif
53
 
54
#endif

powered by: WebSVN 2.1.0

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