searchusermenu
  • 发布文章
  • 消息中心
点赞
收藏
评论
分享
原创

ip gre

2024-06-17 07:05:45
9
0

1. gre protocol
In the most general case, a system has a packet that needs to be encapsulated and delivered to some destination.  We will call this the payload packet.  The payload is first encapsulated in a GRE packet.  The resulting GRE packet can then be encapsulated in some other protocol and then forwarded.  We will call this outer protocol the delivery protocol.

base header
struct gre_base_hdr {
        __be16 flags;
        __be16 protocol;
};
flags:
flags bit 0: with checksum
flags bit 1: with key 
flags bit 2: with sequence

protocol: the protocol type of higher level packet

 

0条评论
作者已关闭评论
w****n
15文章数
0粉丝数
w****n
15 文章 | 0 粉丝
w****n
15文章数
0粉丝数
w****n
15 文章 | 0 粉丝
原创

ip gre

2024-06-17 07:05:45
9
0

1. gre protocol
In the most general case, a system has a packet that needs to be encapsulated and delivered to some destination.  We will call this the payload packet.  The payload is first encapsulated in a GRE packet.  The resulting GRE packet can then be encapsulated in some other protocol and then forwarded.  We will call this outer protocol the delivery protocol.

base header
struct gre_base_hdr {
        __be16 flags;
        __be16 protocol;
};
flags:
flags bit 0: with checksum
flags bit 1: with key 
flags bit 2: with sequence

protocol: the protocol type of higher level packet

 

文章来自个人专栏
完成任务
15 文章 | 1 订阅
0条评论
作者已关闭评论
作者已关闭评论
0
0