mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-21 16:36:20 -04:00
netfilter: replace u_int8_t and u_int16t with u8 and u16
Use preferred kernel integer type u8 instead of the POSIX u_int8_t variant. No functional change. Signed-off-by: Carlos Grillet <carlos@carlosgrillet.me> Signed-off-by: Florian Westphal <fw@strlen.de>
This commit is contained in:
committed by
Florian Westphal
parent
9cc4d9720d
commit
32b00984e0
@@ -2123,7 +2123,7 @@ void ip_vs_update_conntrack(struct sk_buff *skb, struct ip_vs_conn *cp,
|
||||
int outin);
|
||||
int ip_vs_confirm_conntrack(struct sk_buff *skb);
|
||||
void ip_vs_nfct_expect_related(struct sk_buff *skb, struct nf_conn *ct,
|
||||
struct ip_vs_conn *cp, u_int8_t proto,
|
||||
struct ip_vs_conn *cp, u8 proto,
|
||||
const __be16 port, int from_rs);
|
||||
void ip_vs_conn_drop_conntrack(struct ip_vs_conn *cp);
|
||||
|
||||
|
||||
@@ -208,7 +208,7 @@ static void ip_vs_nfct_expect_callback(struct nf_conn *ct,
|
||||
* Use port 0 to expect connection from any port.
|
||||
*/
|
||||
void ip_vs_nfct_expect_related(struct sk_buff *skb, struct nf_conn *ct,
|
||||
struct ip_vs_conn *cp, u_int8_t proto,
|
||||
struct ip_vs_conn *cp, u8 proto,
|
||||
const __be16 port, int from_rs)
|
||||
{
|
||||
struct nf_conntrack_expect *exp;
|
||||
|
||||
@@ -89,7 +89,7 @@ static int amanda_help(struct sk_buff *skb,
|
||||
struct nf_conntrack_tuple *tuple;
|
||||
unsigned int dataoff, start, stop, off, i;
|
||||
char pbuf[sizeof("65535")], *tmp;
|
||||
u_int16_t len;
|
||||
u16 len;
|
||||
__be16 port;
|
||||
int ret = NF_ACCEPT;
|
||||
nf_nat_amanda_hook_fn *nf_nat_amanda;
|
||||
|
||||
@@ -671,7 +671,7 @@ static int expect_h245(struct sk_buff *skb, struct nf_conn *ct,
|
||||
static int callforward_do_filter(struct net *net,
|
||||
const union nf_inet_addr *src,
|
||||
const union nf_inet_addr *dst,
|
||||
u_int8_t family)
|
||||
u8 family)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <linux/netfilter/x_tables.h>
|
||||
#include <linux/netfilter/xt_TCPOPTSTRIP.h>
|
||||
|
||||
static inline unsigned int optlen(const u_int8_t *opt, unsigned int offset)
|
||||
static inline unsigned int optlen(const u8 *opt, unsigned int offset)
|
||||
{
|
||||
/* Beware zero-length options: make finite progress */
|
||||
if (opt[offset] <= TCPOPT_NOP || opt[offset+1] == 0)
|
||||
@@ -33,8 +33,8 @@ tcpoptstrip_mangle_packet(struct sk_buff *skb,
|
||||
const struct xt_tcpoptstrip_target_info *info = par->targinfo;
|
||||
struct tcphdr *tcph, _th;
|
||||
unsigned int optl, i, j;
|
||||
u_int16_t n, o;
|
||||
u_int8_t *opt;
|
||||
u16 n, o;
|
||||
u8 *opt;
|
||||
int tcp_hdrlen;
|
||||
|
||||
/* This is a fragment, no TCP header is available */
|
||||
@@ -97,7 +97,7 @@ tcpoptstrip_tg6(struct sk_buff *skb, const struct xt_action_param *par)
|
||||
{
|
||||
struct ipv6hdr *ipv6h = ipv6_hdr(skb);
|
||||
int tcphoff;
|
||||
u_int8_t nexthdr;
|
||||
u8 nexthdr;
|
||||
__be16 frag_off;
|
||||
|
||||
nexthdr = ipv6h->nexthdr;
|
||||
|
||||
Reference in New Issue
Block a user