(val ref.Val)
| 440 | } |
| 441 | |
| 442 | func netIsIP(val ref.Val) ref.Val { |
| 443 | s := val.(types.String) |
| 444 | _, err := parseIPAddr(string(s)) |
| 445 | return types.Bool(err == nil) |
| 446 | } |
| 447 | |
| 448 | func netCIDRIsMask(val ref.Val) ref.Val { |
| 449 | cidr := val.(CIDR) |
nothing calls this directly
no test coverage detected