iptables: update gitignore list
PATCH 1/1 iptables: update gitignore list
Signed-off-by Mike Frysinger <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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
Quoted 7 lines · Mike Frysinger
Signed-off-by Mike Frysinger <[email protected]>--- 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@@ -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@@ -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
Quoted 9 lines · Arturo Borrero Gonzalez
Quoted 6 lines · Mike Frysinger
Signed-off-by Mike Frysinger <[email protected]>--- 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
PATCH v2 1/1 iptables: update gitignore list
In reply to Mike FrysingerSigned-off-by Mike Frysinger <[email protected]>
--- iptables/.gitignore | 3 +++ 1 file changed, 3 insertions(+)
iptables/.gitignore +3 -0
@@ -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
Applied, thanks.