Versions in this module Expand all Collapse all v1 v1.9.0 Sep 17, 2023 Changes in this version + type ClusterType C.cluster_type + const ClusterPerFlow + const ClusterPerFlow2Tuple + const ClusterPerFlow4Tuple + const ClusterPerFlow5Tuple + const ClusterPerFlowTCP5Tuple + const ClusterRoundRobin + type Direction C.packet_direction + const ReceiveAndTransmit + const ReceiveOnly + const TransmitOnly + type Flag uint32 + const FlagDNASymmetricRSS + const FlagHWTimestamp + const FlagLongHeader + const FlagPromisc + const FlagReentrant + const FlagTimestamp + type NextResult int32 + const NextError + const NextNoPacketNonblocking + const NextNotEnabled + const NextOk + func (n NextResult) Error() string + type Ring struct + func NewRing(device string, snaplen uint32, flags Flag) (ring *Ring, _ error) + func (r *Ring) Close() + func (r *Ring) Disable() error + func (r *Ring) Enable() error + func (r *Ring) ReadPacketData() (data []byte, ci gopacket.CaptureInfo, err error) + func (r *Ring) ReadPacketDataTo(data []byte) (ci gopacket.CaptureInfo, err error) + func (r *Ring) RemoveBPFFilter() error + func (r *Ring) RemoveFromCluster() error + func (r *Ring) SetApplicationName(name string) error + func (r *Ring) SetBPFFilter(bpfFilter string) error + func (r *Ring) SetCluster(cluster int, typ ClusterType) error + func (r *Ring) SetDirection(d Direction) error + func (r *Ring) SetPollDuration(durationMillis uint) error + func (r *Ring) SetPollWatermark(count uint16) error + func (r *Ring) SetPriority(cpu uint16) + func (r *Ring) SetSamplingRate(rate int) error + func (r *Ring) SetSocketMode(s SocketMode) error + func (r *Ring) Stats() (s Stats, err error) + func (r *Ring) WritePacketData(data []byte) error + func (r *Ring) ZeroCopyReadPacketData() (data []byte, ci gopacket.CaptureInfo, err error) + type SocketMode C.socket_mode + const ReadOnly + const WriteAndRead + const WriteOnly + type Stats struct + Dropped uint64 + Received uint64