Permalink
Browse files

Match the IANA protocol naming for ICMP6

Leave the icmp6 atom as an alias.
  • Loading branch information...
1 parent 2b8c6a9 commit f9bba43a09bcad94efc30a52768ad83c71f58008 @msantos committed Apr 8, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/procket.erl
View
@@ -357,13 +357,14 @@ protocol(icmp) -> 1;
protocol(tcp) -> 6;
protocol(udp) -> 17;
protocol(icmp6) -> 58;
+protocol('ipv6-icmp') -> 58;
protocol(raw) -> 255;
protocol(0) -> ip;
protocol(1) -> icmp;
protocol(6) -> tcp;
protocol(17) -> udp;
-protocol(58) -> icmp6;
+protocol(58) -> 'ipv6-icmp';
protocol(255) -> raw.
maybe_atom(_Type, Value) when is_integer(Value) -> Value;

0 comments on commit f9bba43

Please sign in to comment.