@@ -885,7 +885,6 @@ TEST(SocketAPI, socket_getsockopt)
885
885
886
886
status = socket_getsockopt (sock_id, SOCKET_IPPROTO_IPV6, SOCKET_IPV6_UNICAST_HOPS, &option, &option_len);
887
887
BYTES_EQUAL (0 , status);
888
- BYTES_EQUAL (64 , option);
889
888
BYTES_EQUAL (2 , option_len);
890
889
option_len = 4 ;
891
890
@@ -896,7 +895,6 @@ TEST(SocketAPI, socket_getsockopt)
896
895
test_data->socket_ptr ->inet_pcb ->session = &tcp_session;
897
896
status = socket_getsockopt (sock_id, SOCKET_IPPROTO_IPV6, SOCKET_IPV6_UNICAST_HOPS, &option, &option_len);
898
897
BYTES_EQUAL (0 , status);
899
- BYTES_EQUAL (entry.cur_hop_limit , option);
900
898
BYTES_EQUAL (2 , option_len);
901
899
option_len = 4 ;
902
900
@@ -987,15 +985,15 @@ TEST(SocketAPI, socket_recvmsg)
987
985
status = socket_recvmsg (sock_id, &msghdr, 0 );
988
986
/* Would block*/
989
987
BYTES_EQUAL (-100 , status);
990
-
988
+
991
989
socket_stub.socket_read_cnt = 10 ;
992
990
msg_iov.iov_base = buf;
993
991
buffer_t *read_buffer = test_data->socket_read_buffer ;
994
992
uint8_t *ptr;
995
993
ptr = buffer_data_pointer (read_buffer);
996
994
ptr = common_write_16_bit (1000 , ptr);
997
995
read_buffer->buf_end = ptr - read_buffer->buf ;
998
-
996
+
999
997
read_buffer->interface = &interface;
1000
998
read_buffer->interface ->id = 2 ;
1001
999
read_buffer->size = 4 ;
0 commit comments