Skip to content

Commit

Permalink
Correct hostent_addr h_addrtype typespec
Browse files Browse the repository at this point in the history
  • Loading branch information
varnerac committed Nov 17, 2021
1 parent 5299d01 commit dd3a664
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/kernel/include/inet.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@

-record(hostent,
{
h_name :: inet:hostname(), %% official name of host
h_aliases = [] :: [inet:hostname()], %% alias list
h_addrtype :: 'inet' | 'inet6', %% host address type
h_length :: non_neg_integer(), %% length of address
h_addr_list = [] :: [inet:ip_address()]%% list of addresses from name server
h_name :: inet:hostname(), %% official name of host
h_aliases = [] :: [inet:hostname()], %% alias list
h_addrtype :: inet | inet6 | caa | cname | gid | hinfo | ns | mb | md | mg
| mf | minfo | mx | naptr | null | ptr | soa | spf | srv | txt
| uid | uinfo | unspec | uri | wks, %% host address type
h_length :: non_neg_integer(), %% length of address
h_addr_list = [] :: [inet:ip_address()] %% list of addresses from name server
}).

0 comments on commit dd3a664

Please sign in to comment.