IP Filter bug report form.
--------------------------
IP Filter Version: 4.1.3
Operating System Version: Solaris 9 x86
Configuration: LKM

Description of problem:

NAT causes bad IP checksums on this platform when using
software checksums.

How to repeat:

Install, configure NAT, make sure you're using software
checksums, and watch tcpdump.  The enclosed patch
to nat_newmap fixes the problem.

*** ip_nat.c.ORIGINAL   Tue Jun 29 10:22:01 2004
--- ip_nat.c    Thu Oct 21 17:45:16 2004
*************** natinfo_t *ni;
*** 1865,1871 ****
                nat->nat_inport = port;
                nat->nat_outport = port;
        }
!       ni->nai_ip.s_addr = htonl(in.s_addr);
        ni->nai_port = port;
        ni->nai_nport = dport;
        return 0;
--- 1865,1871 ----
                nat->nat_inport = port;
                nat->nat_outport = port;
        }
!       ni->nai_ip.s_addr = in.s_addr;
        ni->nai_port = port;
        ni->nai_nport = dport;
        return 0;

-- John
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: [EMAIL PROTECTED]  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------

Reply via email to