mushroomsir.github.io icon indicating copy to clipboard operation
mushroomsir.github.io copied to clipboard

Go中链路层套接字的实践

Open mushroomsir opened this issue 4 years ago • 0 comments

https://mushroomsir.github.io/go_raw_socket_2/

接上次的博客,按照约定的划分,还有一层链路层socket。这一层就可以自定义链路层的协议头部(header)了,下面是目前主流的Ethernet 2(以太网)标准的头部: 相比IP和TCP的头部,以太网的头部要简单些,仅有目标MAC地址,源MAC地址,数据协议类型(比如常见的IP和ARP协议)。

mushroomsir avatar Oct 18 '20 12:10 mushroomsir