Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RtpCapureFilter string = "udp and not (" +
"udp port 53 or " +
"udp port 138 or " +
"udp port 67 or " +
"udp port 68 or " +
"udp port 1900 or " +
"udp port 500 or " +
"udp port 123 or " +
"port 5060" +
")"
View Source
var RtpLayerType = gopacket.RegisterLayerType( 2001, gopacket.LayerTypeMetadata{ "RtpLayerType", gopacket.DecodeFunc(decodeRtpLayer), }, )
Functions ¶
This section is empty.
Types ¶
type RtpLayer ¶
type RtpLayer struct { ReceivedAt time.Time Header []byte Version int Padding bool Extension bool CC int Marker bool PayloadType int SequenceNumber uint16 Timestamp uint32 Ssrc uint32 Csrc []uint32 ExtensionHeaderId uint16 ExtensionHeaderLength uint16 ExtensionHeader []byte Payload []byte Data []byte }
func (RtpLayer) LayerContents ¶
func (RtpLayer) LayerPayload ¶
type RtpPacket ¶
type RtpReader ¶
type RtpReader struct {
// contains filtered or unexported fields
}
RtpReader reads
func NewRtpReader ¶
NewRtpReader creates new reader
func (*RtpReader) GetStreams ¶
GetStreams returns rtp streams identified
type RtpStream ¶
type RtpStream struct { // Public Ssrc uint32 PayloadType int SrcIP, DstIP string SrcPort, DstPort uint StartTime, EndTime time.Time // Internal - improve FirstTimestamp uint32 FirstSeq uint16 Cycle uint CurSeq uint16 // Calculated TotalExpectedPackets uint LostPackets uint MeanJitter float32 MeanBandwidth float32 RtpPackets []*RtpPacket }
Click to show internal directories.
Click to hide internal directories.