Commit 2e134f75 authored by JP Abgrall's avatar JP Abgrall Committed by Lee Jones
Browse files

ANDROID: netfilter: xt_quota2: add quota2 from xtables-addons

xt_quota in the kernel is plain broken:
  - counts quota at a per CPU level
    (was written back when ubiquitous SMP was just a dream)
  - provides no way to count across IPV4/IPV6.

Therefore this patch adds xt_quota2, derived from
"extensions/xt_quota2.c" from xtables-addons
(https://sourceforge.net/projects/xtables-addons

)
at commit e84391ce665cef046967f796dd91026851d6bbf3.

[CPNOTE: 20/07/21] Lee: Poked the bug

Bug: 120445421
Change-Id: I19d49858840effee9ecf6cff03c23b45a97efdeb
Signed-off-by: default avatarJP Abgrall <jpa@google.com>
[adelva: Folded 4d33aa305871 ("netfilter: xt_quota2: fixup the quota2,
         and enable.") into this patch]
Signed-off-by: default avatarAlistair Delva <adelva@google.com>
[maennich: Folded eab89421 ("ANDROID: fix kernelci build-break")
           into this patch]
Signed-off-by: default avatarMatthias Maennich <maennich@google.com>
[ebiggers: Folded in the following commits:
           8a35207f ("ANDROID: fix up xt_quota2 for proc_ops changes")
           91e5e077 ("ANDROID: move up spin_unlock_bh() ahead of remove_proc_entry()").
           b20eacd8 ("ANDROID: fix a bug in quota2")
           Also updated the commit message.]
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarLee Jones <joneslee@google.com>
parent 10c3e38d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment