IP
[TCP/IP Stack from Microchip Version 4.50 (Modified)]


Detailed Description

This group implements the IP or network layer.

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.


Function Documentation

BYTE IPConvertMaskToSubnet ( BYTE *  MaskArray  ) 

This function converts the long IP subnet expression to the CIDR expression.

Examples for subnet expression relations:
CIDRNetmask
/8255.0.0.0
/12255.240.0.0
/16255.255.0.0
/20255.255.240.0
/24255.255.255.0
/30255.255.255.252
This function is added for MoBaCon projects.

Todo:
Add the (DWORD) output values.
Todo:
Move this function to the helpers.
Parameters:
MaskArray The subnet as long IP expression (i.e {255,0,0,0}).
Returns:
The subnet mask as CIDR expression.

DWORD IPConvertSubnetToMask ( BYTE  Subnet  ) 

This function converts the CIDR subnet expression to the long IP expression.

Examples for subnet expression relations:
CIDRNetmask
/8255.0.0.0
/12255.240.0.0
/16255.255.0.0
/20255.255.240.0
/24255.255.255.0
/30255.255.255.252
This function is added for MoBaCon projects.

Todo:
Move this function to the helpers.
Parameters:
Subnet The subnet in CIDR notation.
Returns:
The subnet mask as long IP expression.


Generated on Fri Mar 29 10:34:28 2013 for Netzer by  doxygen 1.5.5