~ubuntu-branches/ubuntu/maverick/iptables/maverick

« back to all changes in this revision

Viewing changes to include/linux/netfilter/xt_multiport.h

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2008-06-24 15:06:04 UTC
  • mfrom: (5.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080624150604-5t7r1o1kxq0ycz81
Tags: 1.4.0-4ubuntu1
* Merge from debian unstable, remaining changes:
  - Took references to 2.4 kernel out of doc-base control files (Jordan
    Mantha, Malone #25972) (patches/all/091-fix-2.4-references.patch)
  - Use linux-libc-dev instead of local copy of kernel-headers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _XT_MULTIPORT_H
 
2
#define _XT_MULTIPORT_H
 
3
 
 
4
enum xt_multiport_flags
 
5
{
 
6
        XT_MULTIPORT_SOURCE,
 
7
        XT_MULTIPORT_DESTINATION,
 
8
        XT_MULTIPORT_EITHER
 
9
};
 
10
 
 
11
#define XT_MULTI_PORTS  15
 
12
 
 
13
/* Must fit inside union xt_matchinfo: 16 bytes */
 
14
struct xt_multiport
 
15
{
 
16
        u_int8_t flags;                         /* Type of comparison */
 
17
        u_int8_t count;                         /* Number of ports */
 
18
        u_int16_t ports[XT_MULTI_PORTS];        /* Ports */
 
19
};
 
20
 
 
21
struct xt_multiport_v1
 
22
{
 
23
        u_int8_t flags;                         /* Type of comparison */
 
24
        u_int8_t count;                         /* Number of ports */
 
25
        u_int16_t ports[XT_MULTI_PORTS];        /* Ports */
 
26
        u_int8_t pflags[XT_MULTI_PORTS];        /* Port flags */
 
27
        u_int8_t invert;                        /* Invert flag */
 
28
};
 
29
 
 
30
#endif /*_XT_MULTIPORT_H*/