mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
9291747f11
Add a new 'devgroup' match to match on the device group of the incoming and outgoing network device of a packet. Signed-off-by: Patrick McHardy <kaber@trash.net>
21 lines
366 B
C
21 lines
366 B
C
#ifndef _XT_DEVGROUP_H
|
|
#define _XT_DEVGROUP_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
enum xt_devgroup_flags {
|
|
XT_DEVGROUP_MATCH_SRC = 0x1,
|
|
XT_DEVGROUP_INVERT_SRC = 0x2,
|
|
XT_DEVGROUP_MATCH_DST = 0x4,
|
|
XT_DEVGROUP_INVERT_DST = 0x8,
|
|
};
|
|
|
|
struct xt_devgroup_info {
|
|
__u32 flags;
|
|
__u32 src_group;
|
|
__u32 src_mask;
|
|
__u32 dst_group;
|
|
__u32 dst_mask;
|
|
};
|
|
|
|
#endif /* _XT_DEVGROUP_H */
|