util

package
v0.0.0-...-0e46bc2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2017 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractUint16

func ExtractUint16(b []byte, start, end int) uint16

ExtractUint16 returns the given byte list as a uint16 take care of Little or Big Endian

func ExtractUint32

func ExtractUint32(b []byte, start, end int) uint32

ExtractUint32 returns the given byte list as a uint32 take care of Little or Big Endian

func GetDstIP

func GetDstIP(packet gopacket.Packet) string

GetDstIP returns the destination ipV4§ as a string

func IsTcpPacket

func IsTcpPacket(packet gopacket.Packet) bool

IsTcpPacket returns true if the packet is of TCP type

func IsUdpPacket

func IsUdpPacket(packet gopacket.Packet) bool

IsUdpPacket returns true if the packet is of UDP type

Types

This section is empty.

Jump to

Keyboard shortcuts

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