Fix getting udp6 ports
This commit is contained in:
parent
a1e77476b2
commit
860f332c22
|
@ -547,7 +547,7 @@ func getUDPConnections(family uint32) ([]ConnectionStat, error) {
|
||||||
mibs := (*mibUDPRowOwnerPid)(unsafe.Pointer(&buf[index]))
|
mibs := (*mibUDPRowOwnerPid)(unsafe.Pointer(&buf[index]))
|
||||||
ns := mibs.convertToConnectionStat()
|
ns := mibs.convertToConnectionStat()
|
||||||
stats = append(stats, ns)
|
stats = append(stats, ns)
|
||||||
case kindUDP4.family:
|
case kindUDP6.family:
|
||||||
mibs := (*mibUDP6RowOwnerPid)(unsafe.Pointer(&buf[index]))
|
mibs := (*mibUDP6RowOwnerPid)(unsafe.Pointer(&buf[index]))
|
||||||
ns := mibs.convertToConnectionStat()
|
ns := mibs.convertToConnectionStat()
|
||||||
stats = append(stats, ns)
|
stats = append(stats, ns)
|
||||||
|
|
|
@ -547,7 +547,7 @@ func getUDPConnections(family uint32) ([]ConnectionStat, error) {
|
||||||
mibs := (*mibUDPRowOwnerPid)(unsafe.Pointer(&buf[index]))
|
mibs := (*mibUDPRowOwnerPid)(unsafe.Pointer(&buf[index]))
|
||||||
ns := mibs.convertToConnectionStat()
|
ns := mibs.convertToConnectionStat()
|
||||||
stats = append(stats, ns)
|
stats = append(stats, ns)
|
||||||
case kindUDP4.family:
|
case kindUDP6.family:
|
||||||
mibs := (*mibUDP6RowOwnerPid)(unsafe.Pointer(&buf[index]))
|
mibs := (*mibUDP6RowOwnerPid)(unsafe.Pointer(&buf[index]))
|
||||||
ns := mibs.convertToConnectionStat()
|
ns := mibs.convertToConnectionStat()
|
||||||
stats = append(stats, ns)
|
stats = append(stats, ns)
|
||||||
|
|
Loading…
Reference in New Issue