Liste des Groupes | Revenir à cl c++ |
Am 13.09.2024 um 15:21 schrieb Muttley@dastardlyhq.com:
>Oh right, so for 32 bit TCP seq number instead of just doing:>
++tcp->seq_num;
which would autonatically wrap after 2^32, in your world we'd have do to:
tcp->seq_num = (uint32_t)(((uint_64_t)tcp->seq_num + 1) % 0x100000000L);
Really?
Don't be an ass.
I've also not seen any meaningful code which shows what this
maximum is good for .... But what sense should a wrap-around
make with a semaphore ??? A semaphore should remember all its
releases if possible.
Les messages affichés proviennent d'usenet.