diff options
author | Felix Janda <felix.janda@posteo.de> | 2015-05-16 10:31:24 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-05-20 14:13:34 +0200 |
commit | 047f37b1d5d865084a435fd7594b8c5c332ccb8d (patch) | |
tree | ab05e8f7adfa09b95ac027270933cb89fe49b8a3 /include | |
parent | 4bb2f8340783fd3a3f70aa6f8807428a280f8474 (diff) |
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 'include')
-rw-r--r-- | include/arptables.h | 7 | ||||
-rw-r--r-- | include/libarptc/libarptc.h | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/include/arptables.h b/include/arptables.h index 82e6e9a..34f53c1 100644 --- a/include/arptables.h +++ b/include/arptables.h @@ -1,6 +1,7 @@ #ifndef _ARPTABLES_USER_H #define _ARPTABLES_USER_H +#include <stdint.h> #include "arptables_common.h" #include "libarptc/libarptc.h" @@ -33,7 +34,7 @@ struct arptables_match size_t userspacesize; /* Revision of target (0 by default). */ - u_int8_t revision; + uint8_t revision; /* Function which prints out usage message. */ void (*help)(void); @@ -85,7 +86,7 @@ struct arptables_target size_t userspacesize; /* Revision of target (0 by default). */ - u_int8_t revision; + uint8_t revision; /* Function which prints out usage message. */ void (*help)(void); @@ -132,7 +133,7 @@ extern char *mask_to_dotted(const struct in_addr *mask); extern void parse_hostnetworkmask(const char *name, struct in_addr **addrpp, struct in_addr *maskp, unsigned int *naddrs); -extern u_int16_t parse_protocol(const char *s); +extern uint16_t parse_protocol(const char *s); extern int do_command(int argc, char *argv[], char **table, arptc_handle_t *handle); diff --git a/include/libarptc/libarptc.h b/include/libarptc/libarptc.h index ff4606f..18e8bb0 100644 --- a/include/libarptc/libarptc.h +++ b/include/libarptc/libarptc.h @@ -7,9 +7,10 @@ #include <linux/netfilter_arp/arp_tables.h> #ifndef ARPT_MIN_ALIGN -/* arpt_entry has pointers and u_int64_t's in it, so if you align to - it, you'll also align to any crazy matches and targets someone - might write */ +/* arpt_entry has pointers and uint64_t's in it, so if you align to + * it, you'll also align to any crazy matches and targets someone + * might write. + */ #define ARPT_MIN_ALIGN (__alignof__(struct arpt_entry)) #endif |