(val ref.Val)
| 467 | } |
| 468 | |
| 469 | func netIsIP(val ref.Val) ref.Val { |
| 470 | s := val.(types.String) |
| 471 | _, err := parseIPAddr(string(s)) |
| 472 | return types.Bool(err == nil) |
| 473 | } |
| 474 | |
| 475 | func netCIDRIsMask(val ref.Val) ref.Val { |
| 476 | cidr := val.(CIDR) |
nothing calls this directly
no test coverage detected