linux/include/linux/netfilter_bridge/ebt_ip.h
<<
>>
Prefs
   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#define EBT_IP_SOURCE 0x01
  19#define EBT_IP_DEST 0x02
  20#define EBT_IP_TOS 0x04
  21#define EBT_IP_PROTO 0x08
  22#define EBT_IP_SPORT 0x10
  23#define EBT_IP_DPORT 0x20
  24#define EBT_IP_MASK (EBT_IP_SOURCE | EBT_IP_DEST | EBT_IP_TOS | EBT_IP_PROTO |\
  25 EBT_IP_SPORT | EBT_IP_DPORT )
  26#define EBT_IP_MATCH "ip"
  27
  28/* the same values are used for the invflags */
  29struct ebt_ip_info
  30{
  31        __be32 saddr;
  32        __be32 daddr;
  33        __be32 smsk;
  34        __be32 dmsk;
  35        uint8_t  tos;
  36        uint8_t  protocol;
  37        uint8_t  bitmask;
  38        uint8_t  invflags;
  39        uint16_t sport[2];
  40        uint16_t dport[2];
  41};
  42
  43#endif
  44