diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-01-18 01:33:09 -0500 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-01-18 01:33:09 -0500 |
commit | 0260c1dccc6a1018f8cf2c4778dffb47fc5d1c4c (patch) | |
tree | 25d7ac63c53e38444eba069f85cdf8b76b84c410 /include/linux | |
parent | 1cc34c30be0e27d4ba8c1ce04a8a4f46c927d121 (diff) |
netfilter: xtables: use __uXX guarded types for userspace exports
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'include/linux')
30 files changed, 121 insertions, 121 deletions
diff --git a/include/linux/netfilter_bridge/ebt_802_3.h b/include/linux/netfilter_bridge/ebt_802_3.h index c73ef0b18bdc..c427764f4444 100644 --- a/include/linux/netfilter_bridge/ebt_802_3.h +++ b/include/linux/netfilter_bridge/ebt_802_3.h | |||
@@ -24,24 +24,24 @@ | |||
24 | 24 | ||
25 | /* ui has one byte ctrl, ni has two */ | 25 | /* ui has one byte ctrl, ni has two */ |
26 | struct hdr_ui { | 26 | struct hdr_ui { |
27 | uint8_t dsap; | 27 | __u8 dsap; |
28 | uint8_t ssap; | 28 | __u8 ssap; |
29 | uint8_t ctrl; | 29 | __u8 ctrl; |
30 | uint8_t orig[3]; | 30 | __u8 orig[3]; |
31 | __be16 type; | 31 | __be16 type; |
32 | }; | 32 | }; |
33 | 33 | ||
34 | struct hdr_ni { | 34 | struct hdr_ni { |
35 | uint8_t dsap; | 35 | __u8 dsap; |
36 | uint8_t ssap; | 36 | __u8 ssap; |
37 | __be16 ctrl; | 37 | __be16 ctrl; |
38 | uint8_t orig[3]; | 38 | __u8 orig[3]; |
39 | __be16 type; | 39 | __be16 type; |
40 | }; | 40 | }; |
41 | 41 | ||
42 | struct ebt_802_3_hdr { | 42 | struct ebt_802_3_hdr { |
43 | uint8_t daddr[6]; | 43 | __u8 daddr[6]; |
44 | uint8_t saddr[6]; | 44 | __u8 saddr[6]; |
45 | __be16 len; | 45 | __be16 len; |
46 | union { | 46 | union { |
47 | struct hdr_ui ui; | 47 | 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 | #endif | 59 | #endif |
60 | 60 | ||
61 | struct ebt_802_3_info { | 61 | struct ebt_802_3_info { |
62 | uint8_t sap; | 62 | __u8 sap; |
63 | __be16 type; | 63 | __be16 type; |
64 | uint8_t bitmask; | 64 | __u8 bitmask; |
65 | uint8_t invflags; | 65 | __u8 invflags; |
66 | }; | 66 | }; |
67 | 67 | ||
68 | #endif | 68 | #endif |
diff --git a/include/linux/netfilter_bridge/ebt_among.h b/include/linux/netfilter_bridge/ebt_among.h index 0009558609a7..686c9619dbc0 100644 --- a/include/linux/netfilter_bridge/ebt_among.h +++ b/include/linux/netfilter_bridge/ebt_among.h | |||
@@ -30,7 +30,7 @@ | |||
30 | */ | 30 | */ |
31 | 31 | ||
32 | struct ebt_mac_wormhash_tuple { | 32 | struct ebt_mac_wormhash_tuple { |
33 | uint32_t cmp[2]; | 33 | __u32 cmp[2]; |
34 | __be32 ip; | 34 | __be32 ip; |
35 | }; | 35 | }; |
36 | 36 | ||
diff --git a/include/linux/netfilter_bridge/ebt_arp.h b/include/linux/netfilter_bridge/ebt_arp.h index cbf4843b6b0f..e62b5af95869 100644 --- a/include/linux/netfilter_bridge/ebt_arp.h +++ b/include/linux/netfilter_bridge/ebt_arp.h | |||
@@ -27,8 +27,8 @@ struct ebt_arp_info | |||
27 | unsigned char smmsk[ETH_ALEN]; | 27 | unsigned char smmsk[ETH_ALEN]; |
28 | unsigned char dmaddr[ETH_ALEN]; | 28 | unsigned char dmaddr[ETH_ALEN]; |
29 | unsigned char dmmsk[ETH_ALEN]; | 29 | unsigned char dmmsk[ETH_ALEN]; |
30 | uint8_t bitmask; | 30 | __u8 bitmask; |
31 | uint8_t invflags; | 31 | __u8 invflags; |
32 | }; | 32 | }; |
33 | 33 | ||
34 | #endif | 34 | #endif |
diff --git a/include/linux/netfilter_bridge/ebt_ip.h b/include/linux/netfilter_bridge/ebt_ip.h index 6a708fb92241..d99de58da2c7 100644 --- a/include/linux/netfilter_bridge/ebt_ip.h +++ b/include/linux/netfilter_bridge/ebt_ip.h | |||
@@ -31,12 +31,12 @@ struct ebt_ip_info { | |||
31 | __be32 daddr; | 31 | __be32 daddr; |
32 | __be32 smsk; | 32 | __be32 smsk; |
33 | __be32 dmsk; | 33 | __be32 dmsk; |
34 | uint8_t tos; | 34 | __u8 tos; |
35 | uint8_t protocol; | 35 | __u8 protocol; |
36 | uint8_t bitmask; | 36 | __u8 bitmask; |
37 | uint8_t invflags; | 37 | __u8 invflags; |
38 | uint16_t sport[2]; | 38 | __u16 sport[2]; |
39 | uint16_t dport[2]; | 39 | __u16 dport[2]; |
40 | }; | 40 | }; |
41 | 41 | ||
42 | #endif | 42 | #endif |
diff --git a/include/linux/netfilter_bridge/ebt_ip6.h b/include/linux/netfilter_bridge/ebt_ip6.h index 22af18a3c16b..998e9d5a6b60 100644 --- a/include/linux/netfilter_bridge/ebt_ip6.h +++ b/include/linux/netfilter_bridge/ebt_ip6.h | |||
@@ -31,17 +31,17 @@ struct ebt_ip6_info { | |||
31 | struct in6_addr daddr; | 31 | struct in6_addr daddr; |
32 | struct in6_addr smsk; | 32 | struct in6_addr smsk; |
33 | struct in6_addr dmsk; | 33 | struct in6_addr dmsk; |
34 | uint8_t tclass; | 34 | __u8 tclass; |
35 | uint8_t protocol; | 35 | __u8 protocol; |
36 | uint8_t bitmask; | 36 | __u8 bitmask; |
37 | uint8_t invflags; | 37 | __u8 invflags; |
38 | union { | 38 | union { |
39 | uint16_t sport[2]; | 39 | __u16 sport[2]; |
40 | uint8_t icmpv6_type[2]; | 40 | __u8 icmpv6_type[2]; |
41 | }; | 41 | }; |
42 | union { | 42 | union { |
43 | uint16_t dport[2]; | 43 | __u16 dport[2]; |
44 | uint8_t icmpv6_code[2]; | 44 | __u8 icmpv6_code[2]; |
45 | }; | 45 | }; |
46 | }; | 46 | }; |
47 | 47 | ||
diff --git a/include/linux/netfilter_bridge/ebt_limit.h b/include/linux/netfilter_bridge/ebt_limit.h index 4bf76b751676..721d51ffa513 100644 --- a/include/linux/netfilter_bridge/ebt_limit.h +++ b/include/linux/netfilter_bridge/ebt_limit.h | |||
@@ -10,13 +10,13 @@ | |||
10 | seconds, or one every 59 hours. */ | 10 | seconds, or one every 59 hours. */ |
11 | 11 | ||
12 | struct ebt_limit_info { | 12 | struct ebt_limit_info { |
13 | u_int32_t avg; /* Average secs between packets * scale */ | 13 | __u32 avg; /* Average secs between packets * scale */ |
14 | u_int32_t burst; /* Period multiplier for upper limit. */ | 14 | __u32 burst; /* Period multiplier for upper limit. */ |
15 | 15 | ||
16 | /* Used internally by the kernel */ | 16 | /* Used internally by the kernel */ |
17 | unsigned long prev; | 17 | unsigned long prev; |
18 | u_int32_t credit; | 18 | __u32 credit; |
19 | u_int32_t credit_cap, cost; | 19 | __u32 credit_cap, cost; |
20 | }; | 20 | }; |
21 | 21 | ||
22 | #endif | 22 | #endif |
diff --git a/include/linux/netfilter_bridge/ebt_log.h b/include/linux/netfilter_bridge/ebt_log.h index cc2cdfb764bc..564beb4946ea 100644 --- a/include/linux/netfilter_bridge/ebt_log.h +++ b/include/linux/netfilter_bridge/ebt_log.h | |||
@@ -10,9 +10,9 @@ | |||
10 | #define EBT_LOG_WATCHER "log" | 10 | #define EBT_LOG_WATCHER "log" |
11 | 11 | ||
12 | struct ebt_log_info { | 12 | struct ebt_log_info { |
13 | uint8_t loglevel; | 13 | __u8 loglevel; |
14 | uint8_t prefix[EBT_LOG_PREFIX_SIZE]; | 14 | __u8 prefix[EBT_LOG_PREFIX_SIZE]; |
15 | uint32_t bitmask; | 15 | __u32 bitmask; |
16 | }; | 16 | }; |
17 | 17 | ||
18 | #endif | 18 | #endif |
diff --git a/include/linux/netfilter_bridge/ebt_mark_m.h b/include/linux/netfilter_bridge/ebt_mark_m.h index 9ceb10ec0ed6..97b96c4b8db4 100644 --- a/include/linux/netfilter_bridge/ebt_mark_m.h +++ b/include/linux/netfilter_bridge/ebt_mark_m.h | |||
@@ -6,8 +6,8 @@ | |||
6 | #define EBT_MARK_MASK (EBT_MARK_AND | EBT_MARK_OR) | 6 | #define EBT_MARK_MASK (EBT_MARK_AND | EBT_MARK_OR) |
7 | struct ebt_mark_m_info { | 7 | struct ebt_mark_m_info { |
8 | unsigned long mark, mask; | 8 | unsigned long mark, mask; |
9 | uint8_t invert; | 9 | __u8 invert; |
10 | uint8_t bitmask; | 10 | __u8 bitmask; |
11 | }; | 11 | }; |
12 | #define EBT_MARK_MATCH "mark_m" | 12 | #define EBT_MARK_MATCH "mark_m" |
13 | 13 | ||
diff --git a/include/linux/netfilter_bridge/ebt_nflog.h b/include/linux/netfilter_bridge/ebt_nflog.h index 052817849b83..477315bc3537 100644 --- a/include/linux/netfilter_bridge/ebt_nflog.h +++ b/include/linux/netfilter_bridge/ebt_nflog.h | |||
@@ -10,11 +10,11 @@ | |||
10 | #define EBT_NFLOG_DEFAULT_THRESHOLD 1 | 10 | #define EBT_NFLOG_DEFAULT_THRESHOLD 1 |
11 | 11 | ||
12 | struct ebt_nflog_info { | 12 | struct ebt_nflog_info { |
13 | u_int32_t len; | 13 | __u32 len; |
14 | u_int16_t group; | 14 | __u16 group; |
15 | u_int16_t threshold; | 15 | __u16 threshold; |
16 | u_int16_t flags; | 16 | __u16 flags; |
17 | u_int16_t pad; | 17 | __u16 pad; |
18 | char prefix[EBT_NFLOG_PREFIX_SIZE]; | 18 | char prefix[EBT_NFLOG_PREFIX_SIZE]; |
19 | }; | 19 | }; |
20 | 20 | ||
diff --git a/include/linux/netfilter_bridge/ebt_pkttype.h b/include/linux/netfilter_bridge/ebt_pkttype.h index 51a799840931..7c0fb0fdcf14 100644 --- a/include/linux/netfilter_bridge/ebt_pkttype.h +++ b/include/linux/netfilter_bridge/ebt_pkttype.h | |||
@@ -2,8 +2,8 @@ | |||
2 | #define __LINUX_BRIDGE_EBT_PKTTYPE_H | 2 | #define __LINUX_BRIDGE_EBT_PKTTYPE_H |
3 | 3 | ||
4 | struct ebt_pkttype_info { | 4 | struct ebt_pkttype_info { |
5 | uint8_t pkt_type; | 5 | __u8 pkt_type; |
6 | uint8_t invert; | 6 | __u8 invert; |
7 | }; | 7 | }; |
8 | #define EBT_PKTTYPE_MATCH "pkttype" | 8 | #define EBT_PKTTYPE_MATCH "pkttype" |
9 | 9 | ||
diff --git a/include/linux/netfilter_bridge/ebt_stp.h b/include/linux/netfilter_bridge/ebt_stp.h index e503a0aa2728..13a0bd49a92a 100644 --- a/include/linux/netfilter_bridge/ebt_stp.h +++ b/include/linux/netfilter_bridge/ebt_stp.h | |||
@@ -21,24 +21,24 @@ | |||
21 | #define EBT_STP_MATCH "stp" | 21 | #define EBT_STP_MATCH "stp" |
22 | 22 | ||
23 | struct ebt_stp_config_info { | 23 | struct ebt_stp_config_info { |
24 | uint8_t flags; | 24 | __u8 flags; |
25 | uint16_t root_priol, root_priou; | 25 | __u16 root_priol, root_priou; |
26 | char root_addr[6], root_addrmsk[6]; | 26 | char root_addr[6], root_addrmsk[6]; |
27 | uint32_t root_costl, root_costu; | 27 | __u32 root_costl, root_costu; |
28 | uint16_t sender_priol, sender_priou; | 28 | __u16 sender_priol, sender_priou; |
29 | char sender_addr[6], sender_addrmsk[6]; | 29 | char sender_addr[6], sender_addrmsk[6]; |
30 | uint16_t portl, portu; | 30 | __u16 portl, portu; |
31 | uint16_t msg_agel, msg_ageu; | 31 | __u16 msg_agel, msg_ageu; |
32 | uint16_t max_agel, max_ageu; | 32 | __u16 max_agel, max_ageu; |
33 | uint16_t hello_timel, hello_timeu; | 33 | __u16 hello_timel, hello_timeu; |
34 | uint16_t forward_delayl, forward_delayu; | 34 | __u16 forward_delayl, forward_delayu; |
35 | }; | 35 | }; |
36 | 36 | ||
37 | struct ebt_stp_info { | 37 | struct ebt_stp_info { |
38 | uint8_t type; | 38 | __u8 type; |
39 | struct ebt_stp_config_info config; | 39 | struct ebt_stp_config_info config; |
40 | uint16_t bitmask; | 40 | __u16 bitmask; |
41 | uint16_t invflags; | 41 | __u16 invflags; |
42 | }; | 42 | }; |
43 | 43 | ||
44 | #endif | 44 | #endif |
diff --git a/include/linux/netfilter_bridge/ebt_ulog.h b/include/linux/netfilter_bridge/ebt_ulog.h index b677e2671541..de35a51a7e46 100644 --- a/include/linux/netfilter_bridge/ebt_ulog.h +++ b/include/linux/netfilter_bridge/ebt_ulog.h | |||
@@ -10,7 +10,7 @@ | |||
10 | #define EBT_ULOG_VERSION 1 | 10 | #define EBT_ULOG_VERSION 1 |
11 | 11 | ||
12 | struct ebt_ulog_info { | 12 | struct ebt_ulog_info { |
13 | uint32_t nlgroup; | 13 | __u32 nlgroup; |
14 | unsigned int cprange; | 14 | unsigned int cprange; |
15 | unsigned int qthreshold; | 15 | unsigned int qthreshold; |
16 | char prefix[EBT_ULOG_PREFIX_LEN]; | 16 | char prefix[EBT_ULOG_PREFIX_LEN]; |
diff --git a/include/linux/netfilter_bridge/ebt_vlan.h b/include/linux/netfilter_bridge/ebt_vlan.h index 1d98be4031e7..48dffc1dad36 100644 --- a/include/linux/netfilter_bridge/ebt_vlan.h +++ b/include/linux/netfilter_bridge/ebt_vlan.h | |||
@@ -8,12 +8,12 @@ | |||
8 | #define EBT_VLAN_MATCH "vlan" | 8 | #define EBT_VLAN_MATCH "vlan" |
9 | 9 | ||
10 | struct ebt_vlan_info { | 10 | struct ebt_vlan_info { |
11 | uint16_t id; /* VLAN ID {1-4095} */ | 11 | __u16 id; /* VLAN ID {1-4095} */ |
12 | uint8_t prio; /* VLAN User Priority {0-7} */ | 12 | __u8 prio; /* VLAN User Priority {0-7} */ |
13 | __be16 encap; /* VLAN Encapsulated frame code {0-65535} */ | 13 | __be16 encap; /* VLAN Encapsulated frame code {0-65535} */ |
14 | uint8_t bitmask; /* Args bitmask bit 1=1 - ID arg, | 14 | __u8 bitmask; /* Args bitmask bit 1=1 - ID arg, |
15 | bit 2=1 User-Priority arg, bit 3=1 encap*/ | 15 | bit 2=1 User-Priority arg, bit 3=1 encap*/ |
16 | uint8_t invflags; /* Inverse bitmask bit 1=1 - inversed ID arg, | 16 | __u8 invflags; /* Inverse bitmask bit 1=1 - inversed ID arg, |
17 | bit 2=1 - inversed Pirority arg */ | 17 | bit 2=1 - inversed Pirority arg */ |
18 | }; | 18 | }; |
19 | 19 | ||
diff --git a/include/linux/netfilter_ipv4/ipt_CLUSTERIP.h b/include/linux/netfilter_ipv4/ipt_CLUSTERIP.h index e5a3687c8a72..3114f06939ef 100644 --- a/include/linux/netfilter_ipv4/ipt_CLUSTERIP.h +++ b/include/linux/netfilter_ipv4/ipt_CLUSTERIP.h | |||
@@ -17,15 +17,15 @@ struct clusterip_config; | |||
17 | 17 | ||
18 | struct ipt_clusterip_tgt_info { | 18 | struct ipt_clusterip_tgt_info { |
19 | 19 | ||
20 | u_int32_t flags; | 20 | __u32 flags; |
21 | 21 | ||
22 | /* only relevant for new ones */ | 22 | /* only relevant for new ones */ |
23 | u_int8_t clustermac[6]; | 23 | __u8 clustermac[6]; |
24 | u_int16_t num_total_nodes; | 24 | __u16 num_total_nodes; |
25 | u_int16_t num_local_nodes; | 25 | __u16 num_local_nodes; |
26 | u_int16_t local_nodes[CLUSTERIP_MAX_NODES]; | 26 | __u16 local_nodes[CLUSTERIP_MAX_NODES]; |
27 | u_int32_t hash_mode; | 27 | __u32 hash_mode; |
28 | u_int32_t hash_initval; | 28 | __u32 hash_initval; |
29 | 29 | ||
30 | /* Used internally by the kernel */ | 30 | /* Used internally by the kernel */ |
31 | struct clusterip_config *config; | 31 | struct clusterip_config *config; |
diff --git a/include/linux/netfilter_ipv4/ipt_ECN.h b/include/linux/netfilter_ipv4/ipt_ECN.h index 7ca45918ab8e..c6e3e01b75e0 100644 --- a/include/linux/netfilter_ipv4/ipt_ECN.h +++ b/include/linux/netfilter_ipv4/ipt_ECN.h | |||
@@ -19,11 +19,11 @@ | |||
19 | #define IPT_ECN_OP_MASK 0xce | 19 | #define IPT_ECN_OP_MASK 0xce |
20 | 20 | ||
21 | struct ipt_ECN_info { | 21 | struct ipt_ECN_info { |
22 | u_int8_t operation; /* bitset of operations */ | 22 | __u8 operation; /* bitset of operations */ |
23 | u_int8_t ip_ect; /* ECT codepoint of IPv4 header, pre-shifted */ | 23 | __u8 ip_ect; /* ECT codepoint of IPv4 header, pre-shifted */ |
24 | union { | 24 | union { |
25 | struct { | 25 | struct { |
26 | u_int8_t ece:1, cwr:1; /* TCP ECT bits */ | 26 | __u8 ece:1, cwr:1; /* TCP ECT bits */ |
27 | } tcp; | 27 | } tcp; |
28 | } proto; | 28 | } proto; |
29 | }; | 29 | }; |
diff --git a/include/linux/netfilter_ipv4/ipt_SAME.h b/include/linux/netfilter_ipv4/ipt_SAME.h index 2529660c5b38..fa0ebeca5d95 100644 --- a/include/linux/netfilter_ipv4/ipt_SAME.h +++ b/include/linux/netfilter_ipv4/ipt_SAME.h | |||
@@ -7,9 +7,9 @@ | |||
7 | 7 | ||
8 | struct ipt_same_info { | 8 | struct ipt_same_info { |
9 | unsigned char info; | 9 | unsigned char info; |
10 | u_int32_t rangesize; | 10 | __u32 rangesize; |
11 | u_int32_t ipnum; | 11 | __u32 ipnum; |
12 | u_int32_t *iparray; | 12 | __u32 *iparray; |
13 | 13 | ||
14 | /* hangs off end. */ | 14 | /* hangs off end. */ |
15 | struct nf_nat_range range[IPT_SAME_MAX_RANGE]; | 15 | struct nf_nat_range range[IPT_SAME_MAX_RANGE]; |
diff --git a/include/linux/netfilter_ipv4/ipt_TTL.h b/include/linux/netfilter_ipv4/ipt_TTL.h index ee6611edc112..f6250e422d5e 100644 --- a/include/linux/netfilter_ipv4/ipt_TTL.h +++ b/include/linux/netfilter_ipv4/ipt_TTL.h | |||
@@ -13,8 +13,8 @@ enum { | |||
13 | #define IPT_TTL_MAXMODE IPT_TTL_DEC | 13 | #define IPT_TTL_MAXMODE IPT_TTL_DEC |
14 | 14 | ||
15 | struct ipt_TTL_info { | 15 | struct ipt_TTL_info { |
16 | u_int8_t mode; | 16 | __u8 mode; |
17 | u_int8_t ttl; | 17 | __u8 ttl; |
18 | }; | 18 | }; |
19 | 19 | ||
20 | 20 | ||
diff --git a/include/linux/netfilter_ipv4/ipt_addrtype.h b/include/linux/netfilter_ipv4/ipt_addrtype.h index 446de6aef983..f29c3cfcc240 100644 --- a/include/linux/netfilter_ipv4/ipt_addrtype.h +++ b/include/linux/netfilter_ipv4/ipt_addrtype.h | |||
@@ -9,17 +9,17 @@ enum { | |||
9 | }; | 9 | }; |
10 | 10 | ||
11 | struct ipt_addrtype_info_v1 { | 11 | struct ipt_addrtype_info_v1 { |
12 | u_int16_t source; /* source-type mask */ | 12 | __u16 source; /* source-type mask */ |
13 | u_int16_t dest; /* dest-type mask */ | 13 | __u16 dest; /* dest-type mask */ |
14 | u_int32_t flags; | 14 | __u32 flags; |
15 | }; | 15 | }; |
16 | 16 | ||
17 | /* revision 0 */ | 17 | /* revision 0 */ |
18 | struct ipt_addrtype_info { | 18 | struct ipt_addrtype_info { |
19 | u_int16_t source; /* source-type mask */ | 19 | __u16 source; /* source-type mask */ |
20 | u_int16_t dest; /* dest-type mask */ | 20 | __u16 dest; /* dest-type mask */ |
21 | u_int32_t invert_source; | 21 | __u32 invert_source; |
22 | u_int32_t invert_dest; | 22 | __u32 invert_dest; |
23 | }; | 23 | }; |
24 | 24 | ||
25 | #endif | 25 | #endif |
diff --git a/include/linux/netfilter_ipv4/ipt_ah.h b/include/linux/netfilter_ipv4/ipt_ah.h index 2e555b4d05e3..8fea283ee62a 100644 --- a/include/linux/netfilter_ipv4/ipt_ah.h +++ b/include/linux/netfilter_ipv4/ipt_ah.h | |||
@@ -2,8 +2,8 @@ | |||
2 | #define _IPT_AH_H | 2 | #define _IPT_AH_H |
3 | 3 | ||
4 | struct ipt_ah { | 4 | struct ipt_ah { |
5 | u_int32_t spis[2]; /* Security Parameter Index */ | 5 | __u32 spis[2]; /* Security Parameter Index */ |
6 | u_int8_t invflags; /* Inverse flags */ | 6 | __u8 invflags; /* Inverse flags */ |
7 | }; | 7 | }; |
8 | 8 | ||
9 | 9 | ||
diff --git a/include/linux/netfilter_ipv4/ipt_ecn.h b/include/linux/netfilter_ipv4/ipt_ecn.h index 9945baa4ccd7..78b98aa8784d 100644 --- a/include/linux/netfilter_ipv4/ipt_ecn.h +++ b/include/linux/netfilter_ipv4/ipt_ecn.h | |||
@@ -20,12 +20,12 @@ | |||
20 | 20 | ||
21 | /* match info */ | 21 | /* match info */ |
22 | struct ipt_ecn_info { | 22 | struct ipt_ecn_info { |
23 | u_int8_t operation; | 23 | __u8 operation; |
24 | u_int8_t invert; | 24 | __u8 invert; |
25 | u_int8_t ip_ect; | 25 | __u8 ip_ect; |
26 | union { | 26 | union { |
27 | struct { | 27 | struct { |
28 | u_int8_t ect; | 28 | __u8 ect; |
29 | } tcp; | 29 | } tcp; |
30 | } proto; | 30 | } proto; |
31 | }; | 31 | }; |
diff --git a/include/linux/netfilter_ipv4/ipt_ttl.h b/include/linux/netfilter_ipv4/ipt_ttl.h index ee24fd86a3aa..93d9a06689a3 100644 --- a/include/linux/netfilter_ipv4/ipt_ttl.h +++ b/include/linux/netfilter_ipv4/ipt_ttl.h | |||
@@ -13,8 +13,8 @@ enum { | |||
13 | 13 | ||
14 | 14 | ||
15 | struct ipt_ttl_info { | 15 | struct ipt_ttl_info { |
16 | u_int8_t mode; | 16 | __u8 mode; |
17 | u_int8_t ttl; | 17 | __u8 ttl; |
18 | }; | 18 | }; |
19 | 19 | ||
20 | 20 | ||
diff --git a/include/linux/netfilter_ipv6/ip6t_HL.h b/include/linux/netfilter_ipv6/ip6t_HL.h index afb7813d45ab..81cdaf0480e3 100644 --- a/include/linux/netfilter_ipv6/ip6t_HL.h +++ b/include/linux/netfilter_ipv6/ip6t_HL.h | |||
@@ -14,8 +14,8 @@ enum { | |||
14 | #define IP6T_HL_MAXMODE IP6T_HL_DEC | 14 | #define IP6T_HL_MAXMODE IP6T_HL_DEC |
15 | 15 | ||
16 | struct ip6t_HL_info { | 16 | struct ip6t_HL_info { |
17 | u_int8_t mode; | 17 | __u8 mode; |
18 | u_int8_t hop_limit; | 18 | __u8 hop_limit; |
19 | }; | 19 | }; |
20 | 20 | ||
21 | 21 | ||
diff --git a/include/linux/netfilter_ipv6/ip6t_REJECT.h b/include/linux/netfilter_ipv6/ip6t_REJECT.h index 6be6504162bb..b999aa4e5969 100644 --- a/include/linux/netfilter_ipv6/ip6t_REJECT.h +++ b/include/linux/netfilter_ipv6/ip6t_REJECT.h | |||
@@ -12,7 +12,7 @@ enum ip6t_reject_with { | |||
12 | }; | 12 | }; |
13 | 13 | ||
14 | struct ip6t_reject_info { | 14 | struct ip6t_reject_info { |
15 | u_int32_t with; /* reject type */ | 15 | __u32 with; /* reject type */ |
16 | }; | 16 | }; |
17 | 17 | ||
18 | #endif /*_IP6T_REJECT_H*/ | 18 | #endif /*_IP6T_REJECT_H*/ |
diff --git a/include/linux/netfilter_ipv6/ip6t_ah.h b/include/linux/netfilter_ipv6/ip6t_ah.h index 17a745cfb2c7..a602c165edd1 100644 --- a/include/linux/netfilter_ipv6/ip6t_ah.h +++ b/include/linux/netfilter_ipv6/ip6t_ah.h | |||
@@ -2,10 +2,10 @@ | |||
2 | #define _IP6T_AH_H | 2 | #define _IP6T_AH_H |
3 | 3 | ||
4 | struct ip6t_ah { | 4 | struct ip6t_ah { |
5 | u_int32_t spis[2]; /* Security Parameter Index */ | 5 | __u32 spis[2]; /* Security Parameter Index */ |
6 | u_int32_t hdrlen; /* Header Length */ | 6 | __u32 hdrlen; /* Header Length */ |
7 | u_int8_t hdrres; /* Test of the Reserved Filed */ | 7 | __u8 hdrres; /* Test of the Reserved Filed */ |
8 | u_int8_t invflags; /* Inverse flags */ | 8 | __u8 invflags; /* Inverse flags */ |
9 | }; | 9 | }; |
10 | 10 | ||
11 | #define IP6T_AH_SPI 0x01 | 11 | #define IP6T_AH_SPI 0x01 |
diff --git a/include/linux/netfilter_ipv6/ip6t_frag.h b/include/linux/netfilter_ipv6/ip6t_frag.h index 3724d0850920..538b31ef5e3d 100644 --- a/include/linux/netfilter_ipv6/ip6t_frag.h +++ b/include/linux/netfilter_ipv6/ip6t_frag.h | |||
@@ -2,10 +2,10 @@ | |||
2 | #define _IP6T_FRAG_H | 2 | #define _IP6T_FRAG_H |
3 | 3 | ||
4 | struct ip6t_frag { | 4 | struct ip6t_frag { |
5 | u_int32_t ids[2]; /* Security Parameter Index */ | 5 | __u32 ids[2]; /* Security Parameter Index */ |
6 | u_int32_t hdrlen; /* Header Length */ | 6 | __u32 hdrlen; /* Header Length */ |
7 | u_int8_t flags; /* */ | 7 | __u8 flags; /* */ |
8 | u_int8_t invflags; /* Inverse flags */ | 8 | __u8 invflags; /* Inverse flags */ |
9 | }; | 9 | }; |
10 | 10 | ||
11 | #define IP6T_FRAG_IDS 0x01 | 11 | #define IP6T_FRAG_IDS 0x01 |
diff --git a/include/linux/netfilter_ipv6/ip6t_hl.h b/include/linux/netfilter_ipv6/ip6t_hl.h index 5ef91b8319a8..c6fddcb971da 100644 --- a/include/linux/netfilter_ipv6/ip6t_hl.h +++ b/include/linux/netfilter_ipv6/ip6t_hl.h | |||
@@ -14,8 +14,8 @@ enum { | |||
14 | 14 | ||
15 | 15 | ||
16 | struct ip6t_hl_info { | 16 | struct ip6t_hl_info { |
17 | u_int8_t mode; | 17 | __u8 mode; |
18 | u_int8_t hop_limit; | 18 | __u8 hop_limit; |
19 | }; | 19 | }; |
20 | 20 | ||
21 | 21 | ||
diff --git a/include/linux/netfilter_ipv6/ip6t_ipv6header.h b/include/linux/netfilter_ipv6/ip6t_ipv6header.h index 01dfd445596a..73d53bd3ff62 100644 --- a/include/linux/netfilter_ipv6/ip6t_ipv6header.h +++ b/include/linux/netfilter_ipv6/ip6t_ipv6header.h | |||
@@ -9,9 +9,9 @@ on whether they contain certain headers */ | |||
9 | #define __IPV6HEADER_H | 9 | #define __IPV6HEADER_H |
10 | 10 | ||
11 | struct ip6t_ipv6header_info { | 11 | struct ip6t_ipv6header_info { |
12 | u_int8_t matchflags; | 12 | __u8 matchflags; |
13 | u_int8_t invflags; | 13 | __u8 invflags; |
14 | u_int8_t modeflag; | 14 | __u8 modeflag; |
15 | }; | 15 | }; |
16 | 16 | ||
17 | #define MASK_HOPOPTS 128 | 17 | #define MASK_HOPOPTS 128 |
diff --git a/include/linux/netfilter_ipv6/ip6t_mh.h b/include/linux/netfilter_ipv6/ip6t_mh.h index 18549bca2d1f..98c8cf685eea 100644 --- a/include/linux/netfilter_ipv6/ip6t_mh.h +++ b/include/linux/netfilter_ipv6/ip6t_mh.h | |||
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | /* MH matching stuff */ | 4 | /* MH matching stuff */ |
5 | struct ip6t_mh { | 5 | struct ip6t_mh { |
6 | u_int8_t types[2]; /* MH type range */ | 6 | __u8 types[2]; /* MH type range */ |
7 | u_int8_t invflags; /* Inverse flags */ | 7 | __u8 invflags; /* Inverse flags */ |
8 | }; | 8 | }; |
9 | 9 | ||
10 | /* Values for "invflags" field in struct ip6t_mh. */ | 10 | /* Values for "invflags" field in struct ip6t_mh. */ |
diff --git a/include/linux/netfilter_ipv6/ip6t_opts.h b/include/linux/netfilter_ipv6/ip6t_opts.h index 62d89bcd9f9c..405d309cd741 100644 --- a/include/linux/netfilter_ipv6/ip6t_opts.h +++ b/include/linux/netfilter_ipv6/ip6t_opts.h | |||
@@ -4,11 +4,11 @@ | |||
4 | #define IP6T_OPTS_OPTSNR 16 | 4 | #define IP6T_OPTS_OPTSNR 16 |
5 | 5 | ||
6 | struct ip6t_opts { | 6 | struct ip6t_opts { |
7 | u_int32_t hdrlen; /* Header Length */ | 7 | __u32 hdrlen; /* Header Length */ |
8 | u_int8_t flags; /* */ | 8 | __u8 flags; /* */ |
9 | u_int8_t invflags; /* Inverse flags */ | 9 | __u8 invflags; /* Inverse flags */ |
10 | u_int16_t opts[IP6T_OPTS_OPTSNR]; /* opts */ | 10 | __u16 opts[IP6T_OPTS_OPTSNR]; /* opts */ |
11 | u_int8_t optsnr; /* Nr of OPts */ | 11 | __u8 optsnr; /* Nr of OPts */ |
12 | }; | 12 | }; |
13 | 13 | ||
14 | #define IP6T_OPTS_LEN 0x01 | 14 | #define IP6T_OPTS_LEN 0x01 |
diff --git a/include/linux/netfilter_ipv6/ip6t_rt.h b/include/linux/netfilter_ipv6/ip6t_rt.h index ab91bfd2cd00..e8dad20acd37 100644 --- a/include/linux/netfilter_ipv6/ip6t_rt.h +++ b/include/linux/netfilter_ipv6/ip6t_rt.h | |||
@@ -6,13 +6,13 @@ | |||
6 | #define IP6T_RT_HOPS 16 | 6 | #define IP6T_RT_HOPS 16 |
7 | 7 | ||
8 | struct ip6t_rt { | 8 | struct ip6t_rt { |
9 | u_int32_t rt_type; /* Routing Type */ | 9 | __u32 rt_type; /* Routing Type */ |
10 | u_int32_t segsleft[2]; /* Segments Left */ | 10 | __u32 segsleft[2]; /* Segments Left */ |
11 | u_int32_t hdrlen; /* Header Length */ | 11 | __u32 hdrlen; /* Header Length */ |
12 | u_int8_t flags; /* */ | 12 | __u8 flags; /* */ |
13 | u_int8_t invflags; /* Inverse flags */ | 13 | __u8 invflags; /* Inverse flags */ |
14 | struct in6_addr addrs[IP6T_RT_HOPS]; /* Hops */ | 14 | struct in6_addr addrs[IP6T_RT_HOPS]; /* Hops */ |
15 | u_int8_t addrnr; /* Nr of Addresses */ | 15 | __u8 addrnr; /* Nr of Addresses */ |
16 | }; | 16 | }; |
17 | 17 | ||
18 | #define IP6T_RT_TYP 0x01 | 18 | #define IP6T_RT_TYP 0x01 |