Skip to content

Yiivgeny/tzsp-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tzsp-layer

TaZmen Sniffer Protocol (TZSP) layer for github.com/google/gopacket. This package implements easy way to extract the final payload or intermediate protocol data from TZSP packet.

About protocol

TZSP is encapsulation protocol for other protocols over UDP. Сommonly used for transferring sniffed packets from routers (e.g. Mikrotik Packet Sniffer) and IDS software.

Install

go get github.com/Yiivgeny/tzsp-layer

Usage

Import this package

import tzsp github.com/Yiivgeny/tzsp-layer

Decode packet data using the package layer

packet := gopacket.NewPacket(buffer, tzsp.LayerTypeTZSP, gopacket.Default)

// Extract data from the final protocol
data := packet.ApplicationLayer().Payload()

// or extract a specific layer (e.g., TCP)
tcpPacket := packet.TransportLayer()

Server example

Full example located in example/server.go and can be launched with go run example/server.go

About

TZSP layer for github.com/google/gopacket

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages