Skip to content

Commit

Permalink
update DRV_VERSION to v0.9.10
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-ywliu committed Jan 23, 2025
1 parent 6d2d0b8 commit 66dbcd9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion dkms.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PACKAGE_NAME="gtp5g"
PACKAGE_VERSION="0.9.9"
PACKAGE_VERSION="0.9.10"

CLEAN="make clean KVER=$kernelver"
MAKE="make KVER=$kernelver"
Expand Down
2 changes: 1 addition & 1 deletion include/genl_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "genl.h"

#define DRV_VERSION "0.9.9"
#define DRV_VERSION "0.9.10"

enum gtp5g_version {
GTP5G_VERSION
Expand Down
25 changes: 13 additions & 12 deletions src/gtpu/encap.c
Original file line number Diff line number Diff line change
Expand Up @@ -942,17 +942,16 @@ static int gtp5g_drop_skb_ipv4(struct sk_buff *skb, struct net_device *dev,
}

static struct rtable *find_ip4_route(struct flowi4 *fl4,
const struct sock *sk,
__be32 daddr, __be32 saddr)
const struct sock *sk,
__be32 daddr, __be32 saddr)
{
memset(fl4, 0, sizeof(*fl4));
fl4->flowi4_oif = sk->sk_bound_dev_if;
fl4->daddr = daddr;
fl4->saddr = saddr;
fl4->flowi4_tos = RT_TOS(inet_sk(sk)->tos);
fl4->flowi4_proto = sk->sk_protocol;

return ip_route_output_key(sock_net(sk), fl4);
memset(fl4, 0, sizeof(*fl4));
fl4->flowi4_oif = sk->sk_bound_dev_if;
fl4->daddr = daddr;
fl4->saddr = saddr;
fl4->flowi4_tos = RT_TOS(inet_sk(sk)->tos);
fl4->flowi4_proto = sk->sk_protocol;
return ip_route_output_key(sock_net(sk), fl4);
}

static int gtp5g_fwd_skb_ipv4(struct sk_buff *skb,
Expand Down Expand Up @@ -984,8 +983,10 @@ static int gtp5g_fwd_skb_ipv4(struct sk_buff *skb,
}

hdr_creation = fwd_param->hdr_creation;
rt = find_ip4_route(&fl4, pdr->sk, hdr_creation->peer_addr_ipv4.s_addr,
pdr->role_addr_ipv4.s_addr);
rt = find_ip4_route(&fl4,
pdr->sk,
hdr_creation->peer_addr_ipv4.s_addr,
pdr->role_addr_ipv4.s_addr);
if (IS_ERR(rt))
goto err;

Expand Down

0 comments on commit 66dbcd9

Please sign in to comment.