mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-20 14:16:02 +00:00
![Laszlo Attila Toth](/assets/img/avatar_default.png)
Addrtype match has a new revision (1), which lets address type checking limited to the interface the current packet belongs to. Either incoming or outgoing interface can be used depending on the current hook. In the FORWARD hook two maches should be used if both interfaces have to be checked. The new structure is ipt_addrtype_info_v1. Revision 0 lets older userspace programs use the match as earlier. ipt_addrtype_info is used. Signed-off-by: Laszlo Attila Toth <panther@balabit.hu> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
25 lines
534 B
C
25 lines
534 B
C
#ifndef _IPT_ADDRTYPE_H
|
|
#define _IPT_ADDRTYPE_H
|
|
|
|
enum {
|
|
IPT_ADDRTYPE_INVERT_SOURCE = 0x0001,
|
|
IPT_ADDRTYPE_INVERT_DEST = 0x0002,
|
|
IPT_ADDRTYPE_LIMIT_IFACE_IN = 0x0004,
|
|
IPT_ADDRTYPE_LIMIT_IFACE_OUT = 0x0008,
|
|
};
|
|
|
|
struct ipt_addrtype_info_v1 {
|
|
u_int16_t source; /* source-type mask */
|
|
u_int16_t dest; /* dest-type mask */
|
|
u_int32_t flags;
|
|
};
|
|
|
|
/* revision 0 */
|
|
struct ipt_addrtype_info {
|
|
u_int16_t source; /* source-type mask */
|
|
u_int16_t dest; /* dest-type mask */
|
|
u_int32_t invert_source;
|
|
u_int32_t invert_dest;
|
|
};
|
|
|
|
#endif
|