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

« back to all changes in this revision

Viewing changes to include/linux/netfilter/xt_multiport.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
#ifndef _XT_MULTIPORT_H
 
2
#define _XT_MULTIPORT_H
 
3
 
 
4
#include <linux/types.h>
 
5
 
 
6
enum xt_multiport_flags {
 
7
        XT_MULTIPORT_SOURCE,
 
8
        XT_MULTIPORT_DESTINATION,
 
9
        XT_MULTIPORT_EITHER
 
10
};
 
11
 
 
12
#define XT_MULTI_PORTS  15
 
13
 
 
14
/* Must fit inside union xt_matchinfo: 16 bytes */
 
15
struct xt_multiport {
 
16
        __u8 flags;                             /* Type of comparison */
 
17
        __u8 count;                             /* Number of ports */
 
18
        __u16 ports[XT_MULTI_PORTS];    /* Ports */
 
19
};
 
20
 
 
21
struct xt_multiport_v1 {
 
22
        __u8 flags;                             /* Type of comparison */
 
23
        __u8 count;                             /* Number of ports */
 
24
        __u16 ports[XT_MULTI_PORTS];    /* Ports */
 
25
        __u8 pflags[XT_MULTI_PORTS];    /* Port flags */
 
26
        __u8 invert;                    /* Invert flag */
 
27
};
 
28
 
 
29
#endif /*_XT_MULTIPORT_H*/