Changeset 9539be6 in mainline for uspace/srv/net/tl/icmp/icmp.c
- Timestamp:
- 2010-06-22T14:13:55Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 851f33a
- Parents:
- 402eda5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/icmp/icmp.c
r402eda5 r9539be6 98 98 /** Free identifier numbers pool end. 99 99 */ 100 #define ICMP_FREE_IDS_END MAX_UINT16100 #define ICMP_FREE_IDS_END UINT16_MAX 101 101 102 102 /** Computes the ICMP datagram checksum. … … 263 263 }else{ 264 264 res = icmp_echo(echo_data->identifier, echo_data->sequence_number, size, timeout, ttl, tos, dont_fragment, addr, addrlen); 265 if(echo_data->sequence_number < MAX_UINT16){265 if(echo_data->sequence_number < UINT16_MAX){ 266 266 ++ echo_data->sequence_number; 267 267 }else{ … … 731 731 fibril_rwlock_write_unlock(&icmp_globals.lock); 732 732 free(addr); 733 if(echo_data->sequence_number < MAX_UINT16){733 if(echo_data->sequence_number < UINT16_MAX){ 734 734 ++ echo_data->sequence_number; 735 735 }else{
Note:
See TracChangeset
for help on using the changeset viewer.