mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 04:35:12 +02:00

This revision 1 of ipv4options makes it possible to match the presence or absence of any of the 32 possible IP options, either all or any of the options the user specified.
27 lines
581 B
C
27 lines
581 B
C
#ifndef _LINUX_NETFILTER_XT_IPV4OPTIONS_H
|
|
#define _LINUX_NETFILTER_XT_IPV4OPTIONS_H 1
|
|
|
|
/* IPv4 allows for a 5-bit option number - 32 options */
|
|
|
|
/**
|
|
* %XT_V4OPTS_ALL: all options in @map must be present (respecting @invert)
|
|
* %XT_V4OPTS_ANY: any of the option in @map
|
|
*/
|
|
enum xt_ipv4options_flags {
|
|
XT_V4OPTS_ALL = 1 << 0,
|
|
XT_V4OPTS_ANY = 1 << 1,
|
|
};
|
|
|
|
/**
|
|
* @map: bitmask of options that should appear
|
|
* @invert: inversion map
|
|
* @flags: see above
|
|
*/
|
|
struct xt_ipv4options_mtinfo1 {
|
|
__u32 map;
|
|
__u32 invert;
|
|
__u8 flags;
|
|
};
|
|
|
|
#endif /* _LINUX_NETFILTER_XT_IPV4OPTIONS_H */
|