summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-11-16 15:06:34 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2010-11-16 15:06:34 +0100
commita82c852984fdbdd055b2bd108fc117774ae9d322 (patch)
treee17dfa917f4d3533dea6050f8ebd07cab7b3a5d7
parent94cea803b00157a8546e02bd39efae1d81a06695 (diff)
downloadconnman-a82c852984fdbdd055b2bd108fc117774ae9d322.tar.gz
connman-a82c852984fdbdd055b2bd108fc117774ae9d322.tar.bz2
connman-a82c852984fdbdd055b2bd108fc117774ae9d322.zip
iptables: Fix build failure against 2.6.37-rc1 headers
-rw-r--r--src/iptables.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/iptables.c b/src/iptables.c
index b7b336f4..6860fdd7 100644
--- a/src/iptables.c
+++ b/src/iptables.c
@@ -82,7 +82,7 @@ static const char *hooknames[] = {
#define ALIGN(s) (((s) + ((MIN_ALIGN)-1)) & ~((MIN_ALIGN)-1))
-struct ipt_error_target {
+struct error_target {
struct xt_entry_target t;
char error[IPT_TABLE_MAXNAMELEN];
};
@@ -430,7 +430,7 @@ static int iptables_add_chain(struct connman_iptables *table,
GList *last;
struct ipt_entry *entry_head;
struct ipt_entry *entry_return;
- struct ipt_error_target *error;
+ struct error_target *error;
struct ipt_standard_target *standard;
u_int16_t entry_head_size, entry_return_size;
@@ -447,7 +447,7 @@ static int iptables_add_chain(struct connman_iptables *table,
/* head entry */
entry_head_size = sizeof(struct ipt_entry) +
- sizeof(struct ipt_error_target);
+ sizeof(struct error_target);
entry_head = g_try_malloc0(entry_head_size);
if (entry_head == NULL)
goto err;
@@ -457,9 +457,9 @@ static int iptables_add_chain(struct connman_iptables *table,
entry_head->target_offset = sizeof(struct ipt_entry);
entry_head->next_offset = entry_head_size;
- error = (struct ipt_error_target *) entry_head->elems;
+ error = (struct error_target *) entry_head->elems;
strcpy(error->t.u.user.name, IPT_ERROR_TARGET);
- error->t.u.user.target_size = ALIGN(sizeof(struct ipt_error_target));
+ error->t.u.user.target_size = ALIGN(sizeof(struct error_target));
strcpy(error->error, name);
if (iptables_add_entry(table, entry_head, last, -1) < 0)