]> Pileus Git - ~andy/linux/blobdiff - net/ipv4/netfilter/nf_nat_snmp_basic.c
Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm...
[~andy/linux] / net / ipv4 / netfilter / nf_nat_snmp_basic.c
index 5f011cc89cd979742844febe4cc6117a9332d5c9..7c676671329d9432eb2392f6b4fc649ebcdae97f 100644 (file)
@@ -34,8 +34,7 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  *
  * Author: James Morris <jmorris@intercode.com.au>
  *
@@ -462,14 +461,14 @@ static unsigned char asn1_oid_decode(struct asn1_ctx *ctx,
        }
 
        if (subid < 40) {
-               optr [0] = 0;
-               optr [1] = subid;
+               optr[0] = 0;
+               optr[1] = subid;
        } else if (subid < 80) {
-               optr [0] = 1;
-               optr [1] = subid - 40;
+               optr[0] = 1;
+               optr[1] = subid - 40;
        } else {
-               optr [0] = 2;
-               optr [1] = subid - 80;
+               optr[0] = 2;
+               optr[1] = subid - 80;
        }
 
        *len = 2;
@@ -1199,8 +1198,8 @@ static int snmp_translate(struct nf_conn *ct,
                map.to = NOCT1(&ct->tuplehash[!dir].tuple.dst.u3.ip);
        } else {
                /* DNAT replies */
-               map.from = NOCT1(&ct->tuplehash[dir].tuple.src.u3.ip);
-               map.to = NOCT1(&ct->tuplehash[!dir].tuple.dst.u3.ip);
+               map.from = NOCT1(&ct->tuplehash[!dir].tuple.src.u3.ip);
+               map.to = NOCT1(&ct->tuplehash[dir].tuple.dst.u3.ip);
        }
 
        if (map.from == map.to)