mirror of
https://github.com/dynup/kpatch
synced 2025-03-02 00:40:54 +00:00
24 lines
635 B
Diff
24 lines
635 B
Diff
|
diff --git a/net/ipv6/netfilter.c b/net/ipv6/netfilter.c
|
||
|
index 9bf2604..026ac6c 100644
|
||
|
--- a/net/ipv6/netfilter.c
|
||
|
+++ b/net/ipv6/netfilter.c
|
||
|
@@ -109,6 +109,8 @@ static int nf_ip6_reroute(struct net *net, struct sk_buff *skb,
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
+#include "kpatch-macros.h"
|
||
|
+
|
||
|
static int nf_ip6_route(struct net *net, struct dst_entry **dst,
|
||
|
struct flowi *fl, bool strict)
|
||
|
{
|
||
|
@@ -122,6 +124,9 @@ static int nf_ip6_route(struct net *net, struct dst_entry **dst,
|
||
|
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)
|