summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorFelix Janda <felix.janda@posteo.de>2015-05-16 11:38:53 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-05-21 14:46:53 +0200
commit1c637fe7ea8a70a77273366d24e221b0d3d64702 (patch)
tree90234930e4bf139b35d76899376c0bafff511e13 /src/helpers
parent3c1b1e54a46ad31e6ee7e5d87eed84bd29d8f460 (diff)
downloadconntrack-tools-1c637fe7ea8a70a77273366d24e221b0d3d64702.tar.gz
conntrack-tools-1c637fe7ea8a70a77273366d24e221b0d3d64702.zip
src: Use stdint types
Signed-off-by: Felix Janda <felix.janda@posteo.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/amanda.c4
-rw-r--r--src/helpers/ftp.c2
-rw-r--r--src/helpers/ssdp.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/helpers/amanda.c b/src/helpers/amanda.c
index c0cf701..9e6c4e7 100644
--- a/src/helpers/amanda.c
+++ b/src/helpers/amanda.c
@@ -34,7 +34,7 @@ static int nat_amanda(struct pkt_buff *pkt, uint32_t ctinfo,
struct nf_expect *exp)
{
char buffer[sizeof("65535")];
- u_int16_t port, initial_port;
+ uint16_t port, initial_port;
unsigned int ret;
const struct nf_conntrack *expected;
struct nf_conntrack *nat_tuple;
@@ -111,7 +111,7 @@ amanda_helper_cb(struct pkt_buff *pkt, uint32_t protoff,
struct nf_expect *exp;
char *data, *data_limit, *tmp;
unsigned int dataoff, i;
- u_int16_t port, len;
+ uint16_t port, len;
int ret = NF_ACCEPT;
struct iphdr *iph;
union nfct_attr_grp_addr saddr, daddr;
diff --git a/src/helpers/ftp.c b/src/helpers/ftp.c
index 2c8dcd6..e7fe7f7 100644
--- a/src/helpers/ftp.c
+++ b/src/helpers/ftp.c
@@ -58,7 +58,7 @@ enum nf_ct_ftp_type {
};
static int
-get_ipv6_addr(const char *src, size_t dlen, struct in6_addr *dst, u_int8_t term)
+get_ipv6_addr(const char *src, size_t dlen, struct in6_addr *dst, uint8_t term)
{
const char *end;
int ret = in6_pton(src, min_t(size_t, dlen, 0xffff),
diff --git a/src/helpers/ssdp.c b/src/helpers/ssdp.c
index 2713f23..bc41087 100644
--- a/src/helpers/ssdp.c
+++ b/src/helpers/ssdp.c
@@ -44,7 +44,7 @@ static int ssdp_helper_cb(struct pkt_buff *pkt, uint32_t protoff,
struct iphdr *net_hdr = (struct iphdr *)pktb_network_header(pkt);
int good_packet = 0;
struct nf_expect *exp;
- u_int16_t port;
+ uint16_t port;
unsigned int dataoff;
void *sb_ptr;