1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 /* 3 * ebt_ip 4 * 5 * Authors: 6 * Bart De Schuymer <bart.de.schuymer (at) pandora.be> 7 * 8 * April, 2002 9 * 10 * Changes: 11 * added ip-sport and ip-dport 12 * Innominate Security Technologies AG <mhopf (at) innominate.com> 13 * September, 2002 14 */ 15 16 #ifndef __LINUX_BRIDGE_EBT_IP_H 17 #define __LINUX_BRIDGE_EBT_IP_H 18 19 #include <linux/types.h> 20 21 #define EBT_IP_SOURCE 0x01 22 #define EBT_IP_DEST 0x02 23 #define EBT_IP_TOS 0x04 24 #define EBT_IP_PROTO 0x08 25 #define EBT_IP_SPORT 0x10 26 #define EBT_IP_DPORT 0x20 27 #define EBT_IP_MASK (EBT_IP_SOURCE | EBT_IP_DEST | EBT_IP_TOS | EBT_IP_PROTO |\ 28 EBT_IP_SPORT | EBT_IP_DPORT ) 29 #define EBT_IP_MATCH "ip" 30 31 /* the same values are used for the invflags */ 32 struct ebt_ip_info { 33 __be32 saddr; 34 __be32 daddr; 35 __be32 smsk; 36 __be32 dmsk; 37 __u8 tos; 38 __u8 protocol; 39 __u8 bitmask; 40 __u8 invflags; 41 __u16 sport[2]; 42 __u16 dport[2]; 43 }; 44 45 #endif 46