diff options
author | an207044 <none@none> | 2008-03-21 09:07:42 -0700 |
---|---|---|
committer | an207044 <none@none> | 2008-03-21 09:07:42 -0700 |
commit | 1797749339f778cc98f5f64cc2cc4440aed6e572 (patch) | |
tree | 2f450d78e45b64f4bc4980cb6a9e07af86f83313 /usr/src | |
parent | 968d2fd13688fcd3afa3a4a2106ab4a9a49821f1 (diff) | |
download | illumos-gate-1797749339f778cc98f5f64cc2cc4440aed6e572.tar.gz |
6629154 IPF NAT checksum evergreen - TCP hdr checksum is broken ... (fix lint)
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/inet/ipf/ip_nat.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/usr/src/uts/common/inet/ipf/ip_nat.c b/usr/src/uts/common/inet/ipf/ip_nat.c index 90f2c2359f..e0013af352 100644 --- a/usr/src/uts/common/inet/ipf/ip_nat.c +++ b/usr/src/uts/common/inet/ipf/ip_nat.c @@ -2356,14 +2356,11 @@ nat_t **natsave; u_int flags; int direction; { - u_short port = 0, sport = 0, dport = 0, nport = 0; tcphdr_t *tcp = NULL; hostmap_t *hm = NULL; - struct in_addr in; nat_t *nat, *natl; u_int nflags; natinfo_t ni; - u_32_t sumd; int move; ipf_stack_t *ifs = fin->fin_ifs; @@ -2457,7 +2454,6 @@ int direction; goto badnat; np = ni.nai_np; - in = ni.nai_ip; } else { /* * NAT_INBOUND is used only for redirects rules @@ -2475,10 +2471,7 @@ int direction; goto badnat; np = ni.nai_np; - in = ni.nai_ip; } - port = ni.nai_port; - nport = ni.nai_nport; if ((move == 1) && (np->in_flags & IPN_ROUNDR)) { if (np->in_redir == NAT_REDIRECT) { @@ -2490,14 +2483,6 @@ int direction; } } - if (flags & IPN_TCPUDP) { - sport = ni.nai_sport; - dport = ni.nai_dport; - } else if (flags & IPN_ICMPQUERY) { - sport = ni.nai_sport; - dport = 0; - } - if (nat_finalise(fin, nat, &ni, tcp, natsave, direction) == -1) { goto badnat; } |