mirror of https://github.com/dynup/kpatch
23 lines
645 B
Diff
23 lines
645 B
Diff
|
diff -Nupr src/net/ipv6/netfilter.c src/net/ipv6/netfilter.c
|
||
|
--- src/net/ipv6/netfilter.c 2020-03-11 11:23:32.702734076 +0000
|
||
|
+++ src/net/ipv6/netfilter.c 2020-03-11 11:31:22.397716246 +0000
|
||
|
@@ -87,6 +87,8 @@ static int nf_ip6_reroute(struct sk_buff
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
+#include "kpatch-macros.h"
|
||
|
+
|
||
|
static int nf_ip6_route(struct net *net, struct dst_entry **dst,
|
||
|
struct flowi *fl, bool strict)
|
||
|
{
|
||
|
@@ -100,6 +102,9 @@ static int nf_ip6_route(struct net *net,
|
||
|
struct dst_entry *result;
|
||
|
int err;
|
||
|
|
||
|
+ if (!jiffies)
|
||
|
+ printk("kpatch nf_ip6_route foo\n");
|
||
|
+
|
||
|
result = ip6_route_output(net, sk, &fl->u.ip6);
|
||
|
err = result->error;
|
||
|
if (err)
|