Skip to content

Commit

Permalink
jool: update to 4.1.13
Browse files Browse the repository at this point in the history
* update jool to 4.1.13
* refresh patch

Changelog: https://github.com/NICMx/Jool/releases/tag/v4.1.13

Signed-off-by: Goetz Goerisch <[email protected]>
  • Loading branch information
Goetz Goerisch authored and neheb committed Sep 16, 2024
1 parent c703510 commit 7f29b5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 22 deletions.
6 changes: 3 additions & 3 deletions net/jool/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk

PKG_NAME:=jool
PKG_VERSION:=4.1.12
PKG_VERSION:=4.1.13
PKG_RELEASE:=1

PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=COPYING

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/NICMx/Jool.git
PKG_SOURCE_VERSION:=8d2edffe40fc9ebcb558e88e66662ee813e00b5c
PKG_MIRROR_HASH:=5f4729aeca0a5895b15a9d77ec52b4c9efdffeb25926e3a7eff36ffa6a9b1a14
PKG_SOURCE_VERSION:=39ca69f8717a83733548bea3b7bfad2a4799572a
PKG_MIRROR_HASH:=f00592d639f34bc6c38e9d012d59a694b159a57ada1b86985cd4df38e4f85d5f

PKG_BUILD_DIR=$(KERNEL_BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
PKG_BUILD_PARALLEL:=1
Expand Down
23 changes: 4 additions & 19 deletions net/jool/patches/100-fix-compilation-warning-simple-fix.patch
Original file line number Diff line number Diff line change
@@ -1,36 +1,21 @@
--- a/src/mod/common/skbuff.c
+++ b/src/mod/common/skbuff.c
@@ -109,9 +109,9 @@ static void print_skb_fields(struct sk_b
print(tabs, "network_header:%u", skb->network_header);
print(tabs, "mac_header:%u", skb->mac_header);
print(tabs, "head:%p", skb->head);
- print(tabs, "data:%ld", skb->data - skb->head);
- print(tabs, "tail:%u", skb->tail);
- print(tabs, "end:%u", skb->end);
+ print(tabs, "data:%ld", (long int)(skb->data - skb->head));
+ print(tabs, "tail:%u", (unsigned int)skb->tail);
+ print(tabs, "end:%u", (unsigned int)skb->end);
}

static int truncated(unsigned int tabs)
--- a/src/mod/common/xlator.c
+++ b/src/mod/common/xlator.c
@@ -890,7 +890,7 @@ void xlator_put(struct xlator *jool)
@@ -891,7 +891,7 @@ void xlator_put(struct xlator *jool)
static bool offset_equals(struct instance_entry_usr *offset,
struct jool_instance *instance)
{
- return (offset->ns == ((__u64)instance->jool.ns & 0xFFFFFFFF))
- return (offset->ns == ((PTR_AS_UINT_TYPE)instance->jool.ns & 0xFFFFFFFF))
+ return (offset->ns == ((uintptr_t)instance->jool.ns & 0xFFFFFFFF))
&& (strcmp(offset->iname, instance->jool.iname) == 0);
}

--- a/src/mod/common/nl/instance.c
+++ b/src/mod/common/nl/instance.c
@@ -37,7 +37,7 @@ static int serialize_instance(struct xla
@@ -38,7 +38,7 @@ static int serialize_instance(struct xla
if (!root)
return 1;

- error = nla_put_u32(skb, JNLAIE_NS, ((__u64)entry->ns) & 0xFFFFFFFF);
- error = nla_put_u32(skb, JNLAIE_NS, ((PTR_AS_UINT_TYPE)entry->ns) & 0xFFFFFFFF);
+ error = nla_put_u32(skb, JNLAIE_NS, ((uintptr_t)entry->ns) & 0xFFFFFFFF);
if (error)
goto cancel;
Expand Down

0 comments on commit 7f29b5b

Please sign in to comment.