prg_ip_address_mask_make()
Abstract
Returns a 32-bit mask with the specified number of left-most ones and zeros for the remaining bits.
Syntax
prg_ip_address_mask_make (prefix_length)
| Argument | Type | Description |
|---|---|---|
prefix_length |
int |
the number of bits to set to “1,” starting with the leftmost bit (the 32nd) |
Return Type
int
The 32-bit mask with the specified number of bits set to “1”, with the rest set to “0”.
Header
prg_ip_address.h
Details
Returns a 32-bit mask with the specified number of left-most ones and zeros for the remaining bits.