anchor.diff:      {ok,[{priority,3},{tos,Tos}]} = inet:getopts(L1,[priority,tos]),
       gen_tcp:close(L1),
       ok.
  +
   test_prio_accept() ->
       {ok,Sock}=gen_tcp:listen(0,[binary,{packet,0},{active,false},
                                   {reuseaddr,true},{priority,4}]),
       {ok,Port} = inet:port(Sock),
  -    {ok,Sock2}=gen_tcp:connect("localhost",Port,[binary,{packet,0},
  -                                                 {active,false},
  -                                                 {reuseaddr,true},
  -                                                 {priority,4}]),
  +    Sock2 = case gen_tcp:connect("localhost",Port,[binary,{packet,0},
  +                                                   {active,false},
  +                                                   {reuseaddr,true},
  +                                                   {priority,4}]) of
  +                {ok, S2} -> 
  +                    S2;
  +                {error, eaddrnotavail = Reason} ->
  +                    skip(connect_failed_str(Reason))
  +            end,
       {ok,Sock3}=gen_tcp:accept(Sock),
       {ok,[{priority,4}]} = inet:getopts(Sock,[priority]),
       {ok,[{priority,4}]} = inet:getopts(Sock2,[priority]),
  
positive.code: 
  %% Tests the so_priority and ip_tos options on sockets when applicable.
  so_priority(Config) when is_list(Config) ->
      {ok,L} = gen_tcp:listen(0, [{active,false}]),
      ok = inet:setopts(L,[{priority,1}]),
      case inet:getopts(L,[priority]) of
  
negative.code:                                 {reuseaddr,true},
                                  {tos,Tos1}]),
      {ok,Port} = inet:port(Sock),
      Sock2 = case gen_tcp:connect("localhost",Port,[binary,{packet,0},
                                                     {active,false},
                                                     {reuseaddr,true},
                                                     {tos,Tos2}]) of
                  {ok, S2} ->
                      S2;
          {error, eaddrnotavail = Reason} ->
              skip(connect_failed_str(Reason))
      end,
      {ok,Sock3}=gen_tcp:accept(Sock),
      {ok,[{priority,0},{tos,Tos1}]} = inet:getopts(Sock,[priority,tos]),
      {ok,[{priority,0},{tos,Tos2}]} = inet:getopts(Sock2,[priority,tos]),
  