Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __LINUX_BRIDGE_EBT_LOG_H |
| 2 | #define __LINUX_BRIDGE_EBT_LOG_H |
| 3 | |
Jan Engelhardt | 06988b0 | 2011-01-20 17:50:17 +0100 | [diff] [blame] | 4 | #include <linux/types.h> |
| 5 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | #define EBT_LOG_IP 0x01 /* if the frame is made by ip, log the ip information */ |
| 7 | #define EBT_LOG_ARP 0x02 |
Patrick McHardy | bafac2a | 2006-02-27 13:04:17 -0800 | [diff] [blame] | 8 | #define EBT_LOG_NFLOG 0x04 |
Kuo-lang Tseng | 93f6515 | 2008-06-09 15:55:45 -0700 | [diff] [blame] | 9 | #define EBT_LOG_IP6 0x08 |
| 10 | #define EBT_LOG_MASK (EBT_LOG_IP | EBT_LOG_ARP | EBT_LOG_IP6) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | #define EBT_LOG_PREFIX_SIZE 30 |
| 12 | #define EBT_LOG_WATCHER "log" |
| 13 | |
Eric Dumazet | d94d9fe | 2009-11-04 09:50:58 -0800 | [diff] [blame] | 14 | struct ebt_log_info { |
Jan Engelhardt | 0260c1d | 2011-01-18 07:33:09 +0100 | [diff] [blame] | 15 | __u8 loglevel; |
| 16 | __u8 prefix[EBT_LOG_PREFIX_SIZE]; |
| 17 | __u32 bitmask; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | #endif |