summaryrefslogtreecommitdiff
path: root/src/lib/byte_order.h
Commit message (Collapse)AuthorAgeFilesLines
* include: Add header for endiannessdimitri staessens2017-02-101-88/+1
| | | | | | | | | This adds a header for dealing with endianness in ouroboros. It is extracted from the byte_order header in the library (which now includes this header). It also exposes the functions ntohl, ntohll, htonl and htonll, necessary for converting 32 and 64 bit values for storage and retrieval from the RIB (which should store multi-byte values in network byte order).
* lib, tools, ipcpd: Fix compilation on FreeBSDdimitri staessens2017-02-091-2/+6
| | | | | | | | | | | | FreeBSD defines its own bswap64 in the <sys/endian.h> header, which is now included correctly. POSIX requires XSI or RTS extensions to be enabled for the sa_sigaction field to be visible. Linux doesn't do the check correctly, but FreeBSD does. Removes the LOG_MISSING call which was deprecated with the last revision of the logging system.
* lib: Add SHA3 hash functiondimitri staessens2017-01-111-0/+194
Adds an SHA-3 hash implementation that will be used in the rib, adapted and redistributed from the RHASH project (https://github.com/rhash/RHash)