ipchecksum

package
v0.0.0-...-5c98b36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2022 License: MulanPSL-2.0 Imports: 0 Imported by: 0

README

ipchecksum 检验和

在网络中传输数据包,为了保证传输数据的正确性,使用了 checksum 来校验数据是否正确。

  • IP: IP头的 checksum 只使用 IP 头数据进行计算
  • TCP: 伪头部 + tcp头部 + tcp数据
  • UDP: 伪头部 + udp头部 + udp数据

Documentation

Overview

package ipchecksum IP校验和

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSum

func CheckSum(data []byte) uint16

CheckSum ip校验和

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL