~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
 
102
102
        /* This is where we call the helper: as the packet goes out. */
103
103
        ct = nf_ct_get(skb, &ctinfo);
104
 
        if (!ct || ctinfo == IP_CT_RELATED + IP_CT_IS_REPLY)
 
104
        if (!ct || ctinfo == IP_CT_RELATED_REPLY)
105
105
                goto out;
106
106
 
107
107
        help = nfct_help(ct);
121
121
                return ret;
122
122
        }
123
123
 
124
 
        if (test_bit(IPS_SEQ_ADJUST_BIT, &ct->status)) {
 
124
        /* adjust seqs for loopback traffic only in outgoing direction */
 
125
        if (test_bit(IPS_SEQ_ADJUST_BIT, &ct->status) &&
 
126
            !nf_is_loopback_packet(skb)) {
125
127
                typeof(nf_nat_seq_adjust_hook) seq_adjust;
126
128
 
127
129
                seq_adjust = rcu_dereference(nf_nat_seq_adjust_hook);