Skip to contentSkip to conversation

iptables: update gitignore list

PATCH Superseded Mike Frysinger 3 participants 5 messages Aug 20, 2015 – Aug 26, 2015 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iptables: update gitignore list

---
 include/linux/netfilter_ipv4/ip_tables.h | 2 +-
 iptables/.gitignore                      | 3 +++
 libiptc/libiptc.c                        | 4 +++-
 3 files changed, 7 insertions(+), 2 deletions(-)
include/linux/netfilter_ipv4/ip_tables.h +1 -1
index 38542b4..6c73f34 100644
@@ -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 *
iptables/.gitignore +3 -0
index 6c0ade1..7438ad1 100644
@@ -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
libiptc/libiptc.c +3 -1
index 9c07bb4..e8091eb 100644
@@ -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;
Signature · 1 line
2.4.4
#1 lore raw
Quoted 7 lines · Mike Frysinger
---
 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:

include/linux/netfilter_ipv4/ip_tables.h struct ipt_get_entries { · line 218

Quoted 13 lines
include/linux/netfilter_ipv4/ip_tables.h +1 -1
index 38542b4..6c73f34 100644
@@ -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:

Quoted 22 lines
libiptc/libiptc.c +3 -1
index 9c07bb4..e8091eb 100644
@@ -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;
Signature · 5 lines
Arturo Borrero González
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
Quoted 9 lines · Arturo Borrero Gonzalez
Quoted 6 lines · Mike Frysinger
---
 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

#3 lore raw

PATCH v2 1/1 iptables: update gitignore list

In reply to Mike Frysinger
---
 iptables/.gitignore | 3 +++
 1 file changed, 3 insertions(+)
iptables/.gitignore +3 -0
index 6c0ade1..7438ad1 100644
@@ -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
Signature · 1 line
2.4.4