| 134 | } |
| 135 | |
| 136 | void NetworkInterface::ReportOneProtocol(NetworkProtocol protocol, const StringRef& reply) const noexcept |
| 137 | { |
| 138 | if (protocolEnabled[protocol]) |
| 139 | { |
| 140 | reply.lcatf("%s is enabled on port %u", ProtocolNames[protocol], portNumbers[protocol]); |
| 141 | } |
| 142 | else |
| 143 | { |
| 144 | reply.lcatf("%s is disabled", ProtocolNames[protocol]); |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | // End |