File: xt_length2.h

package info (click to toggle)
xtables-addons 3.13-1%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,504 kB
  • sloc: ansic: 10,717; sh: 4,481; perl: 356; makefile: 143; python: 15
file content (22 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _LINUX_NETFILTER_XT_LENGTH2_H
#define _LINUX_NETFILTER_XT_LENGTH2_H

enum {
	XT_LENGTH_INVERT = 1 << 0,

	/* IP header plus payload */
	XT_LENGTH_LAYER3 = 1 << 1,
	/* Strip IP header: */
	XT_LENGTH_LAYER4 = 1 << 2,
	/* Strip TCP/UDP/etc. header */
	XT_LENGTH_LAYER5 = 1 << 3,
	/* TCP/UDP/SCTP payload */
	XT_LENGTH_LAYER7 = 1 << 4,
};

struct xt_length_mtinfo2 {
	u_int32_t min, max;
	u_int16_t flags;
};

#endif /* _LINUX_NETFILTER_XT_LENGTH2_H */