mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-09 04:35:13 +07:00
Merge branch 'connlimit' of git://dev.medozas.de/linux
This commit is contained in:
commit
2e0348c449
@ -185,11 +185,15 @@ connlimit_mt(const struct sk_buff *skb, struct xt_action_param *par)
|
||||
int connections;
|
||||
|
||||
ct = nf_ct_get(skb, &ctinfo);
|
||||
if (ct != NULL)
|
||||
tuple_ptr = &ct->tuplehash[0].tuple;
|
||||
else if (!nf_ct_get_tuplepr(skb, skb_network_offset(skb),
|
||||
par->family, &tuple))
|
||||
if (ct != NULL) {
|
||||
if (info->flags & XT_CONNLIMIT_DADDR)
|
||||
tuple_ptr = &ct->tuplehash[IP_CT_DIR_REPLY].tuple;
|
||||
else
|
||||
tuple_ptr = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple;
|
||||
} else if (!nf_ct_get_tuplepr(skb, skb_network_offset(skb),
|
||||
par->family, &tuple)) {
|
||||
goto hotdrop;
|
||||
}
|
||||
|
||||
if (par->family == NFPROTO_IPV6) {
|
||||
const struct ipv6hdr *iph = ipv6_hdr(skb);
|
||||
|
Loading…
Reference in New Issue
Block a user