]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
ip6tables, xtables-arp: Drop unused struct pprot
authorPhil Sutter <phil@nwl.cc>
Tue, 22 Oct 2019 21:31:46 +0000 (23:31 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 30 Oct 2019 09:00:40 +0000 (10:00 +0100)
These seem like leftovers when changing code to use xtables_chain_protos
as struct xtables_pprot is identical to struct pprot removed here.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/ip6tables.c
iptables/xtables-arp.c

index c160a2dd4e65b5147cddd572df72345b5cceb775..ee463c958686245da578a987ddd0601f97952a5a 100644 (file)
@@ -175,12 +175,6 @@ static const unsigned int inverse_for_options[NUMBER_OF_OPT] =
 #define opts ip6tables_globals.opts
 #define prog_name ip6tables_globals.program_name
 #define prog_vers ip6tables_globals.program_version
-/* A few hardcoded protocols for 'all' and in case the user has no
-   /etc/protocols */
-struct pprot {
-       const char *name;
-       uint8_t num;
-};
 
 static void __attribute__((noreturn))
 exit_tryhelp(int status)
index 1a260e75e3808d2cf4a56bd7b5bddf52393c89c8..8503f47fe2afeae4268600cd42a814121c0ec277 100644 (file)
@@ -209,13 +209,6 @@ static int inverse_for_options[NUMBER_OF_OPT] =
 /* -c */ 0,
 };
 
-/* A few hardcoded protocols for 'all' and in case the user has no
-   /etc/protocols */
-struct pprot {
-       char *name;
-       u_int8_t num;
-};
-
 /* Primitive headers... */
 /* defined in netinet/in.h */
 #if 0