pcap

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: AGPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(device ios.DeviceEntry) error

Types

type PcapPlistHeader added in v1.0.12

type PcapPlistHeader struct {
	HdrSize        int `struc:"uint32,big"`
	Xxx            int `struc:"uint8,big"`
	PacketSize     int `struc:"uint32,big"`
	Flag1          int `struc:"uint32,big"`
	Flag2          int `struc:"uint32,big"`
	OffsetToIPData int `struc:"uint32,big"`
	Zero           int `struc:"uint32,big"`
}

PcapPlistHeader :) ref: https://github.com/iOSForensics/pymobiledevice/blob/master/pymobiledevice/pcapd.py

type PcaprecHdrS added in v1.0.12

type PcaprecHdrS struct {
	TsSec   int `struc:"uint32,little"` /* timestamp seconds */
	TsUsec  int `struc:"uint32,little"` /* timestamp microseconds */
	InclLen int `struc:"uint32,little"` /* number of octets of packet saved in file */
	OrigLen int `struc:"uint32,little"` /* actual length of packet */
}

ref: https://www.wireshark.org/~martinm/mac_pcap_sample_code.c

Jump to

Keyboard shortcuts

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