[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Thursday, September 8, 2022 @ 18:55:50 Author: heftig Revision: 1296886 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1296883, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1296883, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1296883, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-09-08 18:55:50 UTC (rev 1296886) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=236 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Monday, September 5, 2022 @ 18:38:36 Author: heftig Revision: 1293094 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1293091, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1293091, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1293091, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-09-05 18:38:36 UTC (rev 1293094) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=235 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Wednesday, August 31, 2022 @ 22:51:10 Author: heftig Revision: 1289739 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1289738, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1289738, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1289738, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-08-31 22:51:10 UTC (rev 1289739) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=234 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Monday, August 29, 2022 @ 16:22:51 Author: heftig Revision: 1285410 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1285406, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1285406, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1285406, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-08-29 16:22:51 UTC (rev 1285410) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=233 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Thursday, August 25, 2022 @ 18:24:17 Author: heftig Revision: 1279826 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1279822, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1279822, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1279822, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-08-25 18:24:17 UTC (rev 1279826) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=232 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Sunday, August 21, 2022 @ 19:36:21 Author: heftig Revision: 1273543 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1273541, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1273541, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1273541, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-08-21 19:36:21 UTC (rev 1273543) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=231 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Saturday, August 20, 2022 @ 19:42:40 Author: freswa Revision: 1271147 archrelease: copy trunk to community-staging-x86_64 Added: netfilter-fullconenat/repos/community-staging-x86_64/ netfilter-fullconenat/repos/community-staging-x86_64/PKGBUILD (from rev 1271146, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-staging-x86_64/linux-5.15.patch (from rev 1271146, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-staging-x86_64/PKGBUILD (from rev 1271146, netfilter-fullconenat/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-08-20 19:42:40 UTC (rev 1271147) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=230 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Wednesday, August 17, 2022 @ 14:51:39 Author: heftig Revision: 1266727 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1266721, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1266721, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1266721, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-08-17 14:51:39 UTC (rev 1266727) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=229 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Saturday, August 6, 2022 @ 14:09:10 Author: heftig Revision: 1260399 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1260396, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1260396, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1260396, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-08-06 14:09:10 UTC (rev 1260399) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=227 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Wednesday, August 3, 2022 @ 12:05:04 Author: heftig Revision: 1260015 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1260007, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1260007, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1260007, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-08-03 12:05:04 UTC (rev 1260015) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=226 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Tuesday, August 2, 2022 @ 12:22:58 Author: freswa Revision: 1259795 archrelease: copy trunk to community-staging-x86_64 Added: netfilter-fullconenat/repos/community-staging-x86_64/ netfilter-fullconenat/repos/community-staging-x86_64/PKGBUILD (from rev 1259794, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-staging-x86_64/linux-5.15.patch (from rev 1259794, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-staging-x86_64/PKGBUILD (from rev 1259794, netfilter-fullconenat/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-08-02 12:22:58 UTC (rev 1259795) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=225 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Monday, August 1, 2022 @ 22:01:11 Author: freswa Revision: 1259693 archrelease: copy trunk to community-staging-x86_64 Added: netfilter-fullconenat/repos/community-staging-x86_64/ netfilter-fullconenat/repos/community-staging-x86_64/PKGBUILD (from rev 1259692, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-staging-x86_64/linux-5.15.patch (from rev 1259692, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-staging-x86_64/PKGBUILD (from rev 1259692, netfilter-fullconenat/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-08-01 22:01:11 UTC (rev 1259693) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=224 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Saturday, July 30, 2022 @ 12:18:18 Author: heftig Revision: 1259167 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1259164, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1259164, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1259164, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-07-30 12:18:18 UTC (rev 1259167) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=223 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Saturday, July 23, 2022 @ 01:48:32 Author: freswa Revision: 1255340 archrelease: copy trunk to community-staging-x86_64 Added: netfilter-fullconenat/repos/community-staging-x86_64/ netfilter-fullconenat/repos/community-staging-x86_64/PKGBUILD (from rev 1255339, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-staging-x86_64/linux-5.15.patch (from rev 1255339, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-staging-x86_64/PKGBUILD (from rev 1255339, netfilter-fullconenat/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-07-23 01:48:32 UTC (rev 1255340) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=221 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Friday, July 22, 2022 @ 13:45:08 Author: heftig Revision: 1255258 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1255251, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1255251, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1255251, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-07-22 13:45:08 UTC (rev 1255258) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=220 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Friday, July 15, 2022 @ 17:43:53 Author: heftig Revision: 1252974 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1252973, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1252973, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1252973, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-07-15 17:43:53 UTC (rev 1252974) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=219 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Tuesday, July 12, 2022 @ 16:12:26 Author: heftig Revision: 1250708 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1250704, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1250704, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1250704, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-07-12 16:12:26 UTC (rev 1250708) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=218 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Thursday, July 7, 2022 @ 19:05:36 Author: heftig Revision: 1248256 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1248252, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1248252, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1248252, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-07-07 19:05:36 UTC (rev 1248256) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=217 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Saturday, July 2, 2022 @ 22:55:42 Author: heftig Revision: 1243705 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1243700, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1243700, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1243700, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-07-02 22:55:42 UTC (rev 1243705) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=216 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Thursday, June 30, 2022 @ 05:11:15 Author: heftig Revision: 1242183 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1242178, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1242179, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1242178, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-06-30 05:11:15 UTC (rev 1242183) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=215 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Saturday, June 25, 2022 @ 20:58:26 Author: heftig Revision: 1239455 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1239454, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1239454, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1239454, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-06-25 20:58:26 UTC (rev 1239455) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=213 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Wednesday, June 22, 2022 @ 18:45:44 Author: heftig Revision: 1239021 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1239019, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1239019, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1239019, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-06-22 18:45:44 UTC (rev 1239021) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=212 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Wednesday, June 15, 2022 @ 23:43:54 Author: heftig Revision: 1238077 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1238071, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1238071, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1238071, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-06-15 23:43:54 UTC (rev 1238077) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=210 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Thursday, June 9, 2022 @ 17:24:35 Author: heftig Revision: 1229722 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1229718, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1229718, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1229718, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-06-09 17:24:35 UTC (rev 1229722) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=209 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Monday, June 6, 2022 @ 20:36:10 Author: heftig Revision: 1227155 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1227154, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1227154, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1227154, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-06-06 20:36:10 UTC (rev 1227155) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=208 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Monday, May 30, 2022 @ 18:39:41 Author: heftig Revision: 1216851 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1216849, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1216849, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1216849, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-05-30 18:39:41 UTC (rev 1216851) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=207 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Tuesday, May 24, 2022 @ 22:40:46 Author: heftig Revision: 1210282 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1210280, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1210280, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1210280, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-05-24 22:40:46 UTC (rev 1210282) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=206 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Wednesday, May 18, 2022 @ 21:55:02 Author: heftig Revision: 1209182 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1209177, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1209178, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1209177, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-05-18 21:55:02 UTC (rev 1209182) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=205 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Monday, May 16, 2022 @ 21:42:56 Author: heftig Revision: 1207648 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1207645, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1207645, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1207645, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-05-16 21:42:56 UTC (rev 1207648) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=204 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Sunday, May 15, 2022 @ 06:14:07 Author: freswa Revision: 1207049 archrelease: copy trunk to community-staging-x86_64 Added: netfilter-fullconenat/repos/community-staging-x86_64/ netfilter-fullconenat/repos/community-staging-x86_64/PKGBUILD (from rev 1207048, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-staging-x86_64/linux-5.15.patch (from rev 1207048, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-staging-x86_64/PKGBUILD (from rev 1207048, netfilter-fullconenat/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-05-15 06:14:07 UTC (rev 1207049) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=203 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Thursday, May 12, 2022 @ 19:39:58 Author: heftig Revision: 1199804 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1199799, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1199799, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1199799, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-05-12 19:39:58 UTC (rev 1199804) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=202 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Tuesday, May 10, 2022 @ 23:32:28 Author: heftig Revision: 1198261 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1198258, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1198258, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1198258, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-05-10 23:32:28 UTC (rev 1198261) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=201 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Friday, May 6, 2022 @ 21:07:40 Author: freswa Revision: 1196063 archrelease: copy trunk to community-staging-x86_64 Added: netfilter-fullconenat/repos/community-staging-x86_64/ netfilter-fullconenat/repos/community-staging-x86_64/PKGBUILD (from rev 1196062, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-staging-x86_64/linux-5.15.patch (from rev 1196062, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-staging-x86_64/PKGBUILD (from rev 1196062, netfilter-fullconenat/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-05-06 21:07:40 UTC (rev 1196063) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=200 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Wednesday, April 27, 2022 @ 22:01:11 Author: heftig Revision: 1191345 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1191342, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1191342, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1191342, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-04-27 22:01:11 UTC (rev 1191345) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=199 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Wednesday, April 20, 2022 @ 19:25:08 Author: heftig Revision: 1187173 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1187169, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1187169, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1187169, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-04-20 19:25:08 UTC (rev 1187173) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=198 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Thursday, April 14, 2022 @ 12:28:52 Author: heftig Revision: 1186214 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1186212, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1186212, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1186212, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-04-14 12:28:52 UTC (rev 1186214) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=197 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Friday, April 8, 2022 @ 18:33:42 Author: heftig Revision: 1183023 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1183022, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1183022, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1183022, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-04-08 18:33:42 UTC (rev 1183023) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=194 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Wednesday, March 23, 2022 @ 00:49:06 Author: heftig Revision: 1171176 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1171171, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1171171, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1171171, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-03-23 00:49:06 UTC (rev 1171176) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=192 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Monday, March 21, 2022 @ 23:46:17 Author: heftig Revision: 1168862 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1168856, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1168856, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1168856, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-03-21 23:46:17 UTC (rev 1168862) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=191 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Thursday, March 17, 2022 @ 00:59:37 Author: heftig Revision: 1156241 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1156233, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1156233, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1156233, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-03-17 00:59:37 UTC (rev 1156241) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=190 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Friday, March 11, 2022 @ 18:30:11 Author: heftig Revision: 1148534 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1148531, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1148531, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1148531, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-03-11 18:30:11 UTC (rev 1148534) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=189 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Tuesday, March 8, 2022 @ 20:37:56 Author: heftig Revision: 1145543 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1145536, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1145536, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1145536, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-03-08 20:37:56 UTC (rev 1145543) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=188 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Wednesday, March 2, 2022 @ 13:35:20 Author: heftig Revision: 1139594 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1139590, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1139590, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1139590, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-03-02 13:35:20 UTC (rev 1139594) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=187 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Monday, February 28, 2022 @ 11:50:49 Author: heftig Revision: 1138408 archrelease: copy trunk to community-staging-x86_64 Added: netfilter-fullconenat/repos/community-staging-x86_64/ netfilter-fullconenat/repos/community-staging-x86_64/PKGBUILD (from rev 1138400, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-staging-x86_64/linux-5.15.patch (from rev 1138400, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-staging-x86_64/PKGBUILD (from rev 1138400, netfilter-fullconenat/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-02-28 11:50:49 UTC (rev 1138408) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=186 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Thursday, February 24, 2022 @ 07:20:52 Author: heftig Revision: 1136355 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1136350, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1136350, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1136350, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-02-24 07:20:52 UTC (rev 1136355) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=185 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Wednesday, February 16, 2022 @ 20:16:59 Author: heftig Revision: 1133522 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1133519, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1133519, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1133519, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-02-16 20:16:59 UTC (rev 1133522) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=184 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Wednesday, February 9, 2022 @ 20:05:55 Author: heftig Revision: 1129915 archrelease: copy trunk to community-staging-x86_64 Added: netfilter-fullconenat/repos/community-staging-x86_64/ netfilter-fullconenat/repos/community-staging-x86_64/PKGBUILD (from rev 1129911, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-staging-x86_64/linux-5.15.patch (from rev 1129911, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-staging-x86_64/PKGBUILD (from rev 1129911, netfilter-fullconenat/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-02-09 20:05:55 UTC (rev 1129915) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=182 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Tuesday, February 8, 2022 @ 21:59:00 Author: heftig Revision: 1129393 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1129390, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1129390, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1129390, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-02-08 21:59:00 UTC (rev 1129393) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=181 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Sunday, February 6, 2022 @ 18:10:03 Author: heftig Revision: 1127228 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1127225, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1127225, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1127225, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-02-06 18:10:03 UTC (rev 1127228) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=180 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Tuesday, February 1, 2022 @ 23:46:12 Author: heftig Revision: 1122240 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1122236, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1122236, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1122236, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-02-01 23:46:12 UTC (rev 1122240) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=179 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Sunday, January 30, 2022 @ 04:15:14 Author: heftig Revision: 1120191 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1120188, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1120188, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1120188, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-01-30 04:15:14 UTC (rev 1120191) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=178 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Thursday, January 27, 2022 @ 17:16:25 Author: heftig Revision: 1117191 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1117188, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1117188, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1117188, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-01-27 17:16:25 UTC (rev 1117191) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=177 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Thursday, January 20, 2022 @ 17:54:48 Author: heftig Revision: 532 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 529, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 529, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 529, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-01-20 17:54:48 UTC (rev 532) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=176 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Sunday, January 16, 2022 @ 12:15:25 Author: heftig Revision: 1106219 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1106216, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1106216, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1106216, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-01-16 12:15:25 UTC (rev 1106219) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=175 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Monday, January 10, 2022 @ 21:26:16 Author: heftig Revision: 1100044 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1100039, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1100039, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1100039, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-01-10 21:26:16 UTC (rev 1100044) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=174 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Wednesday, January 5, 2022 @ 18:00:22 Author: heftig Revision: 1093319 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1093315, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1093316, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1093315, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-01-05 18:00:22 UTC (rev 1093319) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=173 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Wednesday, December 29, 2021 @ 13:07:05 Author: heftig Revision: 1087150 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1087148, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1087148, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1087148, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2021-12-29 13:07:05 UTC (rev 1087150) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=172 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Wednesday, December 22, 2021 @ 17:38:07 Author: heftig Revision: 1082866 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1082860, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1082860, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1082860, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2021-12-22 17:38:07 UTC (rev 1082866) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=171 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Friday, December 17, 2021 @ 00:18:30 Author: heftig Revision: 1075634 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1075630, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1075631, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1075630, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2021-12-17 00:18:30 UTC (rev 1075634) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=169 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Wednesday, December 15, 2021 @ 00:00:33 Author: heftig Revision: 1072884 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1072881, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1072881, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1072881, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2021-12-15 00:00:33 UTC (rev 1072884) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=168 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Wednesday, December 8, 2021 @ 17:34:11 Author: heftig Revision: 1065682 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1065675, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1065675, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1065675, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2021-12-08 17:34:11 UTC (rev 1065682) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=167 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Thursday, December 2, 2021 @ 17:16:22 Author: heftig Revision: 1062119 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1062114, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1062114, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1062114, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2021-12-02 17:16:22 UTC (rev 1062119) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=166 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Thursday, November 25, 2021 @ 23:01:23 Author: heftig Revision: 1054815 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1054813, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1054813, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1054813, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2021-11-25 23:01:23 UTC (rev 1054815) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=165 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Sunday, November 21, 2021 @ 22:12:49 Author: heftig Revision: 1054067 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1054065, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1054065, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1054065, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2021-11-21 22:12:49 UTC (rev 1054067) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=164 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Thursday, November 18, 2021 @ 23:22:11 Author: heftig Revision: 1052735 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1052733, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1052733, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1052733, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2021-11-18 23:22:11 UTC (rev 1052735) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=163 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +
[arch-commits] Commit in netfilter-fullconenat/repos (3 files)
Date: Sunday, November 7, 2021 @ 20:45:03 Author: felixonmars Revision: 1038740 archrelease: copy trunk to community-testing-x86_64 Added: netfilter-fullconenat/repos/community-testing-x86_64/ netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1038739, netfilter-fullconenat/trunk/PKGBUILD) netfilter-fullconenat/repos/community-testing-x86_64/linux-5.15.patch (from rev 1038739, netfilter-fullconenat/trunk/linux-5.15.patch) --+ PKGBUILD | 46 +++ linux-5.15.patch | 68 + 2 files changed, 114 insertions(+) Copied: netfilter-fullconenat/repos/community-testing-x86_64/PKGBUILD (from rev 1038739, netfilter-fullconenat/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2021-11-07 20:45:03 UTC (rev 1038740) @@ -0,0 +1,46 @@ +# Maintainer: Felix Yan +# Contributor: Edward Pacman + +pkgname=netfilter-fullconenat +pkgver=r73.0cf3b48 +pkgrel=160 +pkgdesc="A kernel module that turns MASQUERADE into full cone SNAT" +arch=('x86_64') +url="https://github.com/Chion82/netfilter-full-cone-nat; +license=('GPL2') +depends=("linux") +makedepends=('linux-headers' 'git') +_commit=0cf3b48fd7d2fa81d0297d1fff12bbd0580fc435 # master +source=("${pkgname}::git+https://github.com/Chion82/netfilter-full-cone-nat#commit=${_commit}; +linux-5.15.patch) +sha256sums=('SKIP' +'d785622e80ed3348be133270ac974dd372e0d6d770f0da554edbcbf20e94d6a6') + +pkgver() { + cd ${pkgname} + ( set -o pipefail +git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || +printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd ${pkgname} + echo "obj-m = xt_FULLCONENAT.o" > Kbuild + patch -p1 -i ../linux-5.15.patch +} + +build() { + cd ${pkgname} + make -C /usr/src/linux M=$PWD modules +} + +package() { + local extradir=/usr/lib/modules/$(net, _event_notifier) == 0) { + ct_event_notifier_registered = 1; +@@ -1252,6 +1255,11 @@ static int fullconenat_tg_check(const struct xt_tgchk_param *par) + } else { + printk("xt_FULLCONENAT: warning: failed to register a conntrack notifier. Disable active GC for mappings.\n"); + } ++#else ++ct_event_notifier.ct_event = ct_event_cb; ++nf_conntrack_register_notifier(par->net, _event_notifier); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_check(): ct_event_notifier registered\n"); ++#endif + + } + +@@ -1269,6 +1277,7 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): tg_refer_count is now %d\n", tg_refer_count); + + if (tg_refer_count == 0) { ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) + if (ct_event_notifier_registered) { + nf_conntrack_unregister_notifier(par->net, _event_notifier); + ct_event_notifier_registered = 0; +@@ -1276,6 +1285,10 @@ static void fullconenat_tg_destroy(const struct xt_tgdtor_param *par) + pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); + + } ++#else ++nf_conntrack_unregister_notifier(par->net); ++pr_debug("xt_FULLCONENAT: fullconenat_tg_destroy(): ct_event_notifier unregistered\n"); ++#endif + nf_ct_netns_put(par->net, par->family); + } +