~ubuntu-branches/ubuntu/lucid/xtables-addons/lucid

« back to all changes in this revision

Viewing changes to extensions/xt_DELUDE.c

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Chifflier
  • Date: 2009-09-10 21:42:05 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090910214205-neqgwq7y5nctaty7
Tags: 1.18-1
* New Upstream Version
  This version has support for 2.6.31 (Closes: #545542)
* Bump standards version (no changes)
* Depend on quilt (Closes: #533653)

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
                addr_type = RTN_LOCAL;
120
120
 
121
121
        /* ip_route_me_harder expects skb->dst to be set */
122
 
        dst_hold(oldskb->dst);
123
 
        nskb->dst = oldskb->dst;
 
122
        skb_dst_set(nskb, dst_clone(skb_dst(oldskb)));
124
123
 
125
124
        if (ip_route_me_harder(&nskb, addr_type))
126
125
                goto free_nskb;
127
126
        else
128
127
                niph = ip_hdr(nskb);
129
128
 
130
 
        niph->ttl       = dst_metric(nskb->dst, RTAX_HOPLIMIT);
 
129
        niph->ttl       = dst_metric(skb_dst(nskb), RTAX_HOPLIMIT);
131
130
        nskb->ip_summed = CHECKSUM_NONE;
132
131
 
133
132
        /* "Never happens" */
134
 
        if (nskb->len > dst_mtu(nskb->dst))
 
133
        if (nskb->len > dst_mtu(skb_dst(nskb)))
135
134
                goto free_nskb;
136
135
 
137
136
        nf_ct_attach(nskb, oldskb);