summaryrefslogtreecommitdiffstats
path: root/input/packet
diff options
context:
space:
mode:
authorEric Leblond <eric@inl.fr>2008-06-23 16:21:08 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2008-06-23 16:21:08 +0200
commit31616008ec104c95c7142a4905ab92910d30d4d4 (patch)
tree8b7856058eb832b7a824dc1894f2216b28298a1d /input/packet
parent1c74f0d9378aae74f92905c8c6383494dbeadf6f (diff)
whitespace cleanup
Diffstat (limited to 'input/packet')
-rw-r--r--input/packet/ulogd_inppkt_NFLOG.c52
-rw-r--r--input/packet/ulogd_inppkt_ULOG.c44
2 files changed, 48 insertions, 48 deletions
diff --git a/input/packet/ulogd_inppkt_NFLOG.c b/input/packet/ulogd_inppkt_NFLOG.c
index 8c2aab6..95a2956 100644
--- a/input/packet/ulogd_inppkt_NFLOG.c
+++ b/input/packet/ulogd_inppkt_NFLOG.c
@@ -136,10 +136,10 @@ enum nflog_keys {
};
static struct ulogd_key output_keys[] = {
- {
- .type = ULOGD_RET_RAW,
+ {
+ .type = ULOGD_RET_RAW,
.flags = ULOGD_RETF_NONE,
- .name = "raw.mac",
+ .name = "raw.mac",
.ipfix = {
.vendor = IPFIX_VENDOR_IETF,
.field_id = IPFIX_sourceMacAddress,
@@ -158,7 +158,7 @@ static struct ulogd_key output_keys[] = {
.type = ULOGD_RET_UINT32,
.flags = ULOGD_RETF_NONE,
.name = "raw.pktlen",
- .ipfix = {
+ .ipfix = {
.vendor = IPFIX_VENDOR_NETFILTER,
.field_id = IPFIX_NF_rawpacket_length,
},
@@ -167,32 +167,32 @@ static struct ulogd_key output_keys[] = {
.type = ULOGD_RET_UINT32,
.flags = ULOGD_RETF_NONE,
.name = "raw.pktcount",
- .ipfix = {
+ .ipfix = {
.vendor = IPFIX_VENDOR_IETF,
.field_id = IPFIX_packetDeltaCount,
},
},
{
.type = ULOGD_RET_STRING,
- .flags = ULOGD_RETF_NONE,
- .name = "oob.prefix",
+ .flags = ULOGD_RETF_NONE,
+ .name = "oob.prefix",
.ipfix = {
.vendor = IPFIX_VENDOR_NETFILTER,
- .field_id = IPFIX_NF_prefix,
+ .field_id = IPFIX_NF_prefix,
},
},
- { .type = ULOGD_RET_UINT32,
- .flags = ULOGD_RETF_NONE,
- .name = "oob.time.sec",
- .ipfix = {
- .vendor = IPFIX_VENDOR_IETF,
- .field_id = IPFIX_flowStartSeconds,
+ { .type = ULOGD_RET_UINT32,
+ .flags = ULOGD_RETF_NONE,
+ .name = "oob.time.sec",
+ .ipfix = {
+ .vendor = IPFIX_VENDOR_IETF,
+ .field_id = IPFIX_flowStartSeconds,
},
},
{
.type = ULOGD_RET_UINT32,
.flags = ULOGD_RETF_NONE,
- .name = "oob.time.usec",
+ .name = "oob.time.usec",
.ipfix = {
.vendor = IPFIX_VENDOR_IETF,
.field_id = IPFIX_flowStartMicroSeconds,
@@ -201,7 +201,7 @@ static struct ulogd_key output_keys[] = {
{
.type = ULOGD_RET_UINT32,
.flags = ULOGD_RETF_NONE,
- .name = "oob.mark",
+ .name = "oob.mark",
.ipfix = {
.vendor = IPFIX_VENDOR_NETFILTER,
.field_id = IPFIX_NF_mark,
@@ -210,7 +210,7 @@ static struct ulogd_key output_keys[] = {
{
.type = ULOGD_RET_UINT32,
.flags = ULOGD_RETF_NONE,
- .name = "oob.ifindex_in",
+ .name = "oob.ifindex_in",
.ipfix = {
.vendor = IPFIX_VENDOR_IETF,
.field_id = IPFIX_ingressInterface,
@@ -219,7 +219,7 @@ static struct ulogd_key output_keys[] = {
{
.type = ULOGD_RET_UINT32,
.flags = ULOGD_RETF_NONE,
- .name = "oob.ifindex_out",
+ .name = "oob.ifindex_out",
.ipfix = {
.vendor = IPFIX_VENDOR_IETF,
.field_id = IPFIX_egressInterface,
@@ -234,10 +234,10 @@ static struct ulogd_key output_keys[] = {
.field_id = IPFIX_NF_hook,
},
},
- {
- .type = ULOGD_RET_UINT16,
- .flags = ULOGD_RETF_NONE,
- .name = "raw.mac_len",
+ {
+ .type = ULOGD_RET_UINT16,
+ .flags = ULOGD_RETF_NONE,
+ .name = "raw.mac_len",
},
{
.type = ULOGD_RET_UINT32,
@@ -285,7 +285,7 @@ static struct ulogd_key output_keys[] = {
};
-static inline int
+static inline int
interp_packet(struct ulogd_pluginstance *upi, struct nflog_data *ldata)
{
struct ulogd_key *ret = upi->output.keys;
@@ -489,9 +489,9 @@ static int start(struct ulogd_pluginstance *upi)
if (unbind_ce(upi->config_kset).u.value > 0) {
ulogd_log(ULOGD_NOTICE, "forcing unbind of existing log "
- "handler for protocol %d\n",
+ "handler for protocol %d\n",
af_ce(upi->config_kset).u.value);
- if (nflog_unbind_pf(ui->nful_h,
+ if (nflog_unbind_pf(ui->nful_h,
af_ce(upi->config_kset).u.value) < 0) {
ulogd_log(ULOGD_ERROR, "unable to force-unbind "
"existing log handler for protocol %d\n",
@@ -537,7 +537,7 @@ static int start(struct ulogd_pluginstance *upi)
ulogd_log(ULOGD_ERROR, "unable to set flags 0x%x\n",
flags);
}
-
+
nflog_callback_register(ui->nful_gh, &msg_cb, upi);
ui->nful_fd.fd = nflog_fd(ui->nful_h);
diff --git a/input/packet/ulogd_inppkt_ULOG.c b/input/packet/ulogd_inppkt_ULOG.c
index 0b58393..2f65813 100644
--- a/input/packet/ulogd_inppkt_ULOG.c
+++ b/input/packet/ulogd_inppkt_ULOG.c
@@ -83,10 +83,10 @@ enum ulog_keys {
};
static struct ulogd_key output_keys[] = {
- {
- .type = ULOGD_RET_RAW,
- .flags = ULOGD_RETF_NONE,
- .name = "raw.mac",
+ {
+ .type = ULOGD_RET_RAW,
+ .flags = ULOGD_RETF_NONE,
+ .name = "raw.mac",
.ipfix = {
.vendor = IPFIX_VENDOR_IETF,
.field_id = IPFIX_sourceMacAddress,
@@ -105,7 +105,7 @@ static struct ulogd_key output_keys[] = {
.type = ULOGD_RET_UINT32,
.flags = ULOGD_RETF_NONE,
.name = "raw.pktlen",
- .ipfix = {
+ .ipfix = {
.vendor = IPFIX_VENDOR_IETF,
.field_id = 1
},
@@ -114,43 +114,43 @@ static struct ulogd_key output_keys[] = {
.type = ULOGD_RET_UINT32,
.flags = ULOGD_RETF_NONE,
.name = "raw.pktcount",
- .ipfix = {
+ .ipfix = {
.vendor = IPFIX_VENDOR_IETF,
.field_id = 2
},
},
{
.type = ULOGD_RET_STRING,
- .flags = ULOGD_RETF_NONE,
- .name = "oob.prefix",
+ .flags = ULOGD_RETF_NONE,
+ .name = "oob.prefix",
},
- { .type = ULOGD_RET_UINT32,
- .flags = ULOGD_RETF_NONE,
- .name = "oob.time.sec",
- .ipfix = {
- .vendor = IPFIX_VENDOR_IETF,
- .field_id = 22
+ { .type = ULOGD_RET_UINT32,
+ .flags = ULOGD_RETF_NONE,
+ .name = "oob.time.sec",
+ .ipfix = {
+ .vendor = IPFIX_VENDOR_IETF,
+ .field_id = 22
},
},
{
.type = ULOGD_RET_UINT32,
.flags = ULOGD_RETF_NONE,
- .name = "oob.time.usec",
+ .name = "oob.time.usec",
},
{
.type = ULOGD_RET_UINT32,
.flags = ULOGD_RETF_NONE,
- .name = "oob.mark",
+ .name = "oob.mark",
},
{
.type = ULOGD_RET_STRING,
.flags = ULOGD_RETF_NONE,
- .name = "oob.in",
+ .name = "oob.in",
},
{
.type = ULOGD_RET_STRING,
.flags = ULOGD_RETF_NONE,
- .name = "oob.out",
+ .name = "oob.out",
},
{
.type = ULOGD_RET_UINT8,
@@ -161,10 +161,10 @@ static struct ulogd_key output_keys[] = {
.field_id = IPFIX_NF_hook,
},
},
- {
- .type = ULOGD_RET_UINT16,
- .flags = ULOGD_RETF_NONE,
- .name = "raw.mac_len",
+ {
+ .type = ULOGD_RET_UINT16,
+ .flags = ULOGD_RETF_NONE,
+ .name = "raw.mac_len",
},
{
.type = ULOGD_RET_UINT8,