Changes in uspace/srv/net/tl/tcp/tcp.c [28a3e74:0743493a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/tcp/tcp.c
r28a3e74 r0743493a 476 476 old_incoming = socket_data->next_incoming; 477 477 478 if ( header->finalize) {478 if (GET_TCP_HEADER_FINALIZE(header)) { 479 479 socket_data->fin_incoming = new_sequence_number + 480 480 total_length - TCP_HEADER_LENGTH(header); … … 838 838 assert(packet); 839 839 840 if (! header->synchronize)840 if (!GET_TCP_HEADER_SYNCHRONIZE(header)) 841 841 return tcp_release_and_return(packet, EINVAL); 842 842 … … 903 903 assert(packet); 904 904 905 if (! header->synchronize)905 if (!GET_TCP_HEADER_SYNCHRONIZE(header)) 906 906 return tcp_release_and_return(packet, EINVAL); 907 907 … … 1057 1057 assert(packet); 1058 1058 1059 if (! header->acknowledge)1059 if (!GET_TCP_HEADER_ACKNOWLEDGE(header)) 1060 1060 return tcp_release_and_return(packet, EINVAL); 1061 1061 … … 1126 1126 assert(header); 1127 1127 1128 if (! header->acknowledge)1128 if (!GET_TCP_HEADER_ACKNOWLEDGE(header)) 1129 1129 return; 1130 1130 … … 1833 1833 1834 1834 /* Remember the outgoing FIN */ 1835 if ( header->finalize)1835 if (GET_TCP_HEADER_FINALIZE(header)) 1836 1836 socket_data->fin_outgoing = socket_data->next_outgoing; 1837 1837 … … 1952 1952 header->acknowledgement_number = 1953 1953 htonl(socket_data->next_incoming); 1954 header->acknowledge = 1;1954 SET_TCP_HEADER_ACKNOWLEDGE(header, 1); 1955 1955 } 1956 1956 header->window = htons(socket_data->window); … … 2024 2024 header->source_port = htons(socket->port); 2025 2025 header->source_port = htons(socket_data->dest_port); 2026 header->header_length = TCP_COMPUTE_HEADER_LENGTH(sizeof(*header)); 2027 header->synchronize = synchronize; 2028 header->finalize = finalize; 2026 SET_TCP_HEADER_LENGTH(header, 2027 TCP_COMPUTE_HEADER_LENGTH(sizeof(*header))); 2028 SET_TCP_HEADER_SYNCHRONIZE(header, synchronize); 2029 SET_TCP_HEADER_FINALIZE(header, finalize); 2029 2030 } 2030 2031
Note:
See TracChangeset
for help on using the changeset viewer.