These types are guaranteed to be defined by <linux/types.h> for
both userland and kernel, unlike u_intN_t.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
struct in_addr smsk, tmsk;
/* Device hw address length, src+target device addresses */
struct in_addr smsk, tmsk;
/* Device hw address length, src+target device addresses */
- u_int8_t arhln, arhln_mask;
+ __u8 arhln, arhln_mask;
struct arpt_devaddr_info src_devaddr;
struct arpt_devaddr_info tgt_devaddr;
struct arpt_devaddr_info src_devaddr;
struct arpt_devaddr_info tgt_devaddr;
unsigned char iniface_mask[IFNAMSIZ], outiface_mask[IFNAMSIZ];
/* Flags word */
unsigned char iniface_mask[IFNAMSIZ], outiface_mask[IFNAMSIZ];
/* Flags word */
};
/* Values for "flag" field in struct arpt_ip (general arp structure).
};
/* Values for "flag" field in struct arpt_ip (general arp structure).
struct arpt_arp arp;
/* Size of arpt_entry + matches */
struct arpt_arp arp;
/* Size of arpt_entry + matches */
- u_int16_t target_offset;
/* Size of arpt_entry + matches + target */
/* Size of arpt_entry + matches + target */
/* Back pointer */
unsigned int comefrom;
/* Back pointer */
unsigned int comefrom;
struct compat_arpt_entry {
struct arpt_arp arp;
struct compat_arpt_entry {
struct arpt_arp arp;
- u_int16_t target_offset;
- u_int16_t next_offset;
+ __u16 target_offset;
+ __u16 next_offset;
compat_uint_t comefrom;
struct compat_xt_counters counters;
unsigned char elems[0];
compat_uint_t comefrom;
struct compat_xt_counters counters;
unsigned char elems[0];
unsigned char iniface_mask[IFNAMSIZ], outiface_mask[IFNAMSIZ];
/* Protocol, 0 = ANY */
unsigned char iniface_mask[IFNAMSIZ], outiface_mask[IFNAMSIZ];
/* Protocol, 0 = ANY */
};
/* Values for "flag" field in struct ipt_ip (general ip structure). */
};
/* Values for "flag" field in struct ipt_ip (general ip structure). */
unsigned int nfcache;
/* Size of ipt_entry + matches */
unsigned int nfcache;
/* Size of ipt_entry + matches */
- u_int16_t target_offset;
/* Size of ipt_entry + matches + target */
/* Size of ipt_entry + matches + target */
/* Back pointer */
unsigned int comefrom;
/* Back pointer */
unsigned int comefrom;
/* ICMP matching stuff */
struct ipt_icmp {
/* ICMP matching stuff */
struct ipt_icmp {
- u_int8_t type; /* type to match */
- u_int8_t code[2]; /* range of code */
- u_int8_t invflags; /* Inverse flags */
+ __u8 type; /* type to match */
+ __u8 code[2]; /* range of code */
+ __u8 invflags; /* Inverse flags */
};
/* Values for "inv" field for struct ipt_icmp. */
};
/* Values for "inv" field for struct ipt_icmp. */
struct compat_ipt_entry {
struct ipt_ip ip;
compat_uint_t nfcache;
struct compat_ipt_entry {
struct ipt_ip ip;
compat_uint_t nfcache;
- u_int16_t target_offset;
- u_int16_t next_offset;
+ __u16 target_offset;
+ __u16 next_offset;
compat_uint_t comefrom;
struct compat_xt_counters counters;
unsigned char elems[0];
compat_uint_t comefrom;
struct compat_xt_counters counters;
unsigned char elems[0];
* MH do not match any packets.
* - You also need to set IP6T_FLAGS_PROTO to "flags" to check protocol.
*/
* MH do not match any packets.
* - You also need to set IP6T_FLAGS_PROTO to "flags" to check protocol.
*/
/* TOS to match iff flags & IP6T_F_TOS */
/* TOS to match iff flags & IP6T_F_TOS */
};
/* Values for "flag" field in struct ip6t_ip6 (general ip6 structure). */
};
/* Values for "flag" field in struct ip6t_ip6 (general ip6 structure). */
unsigned int nfcache;
/* Size of ipt_entry + matches */
unsigned int nfcache;
/* Size of ipt_entry + matches */
- u_int16_t target_offset;
/* Size of ipt_entry + matches + target */
/* Size of ipt_entry + matches + target */
/* Back pointer */
unsigned int comefrom;
/* Back pointer */
unsigned int comefrom;
/* ICMP matching stuff */
struct ip6t_icmp {
/* ICMP matching stuff */
struct ip6t_icmp {
- u_int8_t type; /* type to match */
- u_int8_t code[2]; /* range of code */
- u_int8_t invflags; /* Inverse flags */
+ __u8 type; /* type to match */
+ __u8 code[2]; /* range of code */
+ __u8 invflags; /* Inverse flags */
};
/* Values for "inv" field for struct ipt_icmp. */
};
/* Values for "inv" field for struct ipt_icmp. */
struct compat_ip6t_entry {
struct ip6t_ip6 ipv6;
compat_uint_t nfcache;
struct compat_ip6t_entry {
struct ip6t_ip6 ipv6;
compat_uint_t nfcache;
- u_int16_t target_offset;
- u_int16_t next_offset;
+ __u16 target_offset;
+ __u16 next_offset;
compat_uint_t comefrom;
struct compat_xt_counters counters;
unsigned char elems[0];
compat_uint_t comefrom;
struct compat_xt_counters counters;
unsigned char elems[0];