diff options
| author | yangwei <[email protected]> | 2024-07-10 19:33:55 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-07-11 14:48:02 +0800 |
| commit | 6eb849e2498b0ed9a4f9cb8a9163c4a54e2f7aa9 (patch) | |
| tree | 0aa0f6682ec030cf39b8694db5e875446c649a1f /include | |
| parent | f14d0bcdd230c85fb68814e64f72f3b10051befa (diff) | |
🐞 fix(TSG-21797): IPv6 delivery GREv4.3.60
Diffstat (limited to 'include')
| -rw-r--r-- | include/private/deal_ipv6.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/include/private/deal_ipv6.h b/include/private/deal_ipv6.h index 9bbfa24..86a8734 100644 --- a/include/private/deal_ipv6.h +++ b/include/private/deal_ipv6.h @@ -10,21 +10,21 @@ #define IPV6_MAXPLEN (65535)
-#define IPV6_FRAG_RESERVED_HDR_LEN (40) /* Ԥ����һ��IPv6��Ƭͷ������ */
+#define IPV6_FRAG_RESERVED_HDR_LEN (40) /* Ԥ����һ��IPv6��Ƭͷ������ */
-//#define IPV6_FRAG_TIMEOUT (60) /* ���鳬ʱʱ�� */
+//#define IPV6_FRAG_TIMEOUT (60) /* ���鳬ʱʱ�� */
/*
2015-12-02 lijia modify,
- ��ȻRFC�涨, 60�������з�Ƭ������ɾ��ǺϷ���,
- ���ʵ�����, IPv6��Ƭ�����10���ڻ�δ�������, ����Ϊ�ǹ�����Ϊ��, ֱ��free.
+ ��ȻRFC�涨, 60�������з�Ƭ������ɾ��ǺϷ���,
+ ���ʵ�����, IPv6��Ƭ�����10���ڻ�δ�������, ����Ϊ�ǹ�����Ϊ��, ֱ��free.
*/
-#define IPV6_FRAG_TIMEOUT (10) /* ���鳬ʱʱ�� */
+#define IPV6_FRAG_TIMEOUT (10) /* ���鳬ʱʱ�� */
-#define IPV6_FRAG_MEM_FREE_ONCE (512*1024) /* ÿ���ͷ��ڴ����� */
-#define IPV6_FRAG_MEM_HIGH_THRESH (16*1024*1024) /* �ڴ����� */
+#define IPV6_FRAG_MEM_FREE_ONCE (512*1024) /* ÿ���ͷ��ڴ����� */
+#define IPV6_FRAG_MEM_HIGH_THRESH (16*1024*1024) /* �ڴ����� */
-#define IPV6_FRAG_NUM_PER_IPQ (100) /* ͬһIPQ����Ƭ���� */
+#define IPV6_FRAG_NUM_PER_IPQ (100) /* ͬһIPQ����Ƭ���� */
#if IPV6_DEBUG
#define IPV6_PRINT(fmt, args...) printf(fmt, ##args)
@@ -54,6 +54,7 @@ struct simple_ip6_hdr #define NEXTHDR_IPV6 41 /* IPv6 in IPv6 */
#define NEXTHDR_ROUTING 43 /* Routing header. */
#define NEXTHDR_FRAGMENT 44 /* Fragmentation/reassembly header. */
+#define NEXTHDR_GRE 47 /* Generic Routing Encapsulation */
#define NEXTHDR_ESP 50 /* Encapsulating security payload. */
#define NEXTHDR_AUTH 51 /* Authentication header. */
#define NEXTHDR_ICMP 58 /* ICMP for IPv6. */
@@ -85,8 +86,8 @@ struct ipv6_hop_hdr{ * fragmentation header
*/
-#define IPv6_FRAG_ISF (1) /* ������һ����Ƭ�� */
-#define IPv6_FRAG_NEW (2) /* ���յ����з�Ƭ��������ɵ��°� */
+#define IPv6_FRAG_ISF (1) /* ������һ����Ƭ�� */
+#define IPv6_FRAG_NEW (2) /* ���յ����з�Ƭ��������ɵ��°� */
#define IP6_MF (0x0001)
@@ -98,16 +99,16 @@ struct ipv6_frag_hdr{ };
struct ipv6_frag_key{
- unsigned int identification; /* ���п��ܲ�ͬ��ֵ���ڽṹ��ǰ�棬�Ƚ�ʱ���һЩ */
- int __pad__; /* ����ṹ8�ֽڶ��� */
+ unsigned int identification; /* ���п��ܲ�ͬ��ֵ���ڽṹ��ǰ�棬�Ƚ�ʱ���һЩ */
+ int __pad__; /* ����ṹ8�ֽڶ��� */
struct in6_addr ip6_src; /* source address */
struct in6_addr ip6_dst; /* dest address */
struct streaminfo_private *pfstream_pr;
};
struct ipv6_frag_private{
- unsigned char raw_next_hdr; /* ԭʼIP���ĵ�һ���ɷ�Ƭ����ͷ������ */
- int unfragmentable_len; /* ԭʼIP���IJ��ɷ�Ƭ���ֳ��� */
+ unsigned char raw_next_hdr; /* ԭʼIP���ĵ�һ���ɷ�Ƭ����ͷ������ */
+ int unfragmentable_len; /* ԭʼIP���IJ��ɷ�Ƭ���ֳ��� */
};
|
