This file contains functions for RFC 1982 serial number arithmetic. More...
| Functions | |
| int | compare_1982 (uint32_t a, uint32_t b) | 
| RFC 1982 comparison, uses unsigned integers, and tries to avoid compiler optimization (eg. | |
| uint32_t | subtract_1982 (uint32_t a, uint32_t b) | 
| RFC 1982 subtraction, uses unsigned integers, and tries to avoid compiler optimization (eg. | |
This file contains functions for RFC 1982 serial number arithmetic.
| int compare_1982 | ( | uint32_t | a, | 
| uint32_t | b | ||
| ) | 
RFC 1982 comparison, uses unsigned integers, and tries to avoid compiler optimization (eg.
by avoiding a-b<0 comparisons).
| a | value to compare. | 
| b | value to compare. | 
Referenced by check_dates(), and edns_cookie_server_validate().
| uint32_t subtract_1982 | ( | uint32_t | a, | 
| uint32_t | b | ||
| ) | 
RFC 1982 subtraction, uses unsigned integers, and tries to avoid compiler optimization (eg.
by avoiding a-b<0 comparisons).
| a | value to subtract from. | 
| b | value to subtract. | 
Referenced by check_dates(), and edns_cookie_server_validate().