Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
0260c1dc
Commit
0260c1dc
authored
Jan 18, 2011
by
Jan Engelhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netfilter: xtables: use __uXX guarded types for userspace exports
Signed-off-by:
Jan Engelhardt
<
jengelh@medozas.de
>
parent
1cc34c30
Changes
30
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
121 additions
and
121 deletions
+121
-121
include/linux/netfilter_bridge/ebt_802_3.h
include/linux/netfilter_bridge/ebt_802_3.h
+12
-12
include/linux/netfilter_bridge/ebt_among.h
include/linux/netfilter_bridge/ebt_among.h
+1
-1
include/linux/netfilter_bridge/ebt_arp.h
include/linux/netfilter_bridge/ebt_arp.h
+2
-2
include/linux/netfilter_bridge/ebt_ip.h
include/linux/netfilter_bridge/ebt_ip.h
+6
-6
include/linux/netfilter_bridge/ebt_ip6.h
include/linux/netfilter_bridge/ebt_ip6.h
+8
-8
include/linux/netfilter_bridge/ebt_limit.h
include/linux/netfilter_bridge/ebt_limit.h
+4
-4
include/linux/netfilter_bridge/ebt_log.h
include/linux/netfilter_bridge/ebt_log.h
+3
-3
include/linux/netfilter_bridge/ebt_mark_m.h
include/linux/netfilter_bridge/ebt_mark_m.h
+2
-2
include/linux/netfilter_bridge/ebt_nflog.h
include/linux/netfilter_bridge/ebt_nflog.h
+5
-5
include/linux/netfilter_bridge/ebt_pkttype.h
include/linux/netfilter_bridge/ebt_pkttype.h
+2
-2
include/linux/netfilter_bridge/ebt_stp.h
include/linux/netfilter_bridge/ebt_stp.h
+12
-12
include/linux/netfilter_bridge/ebt_ulog.h
include/linux/netfilter_bridge/ebt_ulog.h
+1
-1
include/linux/netfilter_bridge/ebt_vlan.h
include/linux/netfilter_bridge/ebt_vlan.h
+4
-4
include/linux/netfilter_ipv4/ipt_CLUSTERIP.h
include/linux/netfilter_ipv4/ipt_CLUSTERIP.h
+7
-7
include/linux/netfilter_ipv4/ipt_ECN.h
include/linux/netfilter_ipv4/ipt_ECN.h
+3
-3
include/linux/netfilter_ipv4/ipt_SAME.h
include/linux/netfilter_ipv4/ipt_SAME.h
+3
-3
include/linux/netfilter_ipv4/ipt_TTL.h
include/linux/netfilter_ipv4/ipt_TTL.h
+2
-2
include/linux/netfilter_ipv4/ipt_addrtype.h
include/linux/netfilter_ipv4/ipt_addrtype.h
+7
-7
include/linux/netfilter_ipv4/ipt_ah.h
include/linux/netfilter_ipv4/ipt_ah.h
+2
-2
include/linux/netfilter_ipv4/ipt_ecn.h
include/linux/netfilter_ipv4/ipt_ecn.h
+4
-4
include/linux/netfilter_ipv4/ipt_ttl.h
include/linux/netfilter_ipv4/ipt_ttl.h
+2
-2
include/linux/netfilter_ipv6/ip6t_HL.h
include/linux/netfilter_ipv6/ip6t_HL.h
+2
-2
include/linux/netfilter_ipv6/ip6t_REJECT.h
include/linux/netfilter_ipv6/ip6t_REJECT.h
+1
-1
include/linux/netfilter_ipv6/ip6t_ah.h
include/linux/netfilter_ipv6/ip6t_ah.h
+4
-4
include/linux/netfilter_ipv6/ip6t_frag.h
include/linux/netfilter_ipv6/ip6t_frag.h
+4
-4
include/linux/netfilter_ipv6/ip6t_hl.h
include/linux/netfilter_ipv6/ip6t_hl.h
+2
-2
include/linux/netfilter_ipv6/ip6t_ipv6header.h
include/linux/netfilter_ipv6/ip6t_ipv6header.h
+3
-3
include/linux/netfilter_ipv6/ip6t_mh.h
include/linux/netfilter_ipv6/ip6t_mh.h
+2
-2
include/linux/netfilter_ipv6/ip6t_opts.h
include/linux/netfilter_ipv6/ip6t_opts.h
+5
-5
include/linux/netfilter_ipv6/ip6t_rt.h
include/linux/netfilter_ipv6/ip6t_rt.h
+6
-6
No files found.
include/linux/netfilter_bridge/ebt_802_3.h
View file @
0260c1dc
...
@@ -24,24 +24,24 @@
...
@@ -24,24 +24,24 @@
/* ui has one byte ctrl, ni has two */
/* ui has one byte ctrl, ni has two */
struct
hdr_ui
{
struct
hdr_ui
{
uint8_t
dsap
;
__u8
dsap
;
uint8_t
ssap
;
__u8
ssap
;
uint8_t
ctrl
;
__u8
ctrl
;
uint8_t
orig
[
3
];
__u8
orig
[
3
];
__be16
type
;
__be16
type
;
};
};
struct
hdr_ni
{
struct
hdr_ni
{
uint8_t
dsap
;
__u8
dsap
;
uint8_t
ssap
;
__u8
ssap
;
__be16
ctrl
;
__be16
ctrl
;
uint8_t
orig
[
3
];
__u8
orig
[
3
];
__be16
type
;
__be16
type
;
};
};
struct
ebt_802_3_hdr
{
struct
ebt_802_3_hdr
{
uint8_t
daddr
[
6
];
__u8
daddr
[
6
];
uint8_t
saddr
[
6
];
__u8
saddr
[
6
];
__be16
len
;
__be16
len
;
union
{
union
{
struct
hdr_ui
ui
;
struct
hdr_ui
ui
;
...
@@ -59,10 +59,10 @@ static inline struct ebt_802_3_hdr *ebt_802_3_hdr(const struct sk_buff *skb)
...
@@ -59,10 +59,10 @@ static inline struct ebt_802_3_hdr *ebt_802_3_hdr(const struct sk_buff *skb)
#endif
#endif
struct
ebt_802_3_info
{
struct
ebt_802_3_info
{
uint8_t
sap
;
__u8
sap
;
__be16
type
;
__be16
type
;
uint8_t
bitmask
;
__u8
bitmask
;
uint8_t
invflags
;
__u8
invflags
;
};
};
#endif
#endif
include/linux/netfilter_bridge/ebt_among.h
View file @
0260c1dc
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
*/
*/
struct
ebt_mac_wormhash_tuple
{
struct
ebt_mac_wormhash_tuple
{
uint32_t
cmp
[
2
];
__u32
cmp
[
2
];
__be32
ip
;
__be32
ip
;
};
};
...
...
include/linux/netfilter_bridge/ebt_arp.h
View file @
0260c1dc
...
@@ -27,8 +27,8 @@ struct ebt_arp_info
...
@@ -27,8 +27,8 @@ struct ebt_arp_info
unsigned
char
smmsk
[
ETH_ALEN
];
unsigned
char
smmsk
[
ETH_ALEN
];
unsigned
char
dmaddr
[
ETH_ALEN
];
unsigned
char
dmaddr
[
ETH_ALEN
];
unsigned
char
dmmsk
[
ETH_ALEN
];
unsigned
char
dmmsk
[
ETH_ALEN
];
uint8_t
bitmask
;
__u8
bitmask
;
uint8_t
invflags
;
__u8
invflags
;
};
};
#endif
#endif
include/linux/netfilter_bridge/ebt_ip.h
View file @
0260c1dc
...
@@ -31,12 +31,12 @@ struct ebt_ip_info {
...
@@ -31,12 +31,12 @@ struct ebt_ip_info {
__be32
daddr
;
__be32
daddr
;
__be32
smsk
;
__be32
smsk
;
__be32
dmsk
;
__be32
dmsk
;
uint8_t
tos
;
__u8
tos
;
uint8_t
protocol
;
__u8
protocol
;
uint8_t
bitmask
;
__u8
bitmask
;
uint8_t
invflags
;
__u8
invflags
;
uint16_t
sport
[
2
];
__u16
sport
[
2
];
uint16_t
dport
[
2
];
__u16
dport
[
2
];
};
};
#endif
#endif
include/linux/netfilter_bridge/ebt_ip6.h
View file @
0260c1dc
...
@@ -31,17 +31,17 @@ struct ebt_ip6_info {
...
@@ -31,17 +31,17 @@ struct ebt_ip6_info {
struct
in6_addr
daddr
;
struct
in6_addr
daddr
;
struct
in6_addr
smsk
;
struct
in6_addr
smsk
;
struct
in6_addr
dmsk
;
struct
in6_addr
dmsk
;
uint8_t
tclass
;
__u8
tclass
;
uint8_t
protocol
;
__u8
protocol
;
uint8_t
bitmask
;
__u8
bitmask
;
uint8_t
invflags
;
__u8
invflags
;
union
{
union
{
uint16_t
sport
[
2
];
__u16
sport
[
2
];
uint8_t
icmpv6_type
[
2
];
__u8
icmpv6_type
[
2
];
};
};
union
{
union
{
uint16_t
dport
[
2
];
__u16
dport
[
2
];
uint8_t
icmpv6_code
[
2
];
__u8
icmpv6_code
[
2
];
};
};
};
};
...
...
include/linux/netfilter_bridge/ebt_limit.h
View file @
0260c1dc
...
@@ -10,13 +10,13 @@
...
@@ -10,13 +10,13 @@
seconds, or one every 59 hours. */
seconds, or one every 59 hours. */
struct
ebt_limit_info
{
struct
ebt_limit_info
{
u_int32_t
avg
;
/* Average secs between packets * scale */
__u32
avg
;
/* Average secs between packets * scale */
u_int32_t
burst
;
/* Period multiplier for upper limit. */
__u32
burst
;
/* Period multiplier for upper limit. */
/* Used internally by the kernel */
/* Used internally by the kernel */
unsigned
long
prev
;
unsigned
long
prev
;
u_int32_t
credit
;
__u32
credit
;
u_int32_t
credit_cap
,
cost
;
__u32
credit_cap
,
cost
;
};
};
#endif
#endif
include/linux/netfilter_bridge/ebt_log.h
View file @
0260c1dc
...
@@ -10,9 +10,9 @@
...
@@ -10,9 +10,9 @@
#define EBT_LOG_WATCHER "log"
#define EBT_LOG_WATCHER "log"
struct
ebt_log_info
{
struct
ebt_log_info
{
uint8_t
loglevel
;
__u8
loglevel
;
uint8_t
prefix
[
EBT_LOG_PREFIX_SIZE
];
__u8
prefix
[
EBT_LOG_PREFIX_SIZE
];
uint32_t
bitmask
;
__u32
bitmask
;
};
};
#endif
#endif
include/linux/netfilter_bridge/ebt_mark_m.h
View file @
0260c1dc
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
#define EBT_MARK_MASK (EBT_MARK_AND | EBT_MARK_OR)
#define EBT_MARK_MASK (EBT_MARK_AND | EBT_MARK_OR)
struct
ebt_mark_m_info
{
struct
ebt_mark_m_info
{
unsigned
long
mark
,
mask
;
unsigned
long
mark
,
mask
;
uint8_t
invert
;
__u8
invert
;
uint8_t
bitmask
;
__u8
bitmask
;
};
};
#define EBT_MARK_MATCH "mark_m"
#define EBT_MARK_MATCH "mark_m"
...
...
include/linux/netfilter_bridge/ebt_nflog.h
View file @
0260c1dc
...
@@ -10,11 +10,11 @@
...
@@ -10,11 +10,11 @@
#define EBT_NFLOG_DEFAULT_THRESHOLD 1
#define EBT_NFLOG_DEFAULT_THRESHOLD 1
struct
ebt_nflog_info
{
struct
ebt_nflog_info
{
u_int32_t
len
;
__u32
len
;
u_int16_t
group
;
__u16
group
;
u_int16_t
threshold
;
__u16
threshold
;
u_int16_t
flags
;
__u16
flags
;
u_int16_t
pad
;
__u16
pad
;
char
prefix
[
EBT_NFLOG_PREFIX_SIZE
];
char
prefix
[
EBT_NFLOG_PREFIX_SIZE
];
};
};
...
...
include/linux/netfilter_bridge/ebt_pkttype.h
View file @
0260c1dc
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
#define __LINUX_BRIDGE_EBT_PKTTYPE_H
#define __LINUX_BRIDGE_EBT_PKTTYPE_H
struct
ebt_pkttype_info
{
struct
ebt_pkttype_info
{
uint8_t
pkt_type
;
__u8
pkt_type
;
uint8_t
invert
;
__u8
invert
;
};
};
#define EBT_PKTTYPE_MATCH "pkttype"
#define EBT_PKTTYPE_MATCH "pkttype"
...
...
include/linux/netfilter_bridge/ebt_stp.h
View file @
0260c1dc
...
@@ -21,24 +21,24 @@
...
@@ -21,24 +21,24 @@
#define EBT_STP_MATCH "stp"
#define EBT_STP_MATCH "stp"
struct
ebt_stp_config_info
{
struct
ebt_stp_config_info
{
uint8_t
flags
;
__u8
flags
;
uint16_t
root_priol
,
root_priou
;
__u16
root_priol
,
root_priou
;
char
root_addr
[
6
],
root_addrmsk
[
6
];
char
root_addr
[
6
],
root_addrmsk
[
6
];
uint32_t
root_costl
,
root_costu
;
__u32
root_costl
,
root_costu
;
uint16_t
sender_priol
,
sender_priou
;
__u16
sender_priol
,
sender_priou
;
char
sender_addr
[
6
],
sender_addrmsk
[
6
];
char
sender_addr
[
6
],
sender_addrmsk
[
6
];
uint16_t
portl
,
portu
;
__u16
portl
,
portu
;
uint16_t
msg_agel
,
msg_ageu
;
__u16
msg_agel
,
msg_ageu
;
uint16_t
max_agel
,
max_ageu
;
__u16
max_agel
,
max_ageu
;
uint16_t
hello_timel
,
hello_timeu
;
__u16
hello_timel
,
hello_timeu
;
uint16_t
forward_delayl
,
forward_delayu
;
__u16
forward_delayl
,
forward_delayu
;
};
};
struct
ebt_stp_info
{
struct
ebt_stp_info
{
uint8_t
type
;
__u8
type
;
struct
ebt_stp_config_info
config
;
struct
ebt_stp_config_info
config
;
uint16_t
bitmask
;
__u16
bitmask
;
uint16_t
invflags
;
__u16
invflags
;
};
};
#endif
#endif
include/linux/netfilter_bridge/ebt_ulog.h
View file @
0260c1dc
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
#define EBT_ULOG_VERSION 1
#define EBT_ULOG_VERSION 1
struct
ebt_ulog_info
{
struct
ebt_ulog_info
{
uint32_t
nlgroup
;
__u32
nlgroup
;
unsigned
int
cprange
;
unsigned
int
cprange
;
unsigned
int
qthreshold
;
unsigned
int
qthreshold
;
char
prefix
[
EBT_ULOG_PREFIX_LEN
];
char
prefix
[
EBT_ULOG_PREFIX_LEN
];
...
...
include/linux/netfilter_bridge/ebt_vlan.h
View file @
0260c1dc
...
@@ -8,12 +8,12 @@
...
@@ -8,12 +8,12 @@
#define EBT_VLAN_MATCH "vlan"
#define EBT_VLAN_MATCH "vlan"
struct
ebt_vlan_info
{
struct
ebt_vlan_info
{
uint16_t
id
;
/* VLAN ID {1-4095} */
__u16
id
;
/* VLAN ID {1-4095} */
uint8_t
prio
;
/* VLAN User Priority {0-7} */
__u8
prio
;
/* VLAN User Priority {0-7} */
__be16
encap
;
/* VLAN Encapsulated frame code {0-65535} */
__be16
encap
;
/* VLAN Encapsulated frame code {0-65535} */
uint8_t
bitmask
;
/* Args bitmask bit 1=1 - ID arg,
__u8
bitmask
;
/* Args bitmask bit 1=1 - ID arg,
bit 2=1 User-Priority arg, bit 3=1 encap*/
bit 2=1 User-Priority arg, bit 3=1 encap*/
uint8_t
invflags
;
/* Inverse bitmask bit 1=1 - inversed ID arg,
__u8
invflags
;
/* Inverse bitmask bit 1=1 - inversed ID arg,
bit 2=1 - inversed Pirority arg */
bit 2=1 - inversed Pirority arg */
};
};
...
...
include/linux/netfilter_ipv4/ipt_CLUSTERIP.h
View file @
0260c1dc
...
@@ -17,15 +17,15 @@ struct clusterip_config;
...
@@ -17,15 +17,15 @@ struct clusterip_config;
struct
ipt_clusterip_tgt_info
{
struct
ipt_clusterip_tgt_info
{
u_int32_t
flags
;
__u32
flags
;
/* only relevant for new ones */
/* only relevant for new ones */
u_int8_t
clustermac
[
6
];
__u8
clustermac
[
6
];
u_int16_t
num_total_nodes
;
__u16
num_total_nodes
;
u_int16_t
num_local_nodes
;
__u16
num_local_nodes
;
u_int16_t
local_nodes
[
CLUSTERIP_MAX_NODES
];
__u16
local_nodes
[
CLUSTERIP_MAX_NODES
];
u_int32_t
hash_mode
;
__u32
hash_mode
;
u_int32_t
hash_initval
;
__u32
hash_initval
;
/* Used internally by the kernel */
/* Used internally by the kernel */
struct
clusterip_config
*
config
;
struct
clusterip_config
*
config
;
...
...
include/linux/netfilter_ipv4/ipt_ECN.h
View file @
0260c1dc
...
@@ -19,11 +19,11 @@
...
@@ -19,11 +19,11 @@
#define IPT_ECN_OP_MASK 0xce
#define IPT_ECN_OP_MASK 0xce
struct
ipt_ECN_info
{
struct
ipt_ECN_info
{
u_int8_t
operation
;
/* bitset of operations */
__u8
operation
;
/* bitset of operations */
u_int8_t
ip_ect
;
/* ECT codepoint of IPv4 header, pre-shifted */
__u8
ip_ect
;
/* ECT codepoint of IPv4 header, pre-shifted */
union
{
union
{
struct
{
struct
{
u_int8_t
ece
:
1
,
cwr
:
1
;
/* TCP ECT bits */
__u8
ece
:
1
,
cwr
:
1
;
/* TCP ECT bits */
}
tcp
;
}
tcp
;
}
proto
;
}
proto
;
};
};
...
...
include/linux/netfilter_ipv4/ipt_SAME.h
View file @
0260c1dc
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
struct
ipt_same_info
{
struct
ipt_same_info
{
unsigned
char
info
;
unsigned
char
info
;
u_int32_t
rangesize
;
__u32
rangesize
;
u_int32_t
ipnum
;
__u32
ipnum
;
u_int32_t
*
iparray
;
__u32
*
iparray
;
/* hangs off end. */
/* hangs off end. */
struct
nf_nat_range
range
[
IPT_SAME_MAX_RANGE
];
struct
nf_nat_range
range
[
IPT_SAME_MAX_RANGE
];
...
...
include/linux/netfilter_ipv4/ipt_TTL.h
View file @
0260c1dc
...
@@ -13,8 +13,8 @@ enum {
...
@@ -13,8 +13,8 @@ enum {
#define IPT_TTL_MAXMODE IPT_TTL_DEC
#define IPT_TTL_MAXMODE IPT_TTL_DEC
struct
ipt_TTL_info
{
struct
ipt_TTL_info
{
u_int8_t
mode
;
__u8
mode
;
u_int8_t
ttl
;
__u8
ttl
;
};
};
...
...
include/linux/netfilter_ipv4/ipt_addrtype.h
View file @
0260c1dc
...
@@ -9,17 +9,17 @@ enum {
...
@@ -9,17 +9,17 @@ enum {
};
};
struct
ipt_addrtype_info_v1
{
struct
ipt_addrtype_info_v1
{
u_int16_t
source
;
/* source-type mask */
__u16
source
;
/* source-type mask */
u_int16_t
dest
;
/* dest-type mask */
__u16
dest
;
/* dest-type mask */
u_int32_t
flags
;
__u32
flags
;
};
};
/* revision 0 */
/* revision 0 */
struct
ipt_addrtype_info
{
struct
ipt_addrtype_info
{
u_int16_t
source
;
/* source-type mask */
__u16
source
;
/* source-type mask */
u_int16_t
dest
;
/* dest-type mask */
__u16
dest
;
/* dest-type mask */
u_int32_t
invert_source
;
__u32
invert_source
;
u_int32_t
invert_dest
;
__u32
invert_dest
;
};
};
#endif
#endif
include/linux/netfilter_ipv4/ipt_ah.h
View file @
0260c1dc
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
#define _IPT_AH_H
#define _IPT_AH_H
struct
ipt_ah
{
struct
ipt_ah
{
u_int32_t
spis
[
2
];
/* Security Parameter Index */
__u32
spis
[
2
];
/* Security Parameter Index */
u_int8_t
invflags
;
/* Inverse flags */
__u8
invflags
;
/* Inverse flags */
};
};
...
...
include/linux/netfilter_ipv4/ipt_ecn.h
View file @
0260c1dc
...
@@ -20,12 +20,12 @@
...
@@ -20,12 +20,12 @@
/* match info */
/* match info */
struct
ipt_ecn_info
{
struct
ipt_ecn_info
{
u_int8_t
operation
;
__u8
operation
;
u_int8_t
invert
;
__u8
invert
;
u_int8_t
ip_ect
;
__u8
ip_ect
;
union
{
union
{
struct
{
struct
{
u_int8_t
ect
;
__u8
ect
;
}
tcp
;
}
tcp
;
}
proto
;
}
proto
;
};
};
...
...
include/linux/netfilter_ipv4/ipt_ttl.h
View file @
0260c1dc
...
@@ -13,8 +13,8 @@ enum {
...
@@ -13,8 +13,8 @@ enum {
struct
ipt_ttl_info
{
struct
ipt_ttl_info
{
u_int8_t
mode
;
__u8
mode
;
u_int8_t
ttl
;
__u8
ttl
;
};
};
...
...
include/linux/netfilter_ipv6/ip6t_HL.h
View file @
0260c1dc
...
@@ -14,8 +14,8 @@ enum {
...
@@ -14,8 +14,8 @@ enum {
#define IP6T_HL_MAXMODE IP6T_HL_DEC
#define IP6T_HL_MAXMODE IP6T_HL_DEC
struct
ip6t_HL_info
{
struct
ip6t_HL_info
{
u_int8_t
mode
;
__u8
mode
;
u_int8_t
hop_limit
;
__u8
hop_limit
;
};
};
...
...
include/linux/netfilter_ipv6/ip6t_REJECT.h
View file @
0260c1dc
...
@@ -12,7 +12,7 @@ enum ip6t_reject_with {
...
@@ -12,7 +12,7 @@ enum ip6t_reject_with {
};
};
struct
ip6t_reject_info
{
struct
ip6t_reject_info
{
u_int32_t
with
;
/* reject type */
__u32
with
;
/* reject type */
};
};
#endif
/*_IP6T_REJECT_H*/
#endif
/*_IP6T_REJECT_H*/
include/linux/netfilter_ipv6/ip6t_ah.h
View file @
0260c1dc
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
#define _IP6T_AH_H
#define _IP6T_AH_H
struct
ip6t_ah
{
struct
ip6t_ah
{
u_int32_t
spis
[
2
];
/* Security Parameter Index */
__u32
spis
[
2
];
/* Security Parameter Index */
u_int32_t
hdrlen
;
/* Header Length */
__u32
hdrlen
;
/* Header Length */
u_int8_t
hdrres
;
/* Test of the Reserved Filed */
__u8
hdrres
;
/* Test of the Reserved Filed */
u_int8_t
invflags
;
/* Inverse flags */
__u8
invflags
;
/* Inverse flags */
};
};
#define IP6T_AH_SPI 0x01
#define IP6T_AH_SPI 0x01
...
...
include/linux/netfilter_ipv6/ip6t_frag.h
View file @
0260c1dc
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
#define _IP6T_FRAG_H
#define _IP6T_FRAG_H
struct
ip6t_frag
{
struct
ip6t_frag
{
u_int32_t
ids
[
2
];
/* Security Parameter Index */
__u32
ids
[
2
];
/* Security Parameter Index */
u_int32_t
hdrlen
;
/* Header Length */
__u32
hdrlen
;
/* Header Length */
u_int8_t
flags
;
/* */
__u8
flags
;
/* */
u_int8_t
invflags
;
/* Inverse flags */
__u8
invflags
;
/* Inverse flags */
};
};
#define IP6T_FRAG_IDS 0x01
#define IP6T_FRAG_IDS 0x01
...
...
include/linux/netfilter_ipv6/ip6t_hl.h
View file @
0260c1dc
...
@@ -14,8 +14,8 @@ enum {
...
@@ -14,8 +14,8 @@ enum {
struct
ip6t_hl_info
{
struct
ip6t_hl_info
{
u_int8_t
mode
;
__u8
mode
;
u_int8_t
hop_limit
;
__u8
hop_limit
;
};
};
...
...
include/linux/netfilter_ipv6/ip6t_ipv6header.h
View file @
0260c1dc
...
@@ -9,9 +9,9 @@ on whether they contain certain headers */
...
@@ -9,9 +9,9 @@ on whether they contain certain headers */
#define __IPV6HEADER_H
#define __IPV6HEADER_H
struct
ip6t_ipv6header_info
{
struct
ip6t_ipv6header_info
{
u_int8_t
matchflags
;
__u8
matchflags
;
u_int8_t
invflags
;
__u8
invflags
;
u_int8_t
modeflag
;
__u8
modeflag
;
};
};
#define MASK_HOPOPTS 128
#define MASK_HOPOPTS 128
...
...
include/linux/netfilter_ipv6/ip6t_mh.h
View file @
0260c1dc
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
/* MH matching stuff */
/* MH matching stuff */
struct
ip6t_mh
{
struct
ip6t_mh
{
u_int8_t
types
[
2
];
/* MH type range */
__u8
types
[
2
];
/* MH type range */
u_int8_t
invflags
;
/* Inverse flags */
__u8
invflags
;
/* Inverse flags */
};
};
/* Values for "invflags" field in struct ip6t_mh. */
/* Values for "invflags" field in struct ip6t_mh. */
...
...
include/linux/netfilter_ipv6/ip6t_opts.h
View file @
0260c1dc
...
@@ -4,11 +4,11 @@
...
@@ -4,11 +4,11 @@
#define IP6T_OPTS_OPTSNR 16
#define IP6T_OPTS_OPTSNR 16
struct
ip6t_opts
{
struct
ip6t_opts
{
u_int32_t
hdrlen
;
/* Header Length */
__u32
hdrlen
;
/* Header Length */
u_int8_t
flags
;
/* */
__u8
flags
;
/* */
u_int8_t
invflags
;
/* Inverse flags */
__u8
invflags
;
/* Inverse flags */
u_int16_t
opts
[
IP6T_OPTS_OPTSNR
];
/* opts */
__u16
opts
[
IP6T_OPTS_OPTSNR
];
/* opts */
u_int8_t
optsnr
;
/* Nr of OPts */
__u8
optsnr
;
/* Nr of OPts */
};
};
#define IP6T_OPTS_LEN 0x01
#define IP6T_OPTS_LEN 0x01
...
...
include/linux/netfilter_ipv6/ip6t_rt.h
View file @
0260c1dc
...
@@ -6,13 +6,13 @@
...
@@ -6,13 +6,13 @@
#define IP6T_RT_HOPS 16
#define IP6T_RT_HOPS 16
struct
ip6t_rt
{
struct
ip6t_rt
{
u_int32_t
rt_type
;
/* Routing Type */
__u32
rt_type
;
/* Routing Type */
u_int32_t
segsleft
[
2
];
/* Segments Left */
__u32
segsleft
[
2
];
/* Segments Left */
u_int32_t
hdrlen
;
/* Header Length */
__u32
hdrlen
;
/* Header Length */
u_int8_t
flags
;
/* */
__u8
flags
;
/* */
u_int8_t
invflags
;
/* Inverse flags */
__u8
invflags
;
/* Inverse flags */
struct
in6_addr
addrs
[
IP6T_RT_HOPS
];
/* Hops */
struct
in6_addr
addrs
[
IP6T_RT_HOPS
];
/* Hops */
u_int8_t
addrnr
;
/* Nr of Addresses */
__u8
addrnr
;
/* Nr of Addresses */
};
};
#define IP6T_RT_TYP 0x01
#define IP6T_RT_TYP 0x01
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment