linux/include/linux/netfilter_bridge/ebt_ip6.h
<<
>>
Prefs
   1/*
   2 *  ebt_ip6
   3 *
   4 *      Authors:
   5 * Kuo-Lang Tseng <kuo-lang.tseng@intel.com>
   6 * Manohar Castelino <manohar.r.castelino@intel.com>
   7 *
   8 *  Jan 11, 2008
   9 *
  10 */
  11
  12#ifndef __LINUX_BRIDGE_EBT_IP6_H
  13#define __LINUX_BRIDGE_EBT_IP6_H
  14
  15#define EBT_IP6_SOURCE 0x01
  16#define EBT_IP6_DEST 0x02
  17#define EBT_IP6_TCLASS 0x04
  18#define EBT_IP6_PROTO 0x08
  19#define EBT_IP6_SPORT 0x10
  20#define EBT_IP6_DPORT 0x20
  21#define EBT_IP6_MASK (EBT_IP6_SOURCE | EBT_IP6_DEST | EBT_IP6_TCLASS |\
  22                      EBT_IP6_PROTO | EBT_IP6_SPORT | EBT_IP6_DPORT)
  23#define EBT_IP6_MATCH "ip6"
  24
  25/* the same values are used for the invflags */
  26struct ebt_ip6_info
  27{
  28        struct in6_addr saddr;
  29        struct in6_addr daddr;
  30        struct in6_addr smsk;
  31        struct in6_addr dmsk;
  32        uint8_t  tclass;
  33        uint8_t  protocol;
  34        uint8_t  bitmask;
  35        uint8_t  invflags;
  36        uint16_t sport[2];
  37        uint16_t dport[2];
  38};
  39
  40#endif
  41