summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libipulog_compat.c8
-rw-r--r--src/libnetfilter_log.c24
2 files changed, 16 insertions, 16 deletions
diff --git a/src/libipulog_compat.c b/src/libipulog_compat.c
index 85f7cf5..a0de3cb 100644
--- a/src/libipulog_compat.c
+++ b/src/libipulog_compat.c
@@ -32,7 +32,7 @@ static const struct ipulog_errmap_t
{
int errcode;
const char *message;
-} ipulog_errmap[] =
+} ipulog_errmap[] =
{
{ IPULOG_ERR_NONE, "No error" },
{ IPULOG_ERR_IMPL, "Not implemented yet" },
@@ -99,7 +99,7 @@ struct ipulog_handle *ipulog_create_handle(uint32_t gmask,
h->nfulh = nflog_open();
if (!h->nfulh)
goto out_free;
-
+
/* bind_pf returns EEXIST if we are already registered */
rv = nflog_bind_pf(h->nfulh, AF_INET);
if (rv < 0 && rv != -EEXIST)
@@ -146,7 +146,7 @@ next_msg: printf("next\n");
nfnl_parse_attr(tb, NFULA_MAX, NFM_NFA(NLMSG_DATA(nlh)),
NFM_PAYLOAD(nlh));
-
+
if (!tb[NFULA_PACKET_HDR-1])
goto next_msg;
@@ -207,7 +207,7 @@ next_msg: printf("next\n");
h->upmsg.data_len = NFA_PAYLOAD(tb[NFULA_PAYLOAD-1]);
} else
h->upmsg.data_len = 0;
-
+
return &h->upmsg;
}
diff --git a/src/libnetfilter_log.c b/src/libnetfilter_log.c
index 7d37570..db051b1 100644
--- a/src/libnetfilter_log.c
+++ b/src/libnetfilter_log.c
@@ -4,7 +4,7 @@
* (C) 2005, 2008-2010 by Pablo Neira Ayuso <pablo@netfilter.org>
*
* This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2
+ * it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation (or any later at your option)
*
* This program is distributed in the hope that it will be useful,
@@ -82,7 +82,7 @@ struct nflog_g_handle
int nflog_errno;
/***********************************************************************
- * low level stuff
+ * low level stuff
***********************************************************************/
static void del_gh(struct nflog_g_handle *gh)
@@ -244,7 +244,7 @@ struct nflog_handle *nflog_open_nfnl(struct nfnl_handle *nfnlh)
h->nfnlh = nfnlh;
- h->nfnlssh = nfnl_subsys_open(h->nfnlh, NFNL_SUBSYS_ULOG,
+ h->nfnlssh = nfnl_subsys_open(h->nfnlh, NFNL_SUBSYS_ULOG,
NFULNL_MSG_MAX, 0);
if (!h->nfnlssh) {
/* FIXME: nflog_errno */
@@ -393,10 +393,10 @@ struct nflog_g_handle *
nflog_bind_group(struct nflog_handle *h, uint16_t num)
{
struct nflog_g_handle *gh;
-
+
if (find_gh(h, num))
return NULL;
-
+
gh = calloc(1, sizeof(*gh));
if (!gh)
return NULL;
@@ -610,8 +610,8 @@ int nflog_set_flags(struct nflog_g_handle *gh, uint16_t flags)
* The nfulnl_msg_packet_hdr structure is defined in libnetfilter_log.h as:
*\verbatim
struct nfulnl_msg_packet_hdr {
- uint16_t hw_protocol; // hw protocol (network order)
- uint8_t hook; // netfilter hook
+ uint16_t hw_protocol; // hw protocol (network order)
+ uint8_t hook; // netfilter hook
uint8_t _pad;
} __attribute__ ((packed));
\endverbatim
@@ -760,11 +760,11 @@ uint32_t nflog_get_physoutdev(struct nflog_data *nfad)
*
* The nfulnl_msg_packet_hw structure is defined in libnetfilter_log.h as:
* \verbatim
- struct nfulnl_msg_packet_hw {
- uint16_t hw_addrlen;
- uint16_t _pad;
- uint8_t hw_addr[8];
- } __attribute__ ((packed));
+ struct nfulnl_msg_packet_hw {
+ uint16_t hw_addrlen;
+ uint16_t _pad;
+ uint8_t hw_addr[8];
+ } __attribute__ ((packed));
\endverbatim
*/
struct nfulnl_msg_packet_hw *nflog_get_packet_hw(struct nflog_data *nfad)