func (p *packetConn) Stats() (*Stats, error) {
	stats, err := p.s.GetSockoptTpacketStats(unix.SOL_PACKET, unix.PACKET_STATISTICS)
	if err != nil {
		return nil, err
	}

	return p.handleStats(stats), nil
}
// Stats retrieves statistics from the Conn.
Stats retrieves statistics from the Conn.
// Stats retrieves statistics from the Conn .
func (p *packetConn) Stats() (*Stats, error) {
	stats, err := p.s.GetSockoptTpacketStats(unix.SOL_PACKET, unix.PACKET_STATISTICS)
	if err != nil {
		return nil, err
	}
	return p.handleStats(stats), nil
}
func ( p * packetConn ) Stats ( ) ( * Stats , error ) { stats , err := p . s . GetSockoptTpacketStats ( unix . SOL_PACKET , unix . PACKET_STATISTICS ) if err != nil { return nil , err } return p . handleStats ( stats ) , nil }
Stats retrieves statistics from the Conn.
Stats retrieves statistics from the Conn .