diff options
author | Felix Janda <felix.janda@posteo.de> | 2015-05-16 13:31:38 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-05-25 21:01:14 +0200 |
commit | ec02e05cf4d1bbb66ee31223f9e96c28bf3ae6f1 (patch) | |
tree | 571beaf3b2b81398d7eb8d7c84bf3eceaf58cb07 /src/conntrack/bsf.c | |
parent | 32098096e759a2de36f104ac4ef79a14a328d8bf (diff) |
src: Use stdint types everywhere
Signed-off-by: Felix Janda <felix.janda@posteo.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/conntrack/bsf.c')
-rw-r--r-- | src/conntrack/bsf.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/conntrack/bsf.c b/src/conntrack/bsf.c index bc73369..1549815 100644 --- a/src/conntrack/bsf.c +++ b/src/conntrack/bsf.c @@ -25,7 +25,7 @@ #define NFCT_FILTER_ACCEPT ~0U #if 0 -static char *code2str(u_int16_t code) +static char *code2str(uint16_t code) { switch(code) { case BPF_LD|BPF_IMM: @@ -156,8 +156,8 @@ nfct_bsf_find_attr_nest(struct sock_filter *this, int attr, int pos) struct jump { int line; - u_int8_t jt; - u_int8_t jf; + uint8_t jt; + uint8_t jf; }; static int @@ -290,7 +290,7 @@ nfct_bsf_jump_to(struct sock_filter *this, int line, int pos) /* this helps to skip messages coming from the ctnetlink expectation subsys. */ static int -bsf_cmp_subsys(struct sock_filter *this, int pos, u_int8_t subsys) +bsf_cmp_subsys(struct sock_filter *this, int pos, uint8_t subsys) { struct sock_filter __code[] = { [0] = { @@ -301,7 +301,7 @@ bsf_cmp_subsys(struct sock_filter *this, int pos, u_int8_t subsys) [1] = { /* A = skb->data[X+k:B] (subsys_id) */ .code = BPF_LD|BPF_B|BPF_IND, - .k = sizeof(u_int8_t), + .k = sizeof(uint8_t), }, [2] = { /* A == subsys ? jump +1 : accept */ @@ -319,7 +319,7 @@ static int add_state_filter_cta(struct sock_filter *this, unsigned int cta_protoinfo_proto, unsigned int cta_protoinfo_state, - u_int16_t state_flags, + uint16_t state_flags, unsigned int logic) { unsigned int i, j; @@ -375,7 +375,7 @@ add_state_filter_cta(struct sock_filter *this, static int add_state_filter(struct sock_filter *this, int proto, - u_int16_t flags, + uint16_t flags, unsigned int logic) { static const struct { |