iptables: fix wrong error messages
[email protected]
maintainerPATCH 1/2 iptables: fix wrong error messages
From: Pablo Neira Ayuso <[email protected]>
iptables -P INPUT
iptables v1.4.15: -X requires a chain and a policy Try `iptables -h' or 'iptables --help' for more information.
Note that it says -X when we have used -P.
--- iptables/ip6tables.c | 2 +- iptables/iptables.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
iptables/ip6tables.c +1 -1
@@ -85,7 +85,7 @@#define CMD_CHECK 0x4000U#define NUMBER_OF_CMD 16static const char cmdflags[] = {'I' ,'D' ,'D' ,'R' ,'A' ,'L' ,'F' ,'Z' , -'Z' ,'N' ,'X' ,'P' ,'E' ,'S' ,'C' }; +'N' ,'X' ,'P' ,'E' ,'S' ,'Z' ,'C' };#define NUMBER_OF_OPT ARRAY_SIZE(optflags)static const char optflags[]
iptables/iptables.c +1 -1
@@ -81,7 +81,7 @@#define CMD_CHECK 0x4000U#define NUMBER_OF_CMD 16static const char cmdflags[] = {'I' ,'D' ,'D' ,'R' ,'A' ,'L' ,'F' ,'Z' , -'Z' ,'N' ,'X' ,'P' ,'E' ,'S' ,'C' }; +'N' ,'X' ,'P' ,'E' ,'S' ,'Z' ,'C' };#define OPT_FRAGMENT 0x00800U#define NUMBER_OF_OPT ARRAY_SIZE(optflags)
Signature · 1 line
1.7.10.4
[email protected]
maintainerPATCH 2/2 extensions: libxt_addrtype: fix type in help message
From: Pablo Neira Ayuso <[email protected]>
--limit-iface-out Match only on the packet's incoming device
Note that it says "incoming" when it should say "outcoming"
--- extensions/libxt_addrtype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
extensions/libxt_addrtype.c +1 -1
@@ -60,7 +60,7 @@ static void addrtype_help_v1(void)" [!] --src-type type[,...] Match source address type\n" " [!] --dst-type type[,...] Match destination address type\n" " --limit-iface-in Match only on the packet's incoming device\n" -" --limit-iface-out Match only on the packet's incoming device\n" +" --limit-iface-out Match only on the packet's outcoming device\n" "\n" "Valid types: \n");addrtype_help_types ();
Signature · 1 line
1.7.10.4
Re: [PATCH 2/2] extensions: libxt_addrtype: fix type in help message
Quoted 5 lines · On Friday 2012-09-07 10:55, [email protected] wrote:
From: Pablo Neira Ayuso <[email protected]>
--limit-iface-out Match only on the packet's incoming device
Note that it says "incoming" when it should say "outcoming"
Language time! :D
"to come" is a movement of an object into the direction of the speaker/viewer, "to go" the movement away from the viewer.
Since iptables as a viewer is always at the machine, "outgoing" is the term that is being used.
Pablo Neira Ayuso
maintainerRe: [PATCH 2/2] extensions: libxt_addrtype: fix type in help message
Quoted 8 lines · Jan Engelhardt
Quoted 5 lines · On Friday 2012-09-07 10:55, [email protected] wrote:
From: Pablo Neira Ayuso <[email protected]>
--limit-iface-out Match only on the packet's incoming device
Note that it says "incoming" when it should say "outcoming"
Quoted 7 lines
Language time! :D
"to come" is a movement of an object into the direction of the speaker/viewer, "to go" the movement away from the viewer.
Since iptables as a viewer is always at the machine, "outgoing" is the term that is being used.
You're quite right :-), while writing it with my Spanish mind it looked to me quite reasonable.
Of course, it's not. I'll fix it, thanks Jan.