Almost all functions of the group are used by UDP and TCP functions.
Files | |
file | IP.c |
Internet Protocol (IP) Version 4 Communications Layer Module for Microchip TCP/IP Stack. | |
file | IP.h |
IP Defs for Microchip TCP/IP Stack. | |
Functions | |
DWORD | IPConvertSubnetToMask (BYTE Subnet) |
This function converts the CIDR subnet expression to the long IP expression. | |
BYTE | IPConvertMaskToSubnet (BYTE *MaskArray) |
This function converts the long IP subnet expression to the CIDR expression. |
BYTE IPConvertMaskToSubnet | ( | BYTE * | MaskArray | ) |
This function converts the long IP subnet expression to the CIDR expression.
Examples for subnet expression relations:
CIDR | Netmask |
/8 | 255.0.0.0 |
/12 | 255.240.0.0 |
/16 | 255.255.0.0 |
/20 | 255.255.240.0 |
/24 | 255.255.255.0 |
/30 | 255.255.255.252 |
MaskArray | The subnet as long IP expression (i.e {255,0,0,0}). |
DWORD IPConvertSubnetToMask | ( | BYTE | Subnet | ) |
This function converts the CIDR subnet expression to the long IP expression.
Examples for subnet expression relations:
CIDR | Netmask |
/8 | 255.0.0.0 |
/12 | 255.240.0.0 |
/16 | 255.255.0.0 |
/20 | 255.255.240.0 |
/24 | 255.255.255.0 |
/30 | 255.255.255.252 |
Subnet | The subnet in CIDR notation. |