Converts a textual representation of an IP protocol into its numeric code. Integers in the range 0..255 are also accepted. @param s The textual representation of the protocol @return The protocol code, or -1 on error.
(String s)
| 215 | * @return The protocol code, or -1 on error. |
| 216 | */ |
| 217 | public static int |
| 218 | value(String s) { |
| 219 | return protocols.getValue(s); |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | public static class Service { |
no test coverage detected