Skip to content

Commit

Permalink
Match the IANA protocol naming for ICMP6
Browse files Browse the repository at this point in the history
Leave the icmp6 atom as an alias.
  • Loading branch information
msantos committed Apr 8, 2012
1 parent 2b8c6a9 commit f9bba43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/procket.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f9bba43

Please sign in to comment.