~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to include/linux/netfilter_bridge/ebt_ip.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  ebt_ip
 
3
 *
 
4
 *      Authors:
 
5
 *      Bart De Schuymer <bart.de.schuymer@pandora.be>
 
6
 *
 
7
 *  April, 2002
 
8
 *
 
9
 *  Changes:
 
10
 *    added ip-sport and ip-dport
 
11
 *    Innominate Security Technologies AG <mhopf@innominate.com>
 
12
 *    September, 2002
 
13
 */
 
14
 
 
15
#ifndef __LINUX_BRIDGE_EBT_IP_H
 
16
#define __LINUX_BRIDGE_EBT_IP_H
 
17
 
 
18
#include <linux/types.h>
 
19
 
 
20
#define EBT_IP_SOURCE 0x01
 
21
#define EBT_IP_DEST 0x02
 
22
#define EBT_IP_TOS 0x04
 
23
#define EBT_IP_PROTO 0x08
 
24
#define EBT_IP_SPORT 0x10
 
25
#define EBT_IP_DPORT 0x20
 
26
#define EBT_IP_MASK (EBT_IP_SOURCE | EBT_IP_DEST | EBT_IP_TOS | EBT_IP_PROTO |\
 
27
 EBT_IP_SPORT | EBT_IP_DPORT )
 
28
#define EBT_IP_MATCH "ip"
 
29
 
 
30
/* the same values are used for the invflags */
 
31
struct ebt_ip_info {
 
32
        __be32 saddr;
 
33
        __be32 daddr;
 
34
        __be32 smsk;
 
35
        __be32 dmsk;
 
36
        __u8  tos;
 
37
        __u8  protocol;
 
38
        __u8  bitmask;
 
39
        __u8  invflags;
 
40
        __u16 sport[2];
 
41
        __u16 dport[2];
 
42
};
 
43
 
 
44
#endif