(protocol: i32)
| 246 | } |
| 247 | |
| 248 | fn protocol_supports_ports(protocol: i32) -> bool { |
| 249 | protocol == NET_FW_IP_PROTOCOL_TCP.0 || protocol == NET_FW_IP_PROTOCOL_UDP.0 |
| 250 | } |
| 251 | |
| 252 | fn validate_protocol(protocol: i32) -> Result<(), FirewallError> { |
| 253 | // IANA protocol numbers 0-255 plus the Windows-specific 256 (Any) |
no outgoing calls
no test coverage detected