• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/iptables-1.x/include/linux/netfilter_ipv4/
1#ifndef _IPT_MULTIPORT_H
2#define _IPT_MULTIPORT_H
3
4enum ipt_multiport_flags
5{
6	IPT_MULTIPORT_SOURCE,
7	IPT_MULTIPORT_DESTINATION,
8	IPT_MULTIPORT_EITHER
9};
10
11#define IPT_MULTI_PORTS	15
12
13/* Must fit inside union ipt_matchinfo: 16 bytes */
14struct ipt_multiport
15{
16	u_int8_t flags;				/* Type of comparison */
17	u_int8_t count;				/* Number of ports */
18	u_int16_t ports[IPT_MULTI_PORTS];	/* Ports */
19};
20
21struct ipt_multiport_v1
22{
23	u_int8_t flags;				/* Type of comparison */
24	u_int8_t count;				/* Number of ports */
25	u_int16_t ports[IPT_MULTI_PORTS];	/* Ports */
26	u_int8_t pflags[IPT_MULTI_PORTS];	/* Port flags */
27	u_int8_t invert;			/* Invert flag */
28};
29#endif /*_IPT_MULTIPORT_H*/
30