contigmask(3abz)

contigmask3abz

Convert network masks to cidr notation.

Usage

#include <abz/contigmask.h>

uint8_t contigmask(uint32_t mask);

Libraries

Abz Library (-labz), Debug Library (-ldebug)

Overview

The contigmask() function converts the specified mask (which should be in network byte order) to CIDR notation, if possible.

Return value

The contigmask() function returns a CIDR mask (0-31) if successful or 255 if the mask could not be converted to CIDR notation.

Notes

None of the libabz routines are thread-safe. I'm not planning to change this either! For more information, please see http://threading.2038bug.com/

Author

Written by Abraham vd Merwe <[email protected]>

From libabz0-dev 0.5.1 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.