* [PATCH] iptables: update gitignore list
@ 2015-08-20 11:13 Mike Frysinger
2015-08-20 11:46 ` Arturo Borrero Gonzalez
2015-08-20 12:21 ` [PATCH v2] " Mike Frysinger
0 siblings, 2 replies; 5+ messages in thread
From: Mike Frysinger @ 2015-08-20 11:13 UTC (permalink / raw)
To: netfilter-devel
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
include/linux/netfilter_ipv4/ip_tables.h | 2 +-
iptables/.gitignore | 3 +++
libiptc/libiptc.c | 4 +++-
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/include/linux/netfilter_ipv4/ip_tables.h b/include/linux/netfilter_ipv4/ip_tables.h
index 38542b4..6c73f34 100644
--- a/include/linux/netfilter_ipv4/ip_tables.h
+++ b/include/linux/netfilter_ipv4/ip_tables.h
@@ -212,7 +212,7 @@ struct ipt_get_entries {
/* The entries. */
struct ipt_entry entrytable[0];
-};
+} __attribute__((packed));
/* Helper functions */
static __inline__ struct xt_entry_target *
diff --git a/iptables/.gitignore b/iptables/.gitignore
index 6c0ade1..7438ad1 100644
--- a/iptables/.gitignore
+++ b/iptables/.gitignore
@@ -7,9 +7,12 @@
/iptables-extensions.8
/iptables-extensions.8.tmpl
/iptables-save
+/iptables-save.8
/iptables-restore
+/iptables-restore.8
/iptables-static
/iptables-xml
+/iptables-xml.1
/xtables-multi
/xtables-config-parser.c
/xtables-config-parser.h
diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c
index 9c07bb4..e8091eb 100644
--- a/libiptc/libiptc.c
+++ b/libiptc/libiptc.c
@@ -1302,7 +1302,8 @@ struct xtc_handle *
TC_INIT(const char *tablename)
{
struct xtc_handle *h;
- STRUCT_GETINFO info;
+ __attribute__((packed))
+STRUCT_GETINFO info;
unsigned int tmp;
socklen_t s;
int sockfd;
@@ -1350,6 +1351,7 @@ retry:
tmp = sizeof(STRUCT_GET_ENTRIES) + h->info.size;
+printf("getsockopt(, %i)\n", tmp);
if (getsockopt(h->sockfd, TC_IPPROTO, SO_GET_ENTRIES, h->entries,
&tmp) < 0)
goto error;
--
2.4.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] iptables: update gitignore list
2015-08-20 11:13 [PATCH] iptables: update gitignore list Mike Frysinger
@ 2015-08-20 11:46 ` Arturo Borrero Gonzalez
2015-08-20 12:21 ` Mike Frysinger
2015-08-20 12:21 ` [PATCH v2] " Mike Frysinger
1 sibling, 1 reply; 5+ messages in thread
From: Arturo Borrero Gonzalez @ 2015-08-20 11:46 UTC (permalink / raw)
To: Mike Frysinger; +Cc: Netfilter Development Mailing list
On 20 August 2015 at 13:13, Mike Frysinger <vapier@gentoo.org> wrote:
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> include/linux/netfilter_ipv4/ip_tables.h | 2 +-
> iptables/.gitignore | 3 +++
> libiptc/libiptc.c | 4 +++-
> 3 files changed, 7 insertions(+), 2 deletions(-)
>
Perhaps this change doesn't belong to this patch:
> diff --git a/include/linux/netfilter_ipv4/ip_tables.h b/include/linux/netfilter_ipv4/ip_tables.h
> index 38542b4..6c73f34 100644
> --- a/include/linux/netfilter_ipv4/ip_tables.h
> +++ b/include/linux/netfilter_ipv4/ip_tables.h
> @@ -212,7 +212,7 @@ struct ipt_get_entries {
>
> /* The entries. */
> struct ipt_entry entrytable[0];
> -};
> +} __attribute__((packed));
>
> /* Helper functions */
> static __inline__ struct xt_entry_target *
same here:
> diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c
> index 9c07bb4..e8091eb 100644
> --- a/libiptc/libiptc.c
> +++ b/libiptc/libiptc.c
> @@ -1302,7 +1302,8 @@ struct xtc_handle *
> TC_INIT(const char *tablename)
> {
> struct xtc_handle *h;
> - STRUCT_GETINFO info;
> + __attribute__((packed))
> +STRUCT_GETINFO info;
> unsigned int tmp;
> socklen_t s;
> int sockfd;
> @@ -1350,6 +1351,7 @@ retry:
>
> tmp = sizeof(STRUCT_GET_ENTRIES) + h->info.size;
>
> +printf("getsockopt(, %i)\n", tmp);
> if (getsockopt(h->sockfd, TC_IPPROTO, SO_GET_ENTRIES, h->entries,
> &tmp) < 0)
> goto error;
--
Arturo Borrero González
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] iptables: update gitignore list
2015-08-20 11:46 ` Arturo Borrero Gonzalez
@ 2015-08-20 12:21 ` Mike Frysinger
0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2015-08-20 12:21 UTC (permalink / raw)
To: Arturo Borrero Gonzalez; +Cc: Netfilter Development Mailing list
[-- Attachment #1: Type: text/plain, Size: 548 bytes --]
On 20 Aug 2015 13:46, Arturo Borrero Gonzalez wrote:
> On 20 August 2015 at 13:13, Mike Frysinger <vapier@gentoo.org> wrote:
> > Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> > ---
> > include/linux/netfilter_ipv4/ip_tables.h | 2 +-
> > iptables/.gitignore | 3 +++
> > libiptc/libiptc.c | 4 +++-
> > 3 files changed, 7 insertions(+), 2 deletions(-)
>
> Perhaps this change doesn't belong to this patch:
yes, i did `git add` to extract the ignore, but then used -a w/commit
-mike
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2] iptables: update gitignore list
2015-08-20 11:13 [PATCH] iptables: update gitignore list Mike Frysinger
2015-08-20 11:46 ` Arturo Borrero Gonzalez
@ 2015-08-20 12:21 ` Mike Frysinger
2015-08-26 19:09 ` Pablo Neira Ayuso
1 sibling, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2015-08-20 12:21 UTC (permalink / raw)
To: netfilter-devel
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
iptables/.gitignore | 3 +++
1 file changed, 3 insertions(+)
diff --git a/iptables/.gitignore b/iptables/.gitignore
index 6c0ade1..7438ad1 100644
--- a/iptables/.gitignore
+++ b/iptables/.gitignore
@@ -7,9 +7,12 @@
/iptables-extensions.8
/iptables-extensions.8.tmpl
/iptables-save
+/iptables-save.8
/iptables-restore
+/iptables-restore.8
/iptables-static
/iptables-xml
+/iptables-xml.1
/xtables-multi
/xtables-config-parser.c
/xtables-config-parser.h
--
2.4.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2] iptables: update gitignore list
2015-08-20 12:21 ` [PATCH v2] " Mike Frysinger
@ 2015-08-26 19:09 ` Pablo Neira Ayuso
0 siblings, 0 replies; 5+ messages in thread
From: Pablo Neira Ayuso @ 2015-08-26 19:09 UTC (permalink / raw)
To: Mike Frysinger; +Cc: netfilter-devel
Applied, thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-08-26 19:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-20 11:13 [PATCH] iptables: update gitignore list Mike Frysinger
2015-08-20 11:46 ` Arturo Borrero Gonzalez
2015-08-20 12:21 ` Mike Frysinger
2015-08-20 12:21 ` [PATCH v2] " Mike Frysinger
2015-08-26 19:09 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).