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

ip gre

2024-06-17 07:05:45
8
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条评论
0 / 1000
w****n
15文章数
0粉丝数
w****n
15 文章 | 0 粉丝