Add ping client

This commit is contained in:
世界 2025-08-23 10:38:54 +08:00
parent 036d61a0aa
commit 8dbb51cfb7
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
21 changed files with 710 additions and 384 deletions

View file

@ -88,12 +88,16 @@ type Network interface {
SourceAddr() netip.Addr
SourceAddressSlice() []byte
// DestinationAddress returns the value of the "destination address"
// field.
DestinationAddress() tcpip.Address
DestinationAddr() netip.Addr
DestinationAddressSlice() []byte
// Checksum returns the value of the "checksum" field.
Checksum() uint16