utils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGREASEUint16

func IsGREASEUint16(v uint16) bool

func ParseUDPPacket added in v0.2.1

func ParseUDPPacket(buf []byte) (*layers.UDP, error)

ParseUDPPacket parses the IP packet

func RewindConn

func RewindConn(c net.Conn, buf []byte) (net.Conn, error)

func Uint16ToUint8

func Uint16ToUint8(a []uint16) []uint8

Types

type Uint8Arr

type Uint8Arr []uint8

func (Uint8Arr) MarshalJSON

func (u Uint8Arr) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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