~csurbhi/ubuntu/maverick/iptables/iptable-fix.600195

« back to all changes in this revision

Viewing changes to linux/include/linux/netfilter/xt_tcpudp.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_TCPUDP_H
2
 
#define _XT_TCPUDP_H
3
 
 
4
 
/* TCP matching stuff */
5
 
struct xt_tcp
6
 
{
7
 
        u_int16_t spts[2];                      /* Source port range. */
8
 
        u_int16_t dpts[2];                      /* Destination port range. */
9
 
        u_int8_t option;                        /* TCP Option iff non-zero*/
10
 
        u_int8_t flg_mask;                      /* TCP flags mask byte */
11
 
        u_int8_t flg_cmp;                       /* TCP flags compare byte */
12
 
        u_int8_t invflags;                      /* Inverse flags */
13
 
};
14
 
 
15
 
/* Values for "inv" field in struct ipt_tcp. */
16
 
#define XT_TCP_INV_SRCPT        0x01    /* Invert the sense of source ports. */
17
 
#define XT_TCP_INV_DSTPT        0x02    /* Invert the sense of dest ports. */
18
 
#define XT_TCP_INV_FLAGS        0x04    /* Invert the sense of TCP flags. */
19
 
#define XT_TCP_INV_OPTION       0x08    /* Invert the sense of option test. */
20
 
#define XT_TCP_INV_MASK         0x0F    /* All possible flags. */
21
 
 
22
 
/* UDP matching stuff */
23
 
struct xt_udp
24
 
{
25
 
        u_int16_t spts[2];                      /* Source port range. */
26
 
        u_int16_t dpts[2];                      /* Destination port range. */
27
 
        u_int8_t invflags;                      /* Inverse flags */
28
 
};
29
 
 
30
 
/* Values for "invflags" field in struct ipt_udp. */
31
 
#define XT_UDP_INV_SRCPT        0x01    /* Invert the sense of source ports. */
32
 
#define XT_UDP_INV_DSTPT        0x02    /* Invert the sense of dest ports. */
33
 
#define XT_UDP_INV_MASK 0x03    /* All possible flags. */
34
 
 
35
 
 
36
 
#endif