⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 policy-sleep-2.6.13.1-v1.patch

📁 Host Identity Protocol on Linux is an implemetation of the Host Identity Protocol (HIP) and the rela
💻 PATCH
字号:
diff -urN linux-2.6.13.1-beet/include/linux/xfrm.h linux-2.6.13.1-sleep/include/linux/xfrm.h--- linux-2.6.13.1-beet/include/linux/xfrm.h	2006-01-16 18:38:57.000000000 +0200+++ linux-2.6.13.1-sleep/include/linux/xfrm.h	2006-01-16 18:39:59.000000000 +0200@@ -109,6 +109,11 @@ 	XFRM_MODE_BEET }; +enum+{+	XFRM_POLICY_FLAG_SLEEP = 1+};+ /* Netlink configuration messages.  */ enum { 	XFRM_MSG_BASE = 0x10,diff -urN linux-2.6.13.1-beet/include/net/xfrm.h linux-2.6.13.1-sleep/include/net/xfrm.h--- linux-2.6.13.1-beet/include/net/xfrm.h	2006-01-16 18:39:03.000000000 +0200+++ linux-2.6.13.1-sleep/include/net/xfrm.h	2006-01-16 18:46:38.000000000 +0200@@ -196,7 +196,7 @@ extern void km_policy_notify(struct xfrm_policy *xp, int dir, struct km_event *c); extern void km_state_notify(struct xfrm_state *x, struct km_event *c); -#define XFRM_ACQ_EXPIRES	30+#define XFRM_ACQ_EXPIRES	3  struct xfrm_tmpl; struct xfrm_state_afinfo {diff -urN linux-2.6.13.1-beet/net/xfrm/xfrm_policy.c linux-2.6.13.1-sleep/net/xfrm/xfrm_policy.c--- linux-2.6.13.1-beet/net/xfrm/xfrm_policy.c	2006-01-16 18:39:03.000000000 +0200+++ linux-2.6.13.1-sleep/net/xfrm/xfrm_policy.c	2006-01-16 18:39:59.000000000 +0200@@ -794,7 +794,7 @@  		if (unlikely(nx<0)) { 			err = nx;-			if (err == -EAGAIN && flags) {+			if (err == -EAGAIN && (flags || policy->flags)) { 				DECLARE_WAITQUEUE(wait, current);  				add_wait_queue(&km_waitq, &wait);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -