|
|
@ -161,7 +161,7 @@ var netProtocols = []string{
|
|
|
|
// If protocols is empty then all protocols are returned, otherwise
|
|
|
|
// If protocols is empty then all protocols are returned, otherwise
|
|
|
|
// just the protocols in the list are returned.
|
|
|
|
// just the protocols in the list are returned.
|
|
|
|
// Available protocols:
|
|
|
|
// Available protocols:
|
|
|
|
// ip,icmp,icmpmsg,tcp,udp,udplite
|
|
|
|
// [ip,icmp,icmpmsg,tcp,udp,udplite]
|
|
|
|
func ProtoCounters(protocols []string) ([]ProtoCountersStat, error) {
|
|
|
|
func ProtoCounters(protocols []string) ([]ProtoCountersStat, error) {
|
|
|
|
return ProtoCountersWithContext(context.Background(), protocols)
|
|
|
|
return ProtoCountersWithContext(context.Background(), protocols)
|
|
|
|
}
|
|
|
|
}
|
|
|
|