亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? simple-beet-and-interfamily-2.6.17.14.patch

?? HIP:Host Identity Protocol
?? PATCH
?? 第 1 頁 / 共 4 頁
字號:
diff -urN linux-2.6.17.9/include/linux/in.h linux-2.6.17.9.hipl/include/linux/in.h--- linux-2.6.17.9/include/linux/in.h	2006-08-18 19:26:24.000000000 +0300+++ linux-2.6.17.9.hipl/include/linux/in.h	2006-12-18 15:01:03.000000000 +0200@@ -40,6 +40,7 @@    IPPROTO_ESP = 50,            /* Encapsulation Security Payload protocol */   IPPROTO_AH = 51,             /* Authentication Header protocol       */+  IPPROTO_BEETPH = 94,		/* IP option pseudo header for BEET */   IPPROTO_PIM    = 103,		/* Protocol Independent Multicast	*/    IPPROTO_COMP   = 108,                /* Compression Header protocol */diff -urN linux-2.6.17.9/include/linux/ip.h linux-2.6.17.9.hipl/include/linux/ip.h--- linux-2.6.17.9/include/linux/ip.h	2006-08-18 19:26:24.000000000 +0300+++ linux-2.6.17.9.hipl/include/linux/ip.h	2006-12-18 15:01:03.000000000 +0200@@ -79,6 +79,8 @@ #define	IPOPT_TS_TSANDADDR	1		/* timestamps and addresses */ #define	IPOPT_TS_PRESPEC	3		/* specified modules only */ +#define IPV4_BEET_PHMAXLEN 8+ struct iphdr { #if defined(__LITTLE_ENDIAN_BITFIELD) 	__u8	ihl:4,@@ -122,4 +124,11 @@ 	__u16 cpi; }; +struct ip_beet_phdr {+	__u8 nexthdr;+	__u8 hdrlen;+	__u8 padlen;+	__u8 reserved;+};+ #endif	/* _LINUX_IP_H */diff -urN linux-2.6.17.9/include/linux/ipsec.h linux-2.6.17.9.hipl/include/linux/ipsec.h--- linux-2.6.17.9/include/linux/ipsec.h	2006-08-18 19:26:24.000000000 +0300+++ linux-2.6.17.9.hipl/include/linux/ipsec.h	2006-12-18 15:01:03.000000000 +0200@@ -12,7 +12,8 @@ enum { 	IPSEC_MODE_ANY		= 0,	/* We do not support this for SA */ 	IPSEC_MODE_TRANSPORT	= 1,-	IPSEC_MODE_TUNNEL	= 2+	IPSEC_MODE_TUNNEL	= 2,+	IPSEC_MODE_BEET         = 3 };  enum {diff -urN linux-2.6.17.9/include/linux/xfrm.h linux-2.6.17.9.hipl/include/linux/xfrm.h--- linux-2.6.17.9/include/linux/xfrm.h	2006-08-18 19:26:24.000000000 +0300+++ linux-2.6.17.9.hipl/include/linux/xfrm.h	2006-12-18 15:01:03.000000000 +0200@@ -118,6 +118,13 @@ 	XFRM_SHARE_UNIQUE	/* Use once */ }; +enum+{+	XFRM_MODE_TRANSPORT = 0,+	XFRM_MODE_TUNNEL,+	XFRM_MODE_BEET+};+ /* Netlink configuration messages.  */ enum { 	XFRM_MSG_BASE = 0x10,diff -urN linux-2.6.17.9/include/net/xfrm.h linux-2.6.17.9.hipl/include/net/xfrm.h--- linux-2.6.17.9/include/net/xfrm.h	2006-08-18 19:26:24.000000000 +0300+++ linux-2.6.17.9.hipl/include/net/xfrm.h	2006-12-18 15:01:03.000000000 +0200@@ -287,6 +287,10 @@ /* Source address of tunnel. Ignored, if it is not a tunnel. */ 	xfrm_address_t		saddr; +/* family of the outer addresses. The family may differ from+   the one in selector */+	unsigned short		outer_family;+ 	__u32			reqid;  /* Mode: transport/tunnel */diff -urN linux-2.6.17.9/net/ipv4/ah4.c linux-2.6.17.9.hipl/net/ipv4/ah4.c--- linux-2.6.17.9/net/ipv4/ah4.c	2006-08-18 19:26:24.000000000 +0300+++ linux-2.6.17.9.hipl/net/ipv4/ah4.c	2006-12-18 15:01:03.000000000 +0200@@ -257,8 +257,10 @@ 		goto error; 	 	x->props.header_len = XFRM_ALIGN8(sizeof(struct ip_auth_hdr) + ahp->icv_trunc_len);-	if (x->props.mode)+	if (x->props.mode == XFRM_MODE_TUNNEL) 		x->props.header_len += sizeof(struct iphdr);+	else if (x->props.mode == XFRM_MODE_BEET)+		x->props.header_len += IPV4_BEET_PHMAXLEN; 	x->data = ahp;  	return 0;diff -urN linux-2.6.17.9/net/ipv4/esp4.c linux-2.6.17.9.hipl/net/ipv4/esp4.c--- linux-2.6.17.9/net/ipv4/esp4.c	2006-08-18 19:26:24.000000000 +0300+++ linux-2.6.17.9.hipl/net/ipv4/esp4.c	2006-12-18 15:01:03.000000000 +0200@@ -240,7 +240,8 @@ 		 *    as per draft-ietf-ipsec-udp-encaps-06, 		 *    section 3.1.2 		 */-		if (!x->props.mode)+		if (x->props.mode == XFRM_MODE_TRANSPORT ||+		    x->props.mode == XFRM_MODE_BEET) 			skb->ip_summed = CHECKSUM_UNNECESSARY; 	} @@ -262,17 +263,27 @@ { 	struct esp_data *esp = x->data; 	u32 blksize = ALIGN(crypto_tfm_alg_blocksize(esp->conf.tfm), 4);+	int enclen = 0; -	if (x->props.mode) {-		mtu = ALIGN(mtu + 2, blksize);-	} else {-		/* The worst case. */+	switch (x->props.mode) {+	default:+	case XFRM_MODE_TUNNEL:+		mtu = ALIGN(mtu +2, blksize);+		break;+	case XFRM_MODE_TRANSPORT:+		/* The worst case */ 		mtu = ALIGN(mtu + 2, 4) + blksize - 4;+		break;+	case XFRM_MODE_BEET:+		/* The worst case. */+		enclen = IPV4_BEET_PHMAXLEN;+		mtu = ALIGN(mtu + enclen + 2, blksize);+		break; 	} 	if (esp->conf.padlen) 		mtu = ALIGN(mtu, esp->conf.padlen); -	return mtu + x->props.header_len + esp->auth.icv_trunc_len;+	return mtu + x->props.header_len + esp->auth.icv_trunc_len - enclen; }  static void esp4_err(struct sk_buff *skb, u32 info)@@ -377,8 +388,10 @@ 	if (crypto_cipher_setkey(esp->conf.tfm, esp->conf.key, esp->conf.key_len)) 		goto error; 	x->props.header_len = sizeof(struct ip_esp_hdr) + esp->conf.ivlen;-	if (x->props.mode)+	if (x->props.mode == XFRM_MODE_TUNNEL) 		x->props.header_len += sizeof(struct iphdr);+	else if (x->props.mode == XFRM_MODE_BEET)+		x->props.header_len += IPV4_BEET_PHMAXLEN; 	if (x->encap) { 		struct xfrm_encap_tmpl *encap = x->encap; diff -urN linux-2.6.17.9/net/ipv4/esp4.c.orig linux-2.6.17.9.hipl/net/ipv4/esp4.c.orig--- linux-2.6.17.9/net/ipv4/esp4.c.orig	1970-01-01 02:00:00.000000000 +0200+++ linux-2.6.17.9.hipl/net/ipv4/esp4.c.orig	2006-12-18 15:01:03.000000000 +0200@@ -0,0 +1,449 @@+#include <linux/config.h>+#include <linux/module.h>+#include <net/ip.h>+#include <net/xfrm.h>+#include <net/esp.h>+#include <asm/scatterlist.h>+#include <linux/crypto.h>+#include <linux/kernel.h>+#include <linux/pfkeyv2.h>+#include <linux/random.h>+#include <net/icmp.h>+#include <net/protocol.h>+#include <net/udp.h>++static int esp_output(struct xfrm_state *x, struct sk_buff *skb)+{+	int err;+	struct iphdr *top_iph;+	struct ip_esp_hdr *esph;+	struct crypto_tfm *tfm;+	struct esp_data *esp;+	struct sk_buff *trailer;+	int blksize;+	int clen;+	int alen;+	int nfrags;++	/* Strip IP+ESP header. */+	__skb_pull(skb, skb->h.raw - skb->data);+	/* Now skb is pure payload to encrypt */++	err = -ENOMEM;++	/* Round to block size */+	clen = skb->len;++	esp = x->data;+	alen = esp->auth.icv_trunc_len;+	tfm = esp->conf.tfm;+	blksize = ALIGN(crypto_tfm_alg_blocksize(tfm), 4);+	clen = ALIGN(clen + 2, blksize);+	if (esp->conf.padlen)+		clen = ALIGN(clen, esp->conf.padlen);++	if ((nfrags = skb_cow_data(skb, clen-skb->len+alen, &trailer)) < 0)+		goto error;++	/* Fill padding... */+	do {+		int i;+		for (i=0; i<clen-skb->len - 2; i++)+			*(u8*)(trailer->tail + i) = i+1;+	} while (0);+	*(u8*)(trailer->tail + clen-skb->len - 2) = (clen - skb->len)-2;+	pskb_put(skb, trailer, clen - skb->len);++	__skb_push(skb, skb->data - skb->nh.raw);+	top_iph = skb->nh.iph;+	esph = (struct ip_esp_hdr *)(skb->nh.raw + top_iph->ihl*4);+	top_iph->tot_len = htons(skb->len + alen);+	*(u8*)(trailer->tail - 1) = top_iph->protocol;++	/* this is non-NULL only with UDP Encapsulation */+	if (x->encap) {+		struct xfrm_encap_tmpl *encap = x->encap;+		struct udphdr *uh;+		u32 *udpdata32;++		uh = (struct udphdr *)esph;+		uh->source = encap->encap_sport;+		uh->dest = encap->encap_dport;+		uh->len = htons(skb->len + alen - top_iph->ihl*4);+		uh->check = 0;++		switch (encap->encap_type) {+		default:+		case UDP_ENCAP_ESPINUDP:+			esph = (struct ip_esp_hdr *)(uh + 1);+			break;+		case UDP_ENCAP_ESPINUDP_NON_IKE:+			udpdata32 = (u32 *)(uh + 1);+			udpdata32[0] = udpdata32[1] = 0;+			esph = (struct ip_esp_hdr *)(udpdata32 + 2);+			break;+		}++		top_iph->protocol = IPPROTO_UDP;+	} else+		top_iph->protocol = IPPROTO_ESP;++	esph->spi = x->id.spi;+	esph->seq_no = htonl(++x->replay.oseq);+	xfrm_aevent_doreplay(x);++	if (esp->conf.ivlen)+		crypto_cipher_set_iv(tfm, esp->conf.ivec, crypto_tfm_alg_ivsize(tfm));++	do {+		struct scatterlist *sg = &esp->sgbuf[0];++		if (unlikely(nfrags > ESP_NUM_FAST_SG)) {+			sg = kmalloc(sizeof(struct scatterlist)*nfrags, GFP_ATOMIC);+			if (!sg)+				goto error;+		}+		skb_to_sgvec(skb, sg, esph->enc_data+esp->conf.ivlen-skb->data, clen);+		crypto_cipher_encrypt(tfm, sg, sg, clen);+		if (unlikely(sg != &esp->sgbuf[0]))+			kfree(sg);+	} while (0);++	if (esp->conf.ivlen) {+		memcpy(esph->enc_data, esp->conf.ivec, crypto_tfm_alg_ivsize(tfm));+		crypto_cipher_get_iv(tfm, esp->conf.ivec, crypto_tfm_alg_ivsize(tfm));+	}++	if (esp->auth.icv_full_len) {+		esp->auth.icv(esp, skb, (u8*)esph-skb->data,+		              sizeof(struct ip_esp_hdr) + esp->conf.ivlen+clen, trailer->tail);+		pskb_put(skb, trailer, alen);+	}++	ip_send_check(top_iph);++	err = 0;++error:+	return err;+}++/*+ * Note: detecting truncated vs. non-truncated authentication data is very+ * expensive, so we only support truncated data, which is the recommended+ * and common case.+ */+static int esp_input(struct xfrm_state *x, struct sk_buff *skb)+{+	struct iphdr *iph;+	struct ip_esp_hdr *esph;+	struct esp_data *esp = x->data;+	struct sk_buff *trailer;+	int blksize = ALIGN(crypto_tfm_alg_blocksize(esp->conf.tfm), 4);+	int alen = esp->auth.icv_trunc_len;+	int elen = skb->len - sizeof(struct ip_esp_hdr) - esp->conf.ivlen - alen;+	int nfrags;+	int encap_len = 0;+	u8 nexthdr[2];+	struct scatterlist *sg;+	u8 workbuf[60];+	int padlen;++	if (!pskb_may_pull(skb, sizeof(struct ip_esp_hdr)))+		goto out;++	if (elen <= 0 || (elen & (blksize-1)))+		goto out;++	/* If integrity check is required, do this. */+	if (esp->auth.icv_full_len) {+		u8 sum[esp->auth.icv_full_len];+		u8 sum1[alen];+		+		esp->auth.icv(esp, skb, 0, skb->len-alen, sum);++		if (skb_copy_bits(skb, skb->len-alen, sum1, alen))+			BUG();++		if (unlikely(memcmp(sum, sum1, alen))) {+			x->stats.integrity_failed++;+			goto out;+		}+	}++	if ((nfrags = skb_cow_data(skb, 0, &trailer)) < 0)+		goto out;++	skb->ip_summed = CHECKSUM_NONE;++	esph = (struct ip_esp_hdr*)skb->data;+	iph = skb->nh.iph;++	/* Get ivec. This can be wrong, check against another impls. */+	if (esp->conf.ivlen)+		crypto_cipher_set_iv(esp->conf.tfm, esph->enc_data, crypto_tfm_alg_ivsize(esp->conf.tfm));++	sg = &esp->sgbuf[0];++	if (unlikely(nfrags > ESP_NUM_FAST_SG)) {+		sg = kmalloc(sizeof(struct scatterlist)*nfrags, GFP_ATOMIC);+		if (!sg)+			goto out;+	}+	skb_to_sgvec(skb, sg, sizeof(struct ip_esp_hdr) + esp->conf.ivlen, elen);+	crypto_cipher_decrypt(esp->conf.tfm, sg, sg, elen);+	if (unlikely(sg != &esp->sgbuf[0]))+		kfree(sg);++	if (skb_copy_bits(skb, skb->len-alen-2, nexthdr, 2))+		BUG();++	padlen = nexthdr[0];+	if (padlen+2 >= elen)+		goto out;++	/* ... check padding bits here. Silly. :-) */ ++	if (x->encap) {+		struct xfrm_encap_tmpl *encap = x->encap;+		struct udphdr *uh;++		uh = (struct udphdr *)(iph + 1);+		encap_len = (void*)esph - (void*)uh;++		/*+		 * 1) if the NAT-T peer's IP or port changed then+		 *    advertize the change to the keying daemon.+		 *    This is an inbound SA, so just compare+		 *    SRC ports.+		 */+		if (iph->saddr != x->props.saddr.a4 ||+		    uh->source != encap->encap_sport) {+			xfrm_address_t ipaddr;++			ipaddr.a4 = iph->saddr;+			km_new_mapping(x, &ipaddr, uh->source);+				+			/* XXX: perhaps add an extra+			 * policy check here, to see+			 * if we should allow or+			 * reject a packet from a+			 * different source+			 * address/port.+			 */+		}+	+		/*+		 * 2) ignore UDP/TCP checksums in case+		 *    of NAT-T in Transport Mode, or+		 *    perform other post-processing fixes+		 *    as per draft-ietf-ipsec-udp-encaps-06,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产免费| 国产精品三级在线观看| 国产亚洲欧美一级| 亚洲一区在线视频| 黄色精品一二区| 欧美日韩国产高清一区| 精品欧美黑人一区二区三区| 一区视频在线播放| 韩日av一区二区| 日韩欧美综合在线| 天天色天天爱天天射综合| 色综合色综合色综合色综合色综合| 日韩免费福利电影在线观看| 亚洲一二三区不卡| 91麻豆.com| 国产精品国产自产拍高清av王其 | 日韩黄色免费网站| 在线免费不卡视频| 自拍偷拍亚洲欧美日韩| 成人午夜精品在线| 久久综合资源网| 精品一区二区三区免费视频| 欧美一区二区三区免费在线看| 亚洲综合视频网| 一本色道久久综合亚洲aⅴ蜜桃 | 亚洲人成在线播放网站岛国 | 日韩手机在线导航| 午夜精品福利视频网站| 欧美色爱综合网| 亚洲成人av一区二区| 欧美在线啊v一区| 亚洲精品美腿丝袜| 国产成人av一区| 最近日韩中文字幕| 在线免费观看成人短视频| 亚洲欧美另类综合偷拍| 国产精品久久看| 97久久超碰国产精品电影| 国产精品久久久久久户外露出 | 精品日韩欧美在线| 美女视频黄 久久| 久久看人人爽人人| 99视频有精品| 亚洲成a人片在线不卡一二三区| 欧美日韩另类一区| 精品一区二区成人精品| 欧美成人一区二区三区在线观看| 国产东北露脸精品视频| 中文字幕一区二区三区在线播放 | 91麻豆精品国产91久久久久| 精品在线观看免费| 一区二区三区欧美在线观看| 欧美狂野另类xxxxoooo| 成人性生交大片免费| 亚洲午夜在线视频| 日韩亚洲欧美中文三级| 99热在这里有精品免费| 免费成人在线网站| 亚洲视频综合在线| 久久亚洲影视婷婷| 欧美性视频一区二区三区| 国产精品一线二线三线精华| 亚洲国产wwwccc36天堂| 亚洲欧洲在线观看av| 日韩视频在线一区二区| 91麻豆国产精品久久| 国产九色sp调教91| 亚洲国产乱码最新视频| 国产午夜亚洲精品羞羞网站| 91精品一区二区三区在线观看| 99re6这里只有精品视频在线观看| 蜜桃视频免费观看一区| 亚洲一区电影777| 日韩精品国产精品| 亚洲欧洲国产专区| 日韩一区二区三区免费观看| 99九九99九九九视频精品| 国产不卡在线视频| 国产剧情一区二区| 99精品视频免费在线观看| 不卡一区二区中文字幕| 99re在线精品| 一本色道**综合亚洲精品蜜桃冫| 国产成人av资源| 99麻豆久久久国产精品免费| 国产精品亚洲一区二区三区妖精 | 艳妇臀荡乳欲伦亚洲一区| **欧美大码日韩| 亚洲一区二区精品视频| 日韩av网站免费在线| 国产综合成人久久大片91| 国产成人av电影免费在线观看| 国产福利精品一区| 色婷婷精品大在线视频| 欧美二区在线观看| 久久精品人人做| 一区二区三区欧美| 日韩avvvv在线播放| 国产在线精品一区在线观看麻豆| 福利电影一区二区| 一本到高清视频免费精品| 91麻豆精品国产91久久久 | 久久久久久久综合| 这里只有精品电影| 欧美视频日韩视频在线观看| 这里只有精品99re| 亚洲国产成人在线| 精品国产1区2区3区| 国产精品不卡视频| 精品夜夜嗨av一区二区三区| 日本道在线观看一区二区| 日韩欧美精品在线视频| 亚洲视频中文字幕| 国产在线不卡一区| 91性感美女视频| 久久精品综合网| 久久机这里只有精品| 色婷婷激情一区二区三区| 国产日韩欧美一区二区三区综合 | 久久精品免费在线观看| 亚洲mv大片欧洲mv大片精品| 成人免费毛片app| 色哟哟精品一区| 1000部国产精品成人观看| 国产不卡视频一区二区三区| 91久久精品一区二区| 国产日韩欧美综合一区| 激情欧美一区二区| 欧美日本一区二区| 天堂在线亚洲视频| 欧美日韩一区二区三区四区五区 | 成人欧美一区二区三区视频网页 | 亚洲视频小说图片| 亚洲成人精品一区| 欧美私人免费视频| 亚洲国产精品影院| 欧美肥大bbwbbw高潮| 免费精品视频最新在线| 欧美偷拍一区二区| 亚洲一区二区偷拍精品| 精品视频在线免费看| 亚洲一区二区三区四区在线| 欧美日韩免费观看一区三区| 午夜欧美大尺度福利影院在线看| 久久99国产精品尤物| 亚洲欧美日韩一区二区三区在线观看| 男人操女人的视频在线观看欧美| 欧美人牲a欧美精品| 日韩av电影天堂| 精品国产网站在线观看| www.色精品| 青青草成人在线观看| 欧美国产精品中文字幕| 蜜桃久久久久久| 亚洲美女在线国产| 欧美一区二区视频网站| 有码一区二区三区| 欧美三级在线播放| 天堂一区二区在线免费观看| 精品久久久久久久久久久久久久久久久| 韩国在线一区二区| 26uuu精品一区二区三区四区在线| 国产精品1区2区| 一卡二卡欧美日韩| 26uuu亚洲| 精品欧美一区二区三区精品久久| 欧美优质美女网站| 顶级嫩模精品视频在线看| 蜜桃在线一区二区三区| 性欧美大战久久久久久久久| 中文字幕 久热精品 视频在线| 欧美一区二区三区四区高清| 91免费视频网址| 92精品国产成人观看免费 | 日韩美一区二区三区| 欧美日韩免费观看一区三区| jlzzjlzz亚洲日本少妇| 国产成人综合视频| 国产成人综合网| 懂色av中文一区二区三区| 日韩精品电影在线观看| 午夜一区二区三区视频| 亚洲成av人在线观看| 肉色丝袜一区二区| 亚洲综合在线视频| 亚洲欧美综合网| 亚洲人成网站精品片在线观看| 国产精品第13页| 一区二区三区丝袜| 亚洲卡通动漫在线| 亚洲gay无套男同| 亚洲激情第一区| 日本不卡视频在线| 国产精品主播直播| 一本久久精品一区二区| 欧美高清视频一二三区 | 久久久美女艺术照精彩视频福利播放| 日韩欧美国产一区在线观看| 久久噜噜亚洲综合| 亚洲精品成人精品456|