[PATCH] netfilter: kmod-nft-netdev: add egress support
The netdev egress hook was added in Linux kernel 5.16. Signed-off-by: 谢致邦 (XIE Zhibang) --- Resend email due to DMARC issue. package/kernel/linux/modules/netfilter.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/kernel/linux/modules/netfilter.mk b/package/kernel/linux/modules/netfilter.mk index da3e69e49a..e90c8382a1 100644 --- a/package/kernel/linux/modules/netfilter.mk +++ b/package/kernel/linux/modules/netfilter.mk @@ -1205,6 +1205,7 @@ define KernelPackage/nft-netdev DEPENDS:=+kmod-nft-core KCONFIG:= \ CONFIG_NETFILTER_INGRESS=y \ + CONFIG_NETFILTER_EGRESS=y \ CONFIG_NF_TABLES_NETDEV \ CONFIG_NF_DUP_NETDEV \ CONFIG_NFT_DUP_NETDEV \ -- 2.44.0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[PATCH fstools] libfstools: partname: drop parent_dev
Using parent_dev will cause use_f2fs() to make wrong detection. Signed-off-by: 谢致邦 (XIE Zhibang) --- Resend email due to DMARC issue. libfstools/partname.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/libfstools/partname.c b/libfstools/partname.c index 9f2347a..a950efe 100644 --- a/libfstools/partname.c +++ b/libfstools/partname.c @@ -15,11 +15,6 @@ struct partname_volume { char devpathstr[16]; struct devpath devpath; } dev; - - union { - char devpathstr[16]; - struct devpath devpath; - } parent_dev; }; static struct driver partname_driver; @@ -56,7 +51,7 @@ static int partname_volume_init(struct volume *v) v->size = volsize << 9; /* size is returned in sectors of 512 bytes */ v->blk = p->dev.devpathstr; - return block_volume_format(v, 0, p->parent_dev.devpathstr); + return block_volume_format(v, 0, p->dev.devpathstr); } /* adapted from procd/utils.c -> should go to libubox */ @@ -182,14 +177,6 @@ static struct volume *partname_volume_find(char *name) strncpy(p->dev.devpath.device, devname, sizeof(p->dev.devpath.device) - 1); p->dev.devpath.device[sizeof(p->dev.devpath.device)-1] = '\0'; - memcpy(p->parent_dev.devpath.prefix, "/dev/", sizeof(p->parent_dev.devpath.prefix)); - if (rootdev) - strncpy(p->parent_dev.devpath.device, rootdev, sizeof(p->parent_dev.devpath.device) - 1); - else - strncpy(p->parent_dev.devpath.device, rootdevname(devname), sizeof(p->parent_dev.devpath.device) - 1); - - p->parent_dev.devpath.device[sizeof(p->parent_dev.devpath.device)-1] = '\0'; - p->v.drv = &partname_driver; p->v.blk = p->dev.devpathstr; p->v.name = name; -- 2.44.0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[PATCH] netfilter: kmod-nft-netdev: add egress support
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- The netdev egress hook was added in Linux kernel 5.16. Signed-off-by: 谢致邦 (XIE Zhibang) --- package/kernel/linux/modules/netfilter.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/kernel/linux/modules/netfilter.mk b/package/kernel/linux/modules/netfilter.mk index da3e69e49a..e90c8382a1 100644 --- a/package/kernel/linux/modules/netfilter.mk +++ b/package/kernel/linux/modules/netfilter.mk @@ -1205,6 +1205,7 @@ define KernelPackage/nft-netdev DEPENDS:=+kmod-nft-core KCONFIG:= \ CONFIG_NETFILTER_INGRESS=y \ + CONFIG_NETFILTER_EGRESS=y \ CONFIG_NF_TABLES_NETDEV \ CONFIG_NF_DUP_NETDEV \ CONFIG_NFT_DUP_NETDEV \ -- 2.44.0 --- End Message --- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[PATCH fstools] libfstools: partname: drop parent_dev
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- Using parent_dev will cause use_f2fs() to make wrong detection. Signed-off-by: 谢致邦 (XIE Zhibang) --- libfstools/partname.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/libfstools/partname.c b/libfstools/partname.c index 9f2347a..a950efe 100644 --- a/libfstools/partname.c +++ b/libfstools/partname.c @@ -15,11 +15,6 @@ struct partname_volume { char devpathstr[16]; struct devpath devpath; } dev; - - union { - char devpathstr[16]; - struct devpath devpath; - } parent_dev; }; static struct driver partname_driver; @@ -56,7 +51,7 @@ static int partname_volume_init(struct volume *v) v->size = volsize << 9; /* size is returned in sectors of 512 bytes */ v->blk = p->dev.devpathstr; - return block_volume_format(v, 0, p->parent_dev.devpathstr); + return block_volume_format(v, 0, p->dev.devpathstr); } /* adapted from procd/utils.c -> should go to libubox */ @@ -182,14 +177,6 @@ static struct volume *partname_volume_find(char *name) strncpy(p->dev.devpath.device, devname, sizeof(p->dev.devpath.device) - 1); p->dev.devpath.device[sizeof(p->dev.devpath.device)-1] = '\0'; - memcpy(p->parent_dev.devpath.prefix, "/dev/", sizeof(p->parent_dev.devpath.prefix)); - if (rootdev) - strncpy(p->parent_dev.devpath.device, rootdev, sizeof(p->parent_dev.devpath.device) - 1); - else - strncpy(p->parent_dev.devpath.device, rootdevname(devname), sizeof(p->parent_dev.devpath.device) - 1); - - p->parent_dev.devpath.device[sizeof(p->parent_dev.devpath.device)-1] = '\0'; - p->v.drv = &partname_driver; p->v.blk = p->dev.devpathstr; p->v.name = name; -- 2.44.0 --- End Message --- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel