compat_xtables: dissolve unusued rt_dst

This commit is contained in:
Jan Engelhardt
2013-06-08 15:27:34 +02:00
parent 6fbb35d686
commit b5a2f9aa14
2 changed files with 1 additions and 3 deletions

View File

@@ -24,8 +24,6 @@
#define ipt_unregister_table(tbl) ipt_unregister_table(&init_net, (tbl))
#define ip6t_unregister_table(tbl) ip6t_unregister_table(&init_net, (tbl))
#define rt_dst(rt) (&(rt)->dst)
#if !defined(NIP6) && !defined(NIP6_FMT)
# define NIP6(addr) \
ntohs((addr).s6_addr16[0]), \

View File

@@ -79,7 +79,7 @@ static bool xttarpit_tarpit(struct tcphdr *tcph, const struct tcphdr *oth)
#if 0
/* Rate-limit replies to !SYN,ACKs */
if (!oth->syn && oth->ack)
if (!xrlim_allow(rt_dst(ort), HZ))
if (!xrlim_allow(&ort->dst, HZ))
return false;
#endif