Movatterモバイル変換


[0]ホーム

URL:


checksum

package
v1.92.2Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License:BSD-3-ClauseImports:4Imported by:1

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package checksum provides functions for updating checksums in parsed packets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcUpdateDstAddr

func UpdateDstAddr(q *packet.Parsed, dstnetip.Addr)

UpdateDstAddr updates the destination address in the packet buffer (e.g. duringDNAT). It also updates the checksum. Currently (2022-12-10) only TCP/UDP/ICMPis supported. It panics if provided with an address in a differentfamily to the parsed packet.

funcUpdateSrcAddr

func UpdateSrcAddr(q *packet.Parsed, srcnetip.Addr)

UpdateSrcAddr updates the source address in the packet buffer (e.g. duringSNAT). It also updates the checksum. Currently (2023-09-22) only TCP/UDP/ICMPis supported. It panics if provided with an address in a differentfamily to the parsed packet.

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp