aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Morris <ipm@chirality.org.uk>2015-10-14 18:17:05 -0400
committerPablo Neira Ayuso <pablo@netfilter.org>2015-10-16 13:19:04 -0400
commit27951a01688c012b6c77377703fcce90cfe8b1b7 (patch)
tree0a5fb4090166bf529ab523698de337f1c0b72ed4
parent19f0a602014c0dd7f1ad9e458618c333a668b15a (diff)
netfilter: ipv4: ternary operator layout
Correct whitespace layout of ternary operators in the netfilter-ipv4 code. No changes detected by objdiff. Signed-off-by: Ian Morris <ipm@chirality.org.uk> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--net/ipv4/netfilter/arp_tables.c4
-rw-r--r--net/ipv4/netfilter/ip_tables.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/net/ipv4/netfilter/arp_tables.c b/net/ipv4/netfilter/arp_tables.c
index 7300616704f7..eb6663bd47e3 100644
--- a/net/ipv4/netfilter/arp_tables.c
+++ b/net/ipv4/netfilter/arp_tables.c
@@ -186,7 +186,7 @@ static inline int arp_packet_match(const struct arphdr *arphdr,
186 if (FWINV(ret != 0, ARPT_INV_VIA_IN)) { 186 if (FWINV(ret != 0, ARPT_INV_VIA_IN)) {
187 dprintf("VIA in mismatch (%s vs %s).%s\n", 187 dprintf("VIA in mismatch (%s vs %s).%s\n",
188 indev, arpinfo->iniface, 188 indev, arpinfo->iniface,
189 arpinfo->invflags&ARPT_INV_VIA_IN ?" (INV)":""); 189 arpinfo->invflags & ARPT_INV_VIA_IN ? " (INV)" : "");
190 return 0; 190 return 0;
191 } 191 }
192 192
@@ -195,7 +195,7 @@ static inline int arp_packet_match(const struct arphdr *arphdr,
195 if (FWINV(ret != 0, ARPT_INV_VIA_OUT)) { 195 if (FWINV(ret != 0, ARPT_INV_VIA_OUT)) {
196 dprintf("VIA out mismatch (%s vs %s).%s\n", 196 dprintf("VIA out mismatch (%s vs %s).%s\n",
197 outdev, arpinfo->outiface, 197 outdev, arpinfo->outiface,
198 arpinfo->invflags&ARPT_INV_VIA_OUT ?" (INV)":""); 198 arpinfo->invflags & ARPT_INV_VIA_OUT ? " (INV)" : "");
199 return 0; 199 return 0;
200 } 200 }
201 201
diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c
index 3be2a4d2d447..08b7ab063503 100644
--- a/net/ipv4/netfilter/ip_tables.c
+++ b/net/ipv4/netfilter/ip_tables.c
@@ -102,7 +102,7 @@ ip_packet_match(const struct iphdr *ip,
102 if (FWINV(ret != 0, IPT_INV_VIA_IN)) { 102 if (FWINV(ret != 0, IPT_INV_VIA_IN)) {
103 dprintf("VIA in mismatch (%s vs %s).%s\n", 103 dprintf("VIA in mismatch (%s vs %s).%s\n",
104 indev, ipinfo->iniface, 104 indev, ipinfo->iniface,
105 ipinfo->invflags&IPT_INV_VIA_IN ?" (INV)":""); 105 ipinfo->invflags & IPT_INV_VIA_IN ? " (INV)" : "");
106 return false; 106 return false;
107 } 107 }
108 108
@@ -111,7 +111,7 @@ ip_packet_match(const struct iphdr *ip,
111 if (FWINV(ret != 0, IPT_INV_VIA_OUT)) { 111 if (FWINV(ret != 0, IPT_INV_VIA_OUT)) {
112 dprintf("VIA out mismatch (%s vs %s).%s\n", 112 dprintf("VIA out mismatch (%s vs %s).%s\n",
113 outdev, ipinfo->outiface, 113 outdev, ipinfo->outiface,
114 ipinfo->invflags&IPT_INV_VIA_OUT ?" (INV)":""); 114 ipinfo->invflags & IPT_INV_VIA_OUT ? " (INV)" : "");
115 return false; 115 return false;
116 } 116 }
117 117
@@ -120,7 +120,7 @@ ip_packet_match(const struct iphdr *ip,
120 FWINV(ip->protocol != ipinfo->proto, IPT_INV_PROTO)) { 120 FWINV(ip->protocol != ipinfo->proto, IPT_INV_PROTO)) {
121 dprintf("Packet protocol %hi does not match %hi.%s\n", 121 dprintf("Packet protocol %hi does not match %hi.%s\n",
122 ip->protocol, ipinfo->proto, 122 ip->protocol, ipinfo->proto,
123 ipinfo->invflags&IPT_INV_PROTO ? " (INV)":""); 123 ipinfo->invflags & IPT_INV_PROTO ? " (INV)" : "");
124 return false; 124 return false;
125 } 125 }
126 126