diff options
-rw-r--r-- | src/conntrack/api.c | 4 | ||||
-rw-r--r-- | utils/conntrack_dump.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/conntrack/api.c b/src/conntrack/api.c index ff8b11f..8015440 100644 --- a/src/conntrack/api.c +++ b/src/conntrack/api.c @@ -443,7 +443,7 @@ int nfct_build_conntrack(struct nfnl_subsys_handle *ssh, * NFCT_Q_DUMP: dump the conntrack table * NFCT_Q_DUMP_RESET: dump the conntrack table and reset counters * - * Pass a valid pointer to the protocol family (u_int8_t) + * Pass a valid pointer to the protocol family (u_int32_t) * * On success, 0 is returned. On error, -1 is returned and errno is set * appropiately. @@ -455,7 +455,7 @@ int nfct_build_query(struct nfnl_subsys_handle *ssh, unsigned int size) { struct nfnlhdr *req = buffer; - const u_int8_t *family = data; + const u_int32_t *family = data; assert(ssh != NULL); assert(data != NULL); diff --git a/utils/conntrack_dump.c b/utils/conntrack_dump.c index b30bf38..d8ae4f1 100644 --- a/utils/conntrack_dump.c +++ b/utils/conntrack_dump.c @@ -19,7 +19,7 @@ static int cb(enum nf_conntrack_msg_type type, int main() { int ret; - u_int8_t family = AF_INET; + u_int32_t family = AF_INET; struct nfct_handle *h; char buf[1024]; |