common/helpers: rename NetIPTo6 to AddrTo6

This commit is contained in:
Vincent Bernat
2025-11-04 07:43:19 +01:00
parent 23518c3e2e
commit ffe696e0e1
11 changed files with 24 additions and 24 deletions

View File

@@ -176,7 +176,7 @@ func ParseEthernet(sch *schema.Component, bf *schema.FlowMessage, data []byte) u
// DecodeIP decodes an IP address
func DecodeIP(b []byte) netip.Addr {
if ip, ok := netip.AddrFromSlice(b); ok {
return helpers.NetIPTo6(ip)
return helpers.AddrTo6(ip)
}
return netip.Addr{}
}